Remove Grub 2 Blockfiles from Partition eg. /dev/sda1
2,808
You mean removing the grub
boot sector so that it won't boot from it? It is just the first sector in your drive or partition.
Backup, be very cautious!
$ dd if=/dev/sda1 bs=512 count=1 of=sda1.bootsector.backup
$ dd if=/dev/zero of=/dev/sda1 bs=512 count=1
Related videos on Youtube
Author by
K.Jain
Updated on September 18, 2022Comments
-
K.Jain almost 2 years
// my configuration using RXTX library in java SerialPortObj.setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN | SerialPort.FLOWCONTROL_RTSCTS_OUT);// Hardware flow control settings SerialPortObj.setRTS(true); SerialPortObj.notifyOnCTS(true);
I am assuming that the serial interface standard itself maintains the hardware flow control using RTS/CTS handshaking every time before sending and receiving data.
My problem statement is that i want before sending actual data every time, an RTS signal must be send to the receiver and receiver confirms back with the CTS signal.
-
ZAKARYA ROUZKI about 12 yearsAha I think that's what I'm looking for. Am I right in thinking this should have no effect on the partition itself, as long as it is not windows (ie. Dell system recovery partition)?
-
johnshen64 about 12 yearsyes, filesystems should not be using the boot block in any event.
-
Rob about 12 years+1 for recommending to back it up before doing anything with it. I've seen people in IRC say "oops" then fight with it for a while. Definitely easier to say
dd if=/home/user/backups/sda1.boot.bkup of=/dev/sda1 bs=512 count=1
and have it fixed. -
Andreas over 3 yearsI use RXTX from github.com/NeuronRobotics/nrjavaserial and the change of CTS is signalled when I run my app with java but not with javaw. The OS is Windows 10, haven't tested with other OS yet. What could be the reason? ... and how can I solve this issue?