LinuxQuestions.org
Visit Jeremy's Blog.
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 07-20-2004, 12:06 AM   #1
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
putting GRUB on a floppy?


I've recently screwd up my XP system. Got a nasty little piece of spyware. I'm planning to reinstall Windows next week. Is it possible to put GRUB on a floppy, (ie: copy everything from /boot to /mnt/floppy) so when I reboot with my newly over-written MBR, I can just boot the floppy and reinstall GRUB that way?
If so, will issuing 'grub' at a command line reinstall it, similar to lilo?
 
Old 07-20-2004, 12:52 AM   #2
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
http://www.gnu.org/software/grub/manual/grub.html
 
Old 07-20-2004, 09:17 AM   #3
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Rep: Reputation: 15
je_fro, the url you provided is a dead link. I'm interested in the answer to this, as well

thanks
 
Old 07-20-2004, 09:54 AM   #4
shobhit
Member
 
Registered: Sep 2003
Location: kolkata
Distribution: Fedora 7
Posts: 60

Rep: Reputation: 15
you could make a linux boot disk.
$ uname -r
the output will be your kernel version.
$ su -
# mkbootdisk --device /dev/fd0 <kernel version>
this will create a boot floppy for you.
once you get windows installed you could, boot into linux with that and again setup grub as your bootloader from linux.

# /sbin/grub
# find /boot/grub/stage1
this will give you a partiotion like
(hdx,y)
where x,y are real numbers.
# root (hdx,y)
# setup (hdx)
yes setup is hdx only.
the next time you reboot, you should have grub as your bootloader.
 
Old 07-20-2004, 11:15 AM   #5
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
it's not dead to me...
 
Old 07-20-2004, 12:01 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
I have a grup boot floppy which I use for just such an ocassion. One nice thing about this floppy is it is generic and can be used on other computers with no modification.

Here is how I made the floppy....

fdformat /dev/fd0
mke2fs -m 0 /dev/fd0

dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1

Boot the floppy to the grub prompt. ( grub > )
Enter root directory and mbr information. For example...
root (hd0,1)
setup (hd0)
 
  


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
Putting Grub on a Floppy lashnjo Linux - General 1 07-03-2005 10:33 PM
Grub on Floppy bigbossandy Linux - Newbie 1 05-28-2005 06:50 AM
Putting YOPER into grub offaxis Yoper 1 10-27-2004 06:37 PM
Putting YOPER into grub offaxis Linux - General 2 10-25-2004 02:44 PM
Is putting lilo/grub below cyl 1023 still required? mark_umr Linux - General 1 09-08-2002 12:04 AM


All times are GMT -5. The time now is 11:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration