backing up the mbr
Hello There !
I'm a total newbie trying to back up the MBR just in case I need to reinstall windows, and can't quite do it. The bootloader is Lilo. The computer has 2 harddrives, one is 80 GB for windows, and the 40 GB is for Mandrake 10. The instructions say to type in (no quotes) "dd if=/dev/hda of=/dev/fd0/mbr.bin bs=512 count=1" When I type that in, it tells me that /dev/fd0/mbr.bin is not a directory. I've searched for anything named mbr.bin without success. How would I make a MBR backup disk ? Where is the mbr.bin hiding ? Also, another question. Can linux handle more than 512 Mb memory ? Thanks in advance, Bratchild |
Linux can handle as much memory as your BIOS can. So look at your motherboard manual. Even if you do successfully make a backup MBR you will still need a working linux environment to copy it back to the MBR. It is probably easier to do one of these two things:
1) Make a Boot floppy and boot from it and run "lilo" 2) download a live CD such as Damn Small Linux, change the /etc/lilo.conf file on the cd to the /etc/lilo.conf file from your linux install and boot off the live CD and run "lilo" |
This is how I would do it:
dd if=/dev/hda of=/tmp/mbr.bin bs=1 count=512 now mount the floppy: mount /dev/fd0 /mnt/floppy then copy it: cp /tmp/mbr.bin /mnt/floppy and finally: umount /mnt/floppy |
Thanks for the help so far. :)
In case of a crash or windows install I've got a copy of a Knoppix CD that is bootable, and it is good to know that I can add more memory later. Still having a bit of trouble... with the backup Lilo. I get as far as "mount /dev/fd0 /mnt/floppy" (no quotes) and receive a Permission Denied message. I think it might be already mounted (I can see it from the KDE desktop) so on to the next step... "cp /tmp/mbr.bin /mnt/floppy" The error message states No Medium Found. The floppy was previously formatted to linux native (ext2), and i'm working in root. I also can't copy the file to the floppy drive using the graphical interface. This is a bit worrying :scratch: |
Mandrake uses supermount where you do not need to use the mount / umount command.
|
Got it !
OK Thanks for your help.
The problem with the floppy was fixed by using a different one. Go figure !:D |
All times are GMT -5. The time now is 12:50 AM. |