PDA

View Full Version : Boot Manager



FreestyleJWebb
25th March 2004, 04:32 AM
i just installed fedora today on my computer at home. the computer currently has windows xp installed and i installed fedora on a separate partition on the same harddrive. i chose to load up windows when starting the computer in the fedora setup screen but now i cannot figure out to access fedora. i do not have a boot disk and need to know if there is someway to boot into fedora. thank you.

mike
25th March 2004, 06:33 AM
Hmmm... When you understand Fedora it should have configure Grub for you, and set it up for dual-booting. You can use the Fedora install disk as a rescue disk. This would allow you to get into your linux partitions and your grub configuration (/boot/grub/menu.lst).

Mike

Jman
25th March 2004, 02:10 PM
Sounds like you just picked Windows in the blue grub boot screen. I assume Fedora was on the list? If so, all you need to do is reboot and select Fedora. Or does Windows just boot all the time with no boot screen?

FreestyleJWebb
25th March 2004, 04:51 PM
there is not a boot manager screen at all. it just boots right into windows. i will try the method you gave me with the install disk.

gonzalo76
25th March 2004, 08:14 PM
there is not a boot manager screen at all. it just boots right into windows.

Hmmm, it sounds like you forgot to install GRUB or you didn't install GRUB in the MBR, or maybe you chose to install GRUB on the first track on the partition where you installed Fedora, but the problem of this, is that Fedora will never boot in that partition because that's not an active partition. Only 1 active primary partition can be in a hard disk and actually Windows is in there, that's why maybe you only see Windows' boot. (I suppose)

Anyway you have to install GRUB in the MBR (Master Boot Record). To do this just follow this steps:

(First of all, enter your BIOS setup and in BOOT Sequence choose to boot with CDROM first.)

1. Boot with your Fedora Core Installation CD 1.

2. Type "linux rescue" at the prompt.

3. Answer the questions about keyboard and language.

4. Tell the rescue mode to use your proper partition to mount (the one that you want to get booted into)

5. When you come to the console prompt type: chroot /mnt/sysimage.

6. Type grub

7. Set the GRUB's root device to the partition containing the boot directory like this:

grub> root (hd0,0)

I have Windows 98 in hd0,0 ; Windows XP in hd0,1 and Fedora Core /boot partition in hd0,2. So in my case it should be: root (hd0,2)

If you are not sure which partition actually holds this directory, use the command 'find' like this:

grub> find /boot/grub/stage1

This will search for the file name '/boot/grub/stage1' and show the devices which contain the file.
Once you've set the root device correctly, run the command 'setup'.

8. Then, run the command setup

grub> setup (hd0)

This command will install GRUB boot loader on the Master Boot Record (MBR) of the first drive.

9. Type quit

GRUB is now in the MBR.

10. Finally, you'll have to check your /boot/grub/grub.conf if it is ok, for example whith nano: $
nano /boot/grub/grub.conf

(/etc/grub.conf or /boot/grub/grub.conf or /boot/grub/menu.lst, they are the same file) This file has all the boot partitions.

11. Restart your PC without the Fedora Core CD 1 Installation.

If everything went just fine, voila, GRUB now becomes your main boot manager for your multi OS system.


------------------------------------------------
This is my grub.conf
------------------------------------------------

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
#
# NOTICE:
#
# You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
# boot=/dev/hda
#
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
#
title GNU/Linux Fedora Core 1 (2.4.22-1.2174.nptl)
root (hd0,2)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi apm=off acpi=on rhgb
initrd /initrd-2.4.22-1.2174.nptl.img
#
title Microsoft Windows 98 SE & XP Pro
rootnoverify (hd0,0)
chainloader +1

----------------------------------------------

As you can see,

default=0 (My default boot system is Fedora)

timeout=10 (Fedora will boot in 10 seconds if you don't touch anything)

splashimage=(hd0,2)/grub/splash.xpm.gz (Generately the splash image is in your /boot partition. In my case, hd0,2 is where I have the image, because in hd0,0 is Windows 98, hd0,1 is Windows XP, and hd0,2 is the /boot partition of Fedora)

title GNU/Linux Fedora Core 1 (2.4.22-1.2174.nptl) (the name of your system that will appear in your menu at starup, you can write anything you want)

root (hd0,2) (this is your /boot partition, specifies which partition contains your Linux kernel image. So "root (hd0,2) tells GRUB that the kernel is on the 3rd primary partition of my first hard disk (I have two disks), in my case hd0,2)

kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi apm=off acpi=on rhgb (tells GRUB where to find your kernel, my kernel version is 2.4.22-1.2174, you have to type your kernel version)

apm=off acpi=on (I had to add 'apm=off acpi=on' to my kernel parameters to get power-off to work properly)

initrd /initrd-2.4.22-1.2174.nptl.img (tells where your init ramdisk image is located)

title Microsoft Windows 98 SE & XP Pro (As I said, I have Windows 98 in hd0,0 and Windows XP in hd0,1)

rootnoverify (hd0,0) (rootnoverify tells GRUB to boot from the Windows partition, but not to attempt to mount it)
(hd0,0 is where Windows XP puts the boot.ini to boot into Windows 98 and XP)

chainloader +1 (chainloader tells GRUB to chain to Windows' bootloader which will start Windows)

---------------------------------------------
GRUB and Linux Partitions:

hd0 in GRUB = is hda in Linux
This is the first hard disk.

hd0,0 in GRUB = is hda1 in Linux
This is the first primary partition of the first hard disk.

hd0,1 in GRUB = is hda2 in Linux
This is the second primary partition of the first hard disk.

hd0,5 in GRUB = hda6 in Linux
This is the first logical unit of the extended partition (hd0,4) of the the first hard disk.

hd1,0 in GRUB = is hdb1 in Linux
This is the first primary partition of the second hard disk.


Good Luck !
:)

CandidoAramburu
28th January 2007, 09:33 AM
Hi,

I can not boot Fedora 5 from a SECOND PORTABLE USB external disk. I have a multi
boot grub menu and one entry is to third partition of the portable disk.
The boot process it is blocked when the kernel control this process and
begin to mount the FILESYSTEM with the fstab file information.

¿ The problem is the fstab configuration of the second disk?
¿ the problem is the delay of the usb connection when kernel mount the filesystem?

THANKS
Candido


****HISTORICAL****
I did a process backup-restore-boot in these steps:

1- BACKUP from desktop PC to portable hard disk : i do an image iso file
from a linux SO partition (hda) installed on a desktop PC to a partition
PORTABLE disk (sda). The aplication used was Partimage integrated in
SystemRescueCd 0.3.0 CD-rom.
2-RESTORE of from sda1 partition portable disk to sda3 partition portable
disk.
3-BOOT: I would like boot the linux S.O. Store in sda3 partition portable
disk FROM a new Desktop PC and I can not do it with error messages like:

"kernel /boot/vmlinuz...
"intrd /boot/.....
"Uncompressing linux ...
"REd Hat nash version 5.0.32 starting
“ could not find filesystem “dev/root”
“ setuproot error mounting /prog”
“ setuproot error mounting /sys”
“ switchroot....
“kernel panic not syncing” attempted to kill init”

& PC status was BLOCKED

***********INFORMATION ABOUT DESKTOP SYSTEM CONFIGURATION

***[candido@dhcppc0 ~]$ cat /boot/grub/device.map
# this device map was generated by anaconda
(hd0) /dev/hda
[candido@dhcppc0 ~]$


***[root@dhcppc0 candido]# /sbin/fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1761 13313128+ 7 HPFS/NTFS
/dev/hda2 2461 3815 10243800 83 Linux
/dev/hda3 3816 4093 2101680 f W95 Ext'd (LBA)
/dev/hda4 1762 2460 5284440 8e Linux LVM
/dev/hda5 3816 4087 2048287+ 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 1386 11133013+ 83 Linux
/dev/sda2 1387 2661 10241437+ b W95 FAT32
/dev/sda3 2662 4063 11261565 83 Linux
/dev/sda4 4064 7250 25599577+ 7 HPFS/NTFS

Disk /dev/dm-0: 205 MB, 205520896 bytes
255 heads, 63 sectors/track, 24 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table


******* gedit /media/DISCLINUXNAGUSI/etc/fstab
/dev/sda3 / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/sda3 swap swap defaults 0 0
/dev/grupoprueba/vologicprue1 /data ext3 defaults 0 0


************** GRUB INFORMATION ****************

grub> find /boot/grub/stage1
(hd0,1)
(hd1,2)


******************END*****************************

THANKS IN ADVANCE

ddutta07
30th January 2007, 06:30 AM
I just installed FC4 on a 2nd hard drive (windows exists on a separate drive).
After the post installation reboot, all I get is the GRUB command line prompt,
instead of the menu.
I can then manually boot into FC4 by
using:
grub> root (hd1,0)
grub> kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quite
grub>initrd /initrd-2.6.11-1.1369_FC4.img
grub>boot

I can get it to boot into windows from the command line using the
usual runnoverify command etc.

Can somebody please tell me how to get the grub menu?

(I checked my /boot/grub/grub.conf, it has these very same commands which I typed at the command prompt, and the hiddenmenu line is commented out.)
Here is how it looks:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd1,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb
quiet
initrd /initrd-2.6.11-1.1369_FC4.img
title Windows
rootnoverify (hd0,1)
chainloader +1



Please help?
Thanks in advance
DD

CandidoAramburu
30th January 2007, 08:21 AM
Hi,

Run the command /sbin/grub-install <location> from a shell prompt, where <location> is the location where GRUB should be installed, such as /dev/hda1.

When you reboot your system, you will see the GRUB boot loader.

Candido

Jongi
30th January 2007, 12:03 PM
there is not a boot manager screen at all. it just boots right into windows. i will try the method you gave me with the install disk.

So when you turn your computer on and after the BIOS posts, which of the two below is most similar to what appears next:

1. Starting Windows

2. Loading grub stage1.5

I ask because what you have typed in the OP almost seems to me like you chose grub to boot Windows by default. But then what might be happening is that the hiddenmenu function means that the list does not appear. I would rather you checked this out first before the going the route that requires a bit of work.

Muneco
15th February 2007, 05:48 PM
When you said " Run the command /sbin/grub-install <location> from a shell prompt, where <location> is the location where GRUB should be installed, such as /dev/hda1". On my multi-boot system, how do I know where grub should be installed? By reading all the posts, I assume that it would be my first hard drive on the MBR, because I have Windows 2000 Pro installed there... is that not correct.. /dev/hda or (hd0,0).