LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-11-2003, 08:52 AM   #1
evian
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 15
creating a boot drive


During the installation of RedHat 8 i think i have messed somehting up because when it is booting up it sits at a screen saying GRUB. I can boot linux using the boot disk that I have created but would like to change it so that i don't need to use this disk every single time. Is there a way to make it so that I could boot from the hard drive rather than having to use the disk each time?

thank you
 
Old 03-11-2003, 06:41 PM   #2
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Rep: Reputation: 15
YES

u had messed up the grub, u have to try and install GRUB again or try this b4 u compile from source



You need to put the stage2 on some filesystem that is available to
GRUB at boot time.

In addition, there is no need for a stage1.5 for your situation.

So you need to locate a partition with a filesystem where to store
the stage2, menu.lst, and also the stage1 (for future installation
flexibility).

Easy - boot the GRUB boot floppy, then hit ESC, in order to get to
GRUB command mode (you might have already done this in order to
have run the setup command).

Next, you must find a suitable filesystem for GRUB's files, here
is how to do this, eg,

grub> root (hd
|hit TAB here

Possible disks are: hd0 hd1 hd2

GRUB will print the BIOS drives that it can access, then for each
such BIOS drive, do the following, eg,

grub> root (hd0,
|hit TAB here

Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0x6
Partition num: 2, [BSD sub-partitions immediately follow]
BSD Partition num: 'a', Filesystem type is ffs, partition type
0xa9
BSD Partition num: 'b', Filesystem type unknown, partition type
0xa9
BSD Partition num: 'e', Filesystem type is fat, partition type
0xa9
BSD Partition num: 'f', Filesystem type is ext2fs, partition type
0xa9
BSD Partition num: 'g', Filesystem type unknown, partition type
0xa9
BSD Partition num: 'h', Filesystem type is ext2fs, partition type
0xa9
BSD Partition num: 'i', Filesystem type is ext2fs, partition type
0xa9
BSD Partition num: 'j', Filesystem type is ext2fs, partition type
0xa9
BSD Partition num: 'k', Filesystem type is ext2fs, partition type
0xa9
Partition num: 3, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x82
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type is ext2fs, partition type 0x83

GRUB will print the partitions and filesystems that it can access.

Now you need a way to copy stage1, stage2, and menu.lst (as binary
files) to the appropriate filesystem. I will leave this part to
your intelligence and creativity.

Then, you need to execute GRUB's install command, here is the way
that I do this from my menu.lst file,

# Installation steps for GRUB
# Entry 17: Install Grub to floppy [fd0]
title Install Grub to "A:" [fd0] MBR - stage2 on [(fd0)/boot/grub/]
root (fd0)
install /boot/grub/stage1 (fd0) /boot/grub/stage2 p
/boot/grub/menu.lst

# Entry 18: Install Grub to MBR [hd0]
title Install Grub to "C:" [hd0] MBR - stage2 on [(hd0,0)/boot/grub/]
root (hd0,0)
install /boot/grub/stage1 (hd0) /boot/grub/stage2 p
/boot/grub/menu.lst

So you need to replace the string "boot/grub" with wherever you
decided to put GRUB's files. Note that this is relative to the
specified root device, which in my case is (hd0,0), ie, the first
partition on the first BIOS hard drive. And the stage2 file needs to
be a system file, ie, Windows must be inhibited from moving it
around under defrag operations, etc.

And you need to remember the install commands from stanza #18
above, in order to be able to type them in manually to GRUB from
its command mode,

root (hd0,XXX)
install /YYY/stage1 (hd0) /YYY/stage2 p /YYY/menu.lst

GRUB is very flexible, there are other possibilties, but I tried
to keep this reply as simple as possible. After are able to boot
Windows from your hard drive with GRUB, then you can read about
GRUB's install command (from the GRUB info manual) for other
scenarios.

tell me if this works =)
 
Old 03-12-2003, 04:54 PM   #3
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
Or you could just...

Boot with the floppy, go to a terminal and:
<su>
grub-install /dev/hda
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating/restoring drive image on USB drive OneSeventeen Linux - Newbie 9 07-06-2005 05:08 AM
Creating a Drive image Earl_UK Linux - Newbie 1 02-16-2005 08:49 PM
Creating a Boot Floppy for Dual Boot Setup? jdanniel Linux - Newbie 8 08-07-2004 02:08 PM
creating symlink on samba drive kminkov Linux - General 2 04-24-2004 10:23 AM
Creating New Partitions on a Second Drive Flossie Mandriva 1 03-08-2004 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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