Help - Search - Members - Calendar
Full Version: Broke my winxp MBR, ms-sys not fixing it!
Linuxhelp > Support > Technical Support
dobonono
Hi, I hope someone out there can help me!

I recently deleted a linux partition and managed to break the GRUB bootloader so much that the super grub disk can't fix it!

I managed to inspect the drive via an ubuntu live cd, and this is the relevant output:
CODE
ubuntu@ubuntu: ~/Desktop sudo fdisk -l

Disk /dev/sda: 100.0GB, 100030242816 bytes
240 heads, 63 sectors/track, 12921 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x00069cbbb

   Device boot    Start       End         Blocks   Id     System
/dev/sda1               1    12090   91400368+   7     HPFS/NTFS
/dev/sda2        12091    12921     6282360      f     W95 Ext'd (LBA)
/dev/sda4               1           1               0      0     Empty
Partition 4 does not end on cylinder boundary.
/dev/sda5        12091    12921    6282328+    7    HPFS/NTFS


I tried to use ms-sys to repair my mbr:
CODE
ubuntu@ubuntu:~/Desktop sudo ms-sys -m /dev/sda1
/dev/sda1 seems to be a disk partition device, use the switch -f to force writing of a master boot record
ubuntu@ubunt:~/Desktop sudo ms-sys -f /dev/sda1
/dev/sda1 has an x86 boot sector, it is an unknown boot record

So... Is there anything else I can try?
michaelk
Not familiar with this utility but it appears that the command to restore the MBR is
ms-sys -w /dev/sda

FYI the MBR is not part of a partition which is why you are seeing the "/dev/sda1 seems to be a disk partition device, use the switch -f to force writing of a master boot record" error.

If you have your XP/Vista install CD then you can use the fixmbr utility in the recovery mode to also repair the MBR.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.