LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-27-2004, 12:33 AM   #1
bratchild
LQ Newbie
 
Registered: Aug 2004
Distribution: mandrake 10.0
Posts: 3

Rep: Reputation: 0
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
 
Old 08-27-2004, 12:39 AM   #2
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
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"
 
Old 08-27-2004, 12:50 AM   #3
Tuvok
Member
 
Registered: Mar 2003
Distribution: FreeBSD 6.1, NetBSD 3.0.1
Posts: 170

Rep: Reputation: 30
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
 
Old 08-27-2004, 09:51 AM   #4
bratchild
LQ Newbie
 
Registered: Aug 2004
Distribution: mandrake 10.0
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 08-27-2004, 11:30 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Mandrake uses supermount where you do not need to use the mount / umount command.
 
Old 08-30-2004, 08:40 PM   #6
bratchild
LQ Newbie
 
Registered: Aug 2004
Distribution: mandrake 10.0
Posts: 3

Original Poster
Rep: Reputation: 0
Got it !

OK Thanks for your help.

The problem with the floppy was fixed by using a different one. Go figure !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MBR zeroed. Can I verify backup MBR? TomF Linux - General 7 06-20-2005 06:28 PM
by tring to fix the MBR i damage the MBR that was help... AKAKAK Fedora 4 03-21-2005 09:18 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 05:25 PM
why won't my mbr fdisk /mbr? jamessp007 Mandriva 13 01-03-2004 02:41 AM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 03:55 PM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration