LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-01-2006, 05:55 PM   #1
chocloman
Member
 
Registered: Mar 2005
Location: Lima, Peru, South america
Distribution: slackware
Posts: 35

Rep: Reputation: 15
grub floppy backup and restoration


Hi , I use a floppy grub disk in order to boot slackware 10.2 and freebsd 6.0 in my box, so I would like to make a backuo of this floppy and then restore it just in case of floppy failures.

Do you know any application or command that can do that for me?

Any suggestions appreciated.
 
Old 02-01-2006, 06:37 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
# Copy image from original floppy
dd if=/dev/fd0 of=boot.img

# Put that image onto another floppy
fdformat /dev/fd0
mke2fs -m 0 /dev/fd0
dd if=boot.img of=/dev/fd0


If you decided to create a new grub floppy from scratch....
This gives you the boot menu just like it was installed on the hard drive.
Code:
fdformat /dev/fd0
mke2fs -m 0 /dev/fd0
mount -t ext2 /dev/fd0 /media/floppy
mkdir -p /media/floppy/boot/grub
cp -pa /boot/grub/* /media/floppy/boot/grub
umount /media/floppy

# Create a text file called /home/stuff  ...

cat > /home/stuff << EOF
root (fd0)
#the following is all one line
install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 0x8000 p (fd0)/boot/grub/menu.lst
#
quit
EOF

# Install grub to the floppy disk with this command:

grep -v ^# /home/stuff | grub --batch
 
Old 02-02-2006, 02:54 PM   #3
chocloman
Member
 
Registered: Mar 2005
Location: Lima, Peru, South america
Distribution: slackware
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks Homey, great howto, I will try it right now.
dd command ....umm.....it's good to know that.
As always linuxquestions never let me down.
 
Old 02-02-2006, 03:06 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
You're welcome!

One thing to note: the floppy mount point of /media/floppy may be something like /mnt/floppy on your distro.
 
  


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
data restoration cyberia_2ooo Linux - General 2 09-24-2004 01:00 PM
Windows CE restoration slashrsm Linux - Laptop and Netbook 1 03-10-2004 11:27 PM
GRUB MBR restoration problem GregB3 Linux - Newbie 6 03-02-2004 09:33 PM
How to Backup Grub mayagenesis Linux - Software 1 08-30-2003 12:27 PM
Xp and RH 7.2 Multiboot and Xp MBR restoration thugzclub Linux - Distributions 4 02-15-2002 01:10 PM


All times are GMT -5. The time now is 07:09 AM.

Main Menu
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