LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Restoreing MBR & Creating USB Bootable Pendrive (https://www.linuxquestions.org/questions/linux-general-1/restoreing-mbr-and-creating-usb-bootable-pendrive-323919/)

ady 05-16-2005 03:35 AM

Restoreing MBR & Creating USB Bootable Pendrive
 
Hi,

How do I make a USB bootable disk.

I have a 64 MB USB Pendrive and want to use that to restore my Master Boot Record.

I had a dual boot Win XP and Linux system, but I deleted my Linux partition by mistake.
So my laptop wont boot into windows also as my MBR is corrupted and all I get is a Grub boot prompt.

I dont have a floppy drive. So I want to cereate a USB bootable drive and use that to restore my MBR using : fdisk /mbr command.

So, How do I create a USB bootable pen drive?

(Or any other method to restore my MBR and get my windows running? )

Thanks,

Aditya

mcgrew 05-16-2005 04:50 AM

There are several ways to fix this...

If you have the windows XP install cd, simply put it in the drive, boot from it, and start the setup program

It will detect your previous windows installation and give you the option of the recovery console, by pressing R I think.

go to the recovery console and type FIXMBR to overwrite the MBR with a new one.

Also, you should be able to boot into windows from the grub prompt by typing :

Code:

rootnoverify (hd0,0)
makeactive
chainloader +1
boot

change the (hd0,0) to whatever your windows partition is (probably (hd0,0))
hd0=first disk, hd0,0=first disk, first partition

as for making a bootable pen drive...you got me there.

ady 05-16-2005 05:45 AM

got the work done !
 
Thanks man,

I did that and got my machine up and running.

Thanks again.

Ady

trickykid 05-16-2005 11:11 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


All times are GMT -5. The time now is 03:27 PM.