How to recover Windows 7 MBR without a CD
I have actually been having fun with Ubuntu for a couple of weeks currently, and also I would certainly such as to change my computer system back to it is initial - manufacturing facility - defaults.
On the computer system I have a recuperation dividing (it is a netbook). I experienced the procedure of recuperation and also every little thing appeared penalty. Nonetheless, when I reactivate the computer system I'm offered with
grub rescue >
Now, my understanding is that when I mounted Ubuntu "alongside" it changed the MBR or something like it, with GRUB.
I've kept reading a variety of discussion forums, that I require to make use of a Windows Recovery Disk.
Below are my concerns:
a) I do not have a recuperation disk, I have a recuperation dividing - it is a netbook. b) I do not have an exterior cd drive.
What I do have is a USB key that has around 1gb of room on it.
Many thanks beforehand.
install Ubuntu LiveCD on your pendrive, boot from your pendrive, open terminal and also type:
sudo apt-get install mbr sudo install-mbr -i n -p D -t 0 /dev/sda
/dev/sda with the name of your drive.
What parameters do (from man page):
This alternative establishes the checklist of occasions which will certainly create the MBR to present it is punctual. Usage
-i +<event>to add an occasion to the checklist or
-i -<event>to remove an occasion from the checklist. Values of
s-- A change or control key is pushed.
k-- A non change - like key is pushed
a-- The punctual is constantly presented.
n-- Never present the punctual (unless a mistake takes place).
This defines the default boot field to load. Legitimate values of
- 1, 2, 3, 4 The defined dividing number.
FThe first floppy.
DThe dividing noted with the bootable flag in the dividing table.
--timeout <timeout>This alternative transforms the moment which the MBR awaits prior to starting the default dividing to the value defined in 1/ 18 secs (approx). The maximum timeout that can be defined is 65534which has to do with a hr.
mbr out repo you can download and install the Deb plan from here.
An additional method:
sudo apt-get install syslinux sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda