LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-03-2007, 01:20 AM   #1
cristian667
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
How to install GRUB on diskette


Hello all,
I'm trying to install OpenSuse 10.2 on a box with Vista already installed, in a dual boot configuration, and I'd like to have the boot loader on a diskette to avoid any problems with overwriting the MBR and Vista not booting anymore. I remember doing this in the past with Suse 9 and XP but I cannot find any option now for fd0 in the boot loader location screen in the suse installation. Can you give me some direction or tips on how to do that? I have two sata hard drives, first with two partitions (windows + empty) and second has one partition.
Thank you in advance.
 
Old 03-03-2007, 02:24 AM   #2
tbutttbutt
Member
 
Registered: Jan 2006
Location: India
Distribution: Fedora 7, Linuxfromscratch 6.2
Posts: 66

Rep: Reputation: 15
Create GRUB root floppy:

cd /usr/lib/grubi386-pc
dd if=stage1 of=/dev/fd0 bs=512 count=1
dd if=stage2 of=/dev/fd0 bs=512 seek=1

Once started Grub will show the command line interface. First, set the Grub root device to the partition containing the boot directory:

grub> root (hd0,0)
(you can do find /boot/grub/stage1...this will search for the file and show the device that contains it)

grub> kernel ... (your kernel line as in grub.conf/menu.lst)

grub> initrd ... (your initrd line as above)

grub> boot
 
Old 03-03-2007, 02:44 AM   #3
cristian667
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tbutttbutt
Create GRUB root floppy:

cd /usr/lib/grubi386-pc
dd if=stage1 of=/dev/fd0 bs=512 count=1
dd if=stage2 of=/dev/fd0 bs=512 seek=1

Once started Grub will show the command line interface. First, set the Grub root device to the partition containing the boot directory:

grub> root (hd0,0)
(you can do find /boot/grub/stage1...this will search for the file and show the device that contains it)

grub> kernel ... (your kernel line as in grub.conf/menu.lst)

grub> initrd ... (your initrd line as above)

grub> boot
Thank you for your quick reply.... but I have no idea of how to do what you just said . How do I create the GRUB root? Is there a utility or an option during install?
 
Old 03-03-2007, 04:53 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
The diskette suggested by tbutttbutt is to put Grub unattached to Suse into a floppy.

That floppy is good enough to booot any PC system in the world if you know how to use it.

For example booting up the floppy only give you a Grub prompt but you can type in a Grub prompt
Code:
geometry (hd0
Which will make Grub displaying every partition in your 1st hard disk.

A Linux is always stored in a Partition Type 83 whereas Vista in Type 7 for NTFS filing type.

Suppose partition (0) is your Vista and the first Type 83 is in partition (1) for Suse then Vista can be booted at a Grub prompt by
Code:
root (hd0,0)
chainloader +1
boot
and you Suse can fire up by
Code:
root (hd0,1)
configfile /boot/grub/menu.lst
If you are tired of manual booting you can make "another" floppy after booting to Suse root terminal by
Code:
grub-install /dev/fd0
The 2nd floppy differs from the 1st one (proposed by tbutttbutt) by being attached to Suse and will have the menu.lst inside, with which you only tap the direction key to select distros to boot.
 
Old 03-03-2007, 06:23 AM   #5
tbutttbutt
Member
 
Registered: Jan 2006
Location: India
Distribution: Fedora 7, Linuxfromscratch 6.2
Posts: 66

Rep: Reputation: 15
There is usually no option during install these days. You have to do it once your linux system boots up and you are at a console prompt (as root). Place a floppy in the floppy drive and then run the commands.

If you cannot boot you will have to use a rescue disk or try to boot with 'linux single' at the boot prompt.
 
Old 03-03-2007, 07:34 AM   #6
cristian667
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you guys, now it is a little more clear to me.
 
  


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
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
Fedora Post-Install Asks for Boot Diskette bkinney Fedora - Installation 1 10-08-2005 10:00 PM
Grub prompt on boot, boots with diskette themapincognita Red Hat 1 11-26-2004 01:13 AM
after fresh install of RH9 - can boot only from diskette zstingx Linux - General 2 10-08-2003 08:54 AM
How to create a driver diskette for install with no CDROM? Mark Sykora Linux - Software 1 11-20-2000 07:27 AM


All times are GMT -5. The time now is 01:45 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