LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-03-2005, 04:42 PM   #1
e-buzz
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Rep: Reputation: 0
Installing simple GRUB loader on floppy?


I just installed RHEL WS 4.0 (testing different dists) and choosed not to install a boot loader in MBR of hda1 because i have a non standard MBR (pre-boot login) with an encrypted XP on that drive. I wanted to install the GRUB loader on a floppy instead, as i did with Xandros, Suse and Debian. But i never get the opportunity to make a GRUB loader floppy during installation and therefore my system is not bootable.

How can i make a boot loader floppy after installation is done when i cant access the installed RHEL WS system? Can the rescue console be of any help?
 
Old 07-04-2005, 04:21 AM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Try http://www.linuxselfhelp.com/gnu/gru...r/grub_3.html:
Code:
# mke2fs /dev/fd0
# mount -t ext2 /dev/fd0 /mnt
# grub-install --root-directory=/mnt '(fd0)'
# umount /mnt
Have a look at
http://www.linuxjournal.com/article/4622 and
http://www.gnu.org/software/grub/man...ot-floppy.html
and http://www.openbg.net/sto/os/xml/grub.html
for another method

To access the redhat partition, just mount it to any working linux system. You may want to get a live cd.

Last edited by stefan_nicolau; 07-04-2005 at 04:30 AM.
 
Old 07-04-2005, 04:55 AM   #3
e-buzz
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by stefan_nicolau
Try http://www.linuxselfhelp.com/gnu/gru...r/grub_3.html:
Code:
# mke2fs /dev/fd0
# mount -t ext2 /dev/fd0 /mnt
# grub-install --root-directory=/mnt '(fd0)'
# umount /mnt
Have a look at
http://www.linuxjournal.com/article/4622 and
http://www.gnu.org/software/grub/man...ot-floppy.html
and http://www.openbg.net/sto/os/xml/grub.html
for another method

To access the redhat partition, just mount it to any working linux system. You may want to get a live cd.
Sweet thanks, iŽll give it a try asap
 
Old 07-04-2005, 10:36 AM   #4
e-buzz
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I think i have been semi-successful so far, iŽve managed to make a boot floppy that boots into GRUB with no problem, using the method described here but from there it seems i bit more difficult. When i type the command "boot" at the GRUB prompt i get error "kernel must be loaded first". When trying to load the kernel with the command "kernel /vmlinuz-2.6.9-5.ELsmp root=/dev/hdb3 ro vga=ask" i get error message "wrong device" something. I have my RHEL installation on hdb3. I have been reading the manuals to the best of my knowledge but i seem to be stuck? Can anyone pinpoint what i am doing wrong?
 
Old 07-04-2005, 06:05 PM   #5
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Have you given the root(1,2) command before loading the kernel and/or ramdisk?
 
Old 07-05-2005, 01:34 AM   #6
e-buzz
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by stefan_nicolau
Have you given the root(1,2) command before loading the kernel and/or ramdisk?
Hi Stefan. Yes, good question, i issued the command "root (hdb3)" but all i get is error message 23: "Error while parsing number". I also tried "root (hdb,3), same error. IŽll check the GRUB manual today to see what that error means......

EDIT:

"23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and encountered bad data."

Does not make me any smarter

Last edited by e-buzz; 07-05-2005 at 03:51 AM.
 
Old 07-05-2005, 07:38 AM   #7
e-buzz
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Fixed it, had to reinstall and install the boot loader on the hdb drive where RHEL was installed, then create a GRUB boot floppy that took me right into the operating system.......thanks for help Stefan
 
Old 07-05-2005, 06:20 PM   #8
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
root (hdb,3)
the command is root(hd1,2)

hda = hd0
hdb = hd1
...
hda1 = hd0,0
hda2 = hd0,1
...
 
  


Reply



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
Installing GRUB to a floppy disk obnascar Linux - Newbie 1 08-25-2005 02:36 PM
GRUB boot loader and installing multiple distributions on one computer juyce Linux - General 3 06-27-2005 06:13 PM
installing grub on floppy or cd benjam Fedora 2 10-14-2004 11:19 AM
Creating Boot loader disks rather then installing GRUB to hard disk?? barry237 Fedora 1 06-19-2004 10:52 AM
Problem Installing GRUB to Floppy freemanx Linux - Newbie 5 10-15-2003 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:53 AM.

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
Open Source Consulting | Domain Registration