erasing boot sector on usb pen drive - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html) +---- Forum: Filesystem Management (https://www.linux-noob.com/forums/forum-26.html) +---- Thread: erasing boot sector on usb pen drive (/thread-1977.html) |
erasing boot sector on usb pen drive - CrunKMunkY - 2006-05-09 Hello all, I am having troubles with a USB Pen Drive. I tried to install FC4 on my 6GB Pen Drive a while back and installed GRUB on the boot sectors of the drive. Unfortunately, I never actually got it to work quite right and I reformatted my pen drive to make it windows compatible again. However, whenever I boot with the drive in the usb port, GRUB still loads. I'm sure there is some easy way to fix this but I don't know what. How can I erase the boot sectors on my drive? Thanks in advance, Scott erasing boot sector on usb pen drive - xDamox - 2006-05-09 Hi, Microsoft should over overwritten the boot sector, could you do the following and paste the output: Code: fdisk -l erasing boot sector on usb pen drive - znx - 2006-05-09 Quote:Hello all, I am having troubles with a USB Pen Drive. I tried to install FC4 on my 6GB Pen Drive a while back and installed GRUB on the boot sectors of the drive. Unfortunately, I never actually got it to work quite right and I reformatted my pen drive to make it windows compatible again. However, whenever I boot with the drive in the usb port, GRUB still loads. I'm sure there is some easy way to fix this but I don't know what. How can I erase the boot sectors on my drive? If you are willing to blank the disk and start again you can dd the boot sector. YOU WILL LOSE PARTITIONS!! Code: dd if=/dev/zero of=/dev/hda bs=512 count=1 That will completely null the MBR (boot sector and partition information), you can then use fdisk or some other partitioner to make new partitions and start again with the disk. erasing boot sector on usb pen drive - CrunKMunkY - 2006-05-10 Well, znx I did Code: dd if=/dev/zero of=/dev/hda bs=512 count=1 I did get a change. When I have it plugged in while booting, it no longer boots GRUB, but the computer doesn't boot anything at all. It just sits there with a black screen and a blinking text cursor/underscore thingy in the upper left hand corner of the screen. I reformatted the disk with FDISK but I'm going to use windows now to repartition it to see if it does anything now. erasing boot sector on usb pen drive - CrunKMunkY - 2006-05-10 Quote:Hi, I did fdisk -l -u /dev/sda and heres what I got. Code: Disk /dev/sda: 6144 MB, 6144638976 bytes I have reformatted several times and sda1 ALWAYS starts on sector 62. I'm not too used to working indepth with boot sectors so I'm gonna take a wild guess and just assume that the first 61 sectors are the boot sectors. Any thoughts? erasing boot sector on usb pen drive - Lord Ceiphas - 2006-05-14 Quote:<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentcommentid="8361" data-ipsquote-username="xDamox" data-cite="xDamox" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="2289" data-ipsquote-contentclass="forums_Topic"><div> I did fdisk -l -u /dev/sda and heres what I got. Code: Disk /dev/sda: 6144 MB, 6144638976 bytes I have reformatted several times and sda1 ALWAYS starts on sector 62. I'm not too used to working indepth with boot sectors so I'm gonna take a wild guess and just assume that the first 61 sectors are the boot sectors. Any thoughts? </div></blockquote> try to boot with a winxp or win2k-cd, go to the rescue-console and type "fixmbr" it will set your mbr to a state where windows can access it erasing boot sector on usb pen drive - CrunKMunkY - 2006-05-15 is there some sort of flag or option that i can point the fixmbr command to the usb drive? ive done fixmbr for hard drive 0 (or whatever the windows equivalent of /dev/hda is) but i havent done it where i tell what device it goes to. |