This might be a very usefull howto for those who have dual booting systems, and have overwritten their NTFS (or vFat) bootblock with grub.
The problem:
You just edited your menu.lst file, and wrote grub to the wrong place, overwriting the boot sector of your windows partition.
You reboot and wich to boot windows, only to find it no longer boots, and even worse, you can't mount your ntfs partition anymore.
when you try to manually mount the partition you get an errror, prompting you to look at dmesg output.
You look, and you get this:
Code:
[4295568.716000] NTFS-fs error (device hda1): read_ntfs_boot_sector(): Primary b oot sector is invalid.
[4295568.716000] NTFS-fs error (device hda1): read_ntfs_boot_sector(): Mount opt ion errors=recover not used. Aborting without trying to recover.
[4295568.716000] NTFS-fs error (device hda1): ntfs_fill_super(): Not an NTFS vol ume.
If this is your situation, then don't panic!
The solution:
First you should try to mount the partition like this:
sudo mount -t ntfs -o errors=recover /dev/hda1 /mnt/test
If this works, backup your most important stuff first! (Yes, you should always have backups!)
Bookmarks