Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a dual boot Windows XP and Gentoo Linux. Both OS's work perfectly, (as far as Windows possibly can) but I'm having a problem with grub.
My grub.conf is as follows:
#which listing to boot as default. 0 is the first, 1 the second etc.
default 1
# How many seconds to wait before the default listing is booted.
timeout 5
# Nice, fat splash-image to spice things up
# Comment out if you don't have a graphics card installed
splashimage=(hd0,2)/boot/splash.xpm.gz
# The next three lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda1.
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
#title=Gentoo Linux 2.6.10-rc1
# Partition where the kernel image (or operating system) is located
#root (hd0,2)
#kernel /kernel-2.4.26-gentoo-r6 root=/dev/hda8
title=Gentoo Linux 2.6.10-rc1
root (hd0,2)
kernel (hd0,2)/kernel-2.6.10-rc1
#title=Gentoo Linux 2.6.7-gentoo-r11
# Partition where the kernel image (or operating system) is located
#root (hd0,2)
#kernel /kernel-2.4.26-gentoo-r6 root=/dev/hda8
title=Gentoo Linux 2.6.7-gentoo-r11
root (hd0,2)
kernel (hd0,2)/kernel-2.6.7-gentoo-r11 root=/dev/hda8
#title=Gentoo Linux 2.4.26-r6
# Partition where the kernel image (or operating system) is located
#root (hd0,2)
#kernel /kernel-2.4.26-gentoo-r6 root=/dev/hda8
title=Gentoo Linux 2.6.9-rc3
root (hd0,2)
kernel (hd0,2)/kernel-2.6.9-rc3 root=/dev/hda8
Now, when I boot my computer grub loads with:
grub>
at which point for Windows I enter:
root (hd0,0)
makeactive
chainloader +1
boot
for Linux I enter:
root (hd0,2)
kernel /kernel-2.6.10-rc1
boot
I can't understand where grub is having a problem with the conf file. Any help would be greatly appreciated.
Well... that looked pretty... but still didn't fix it.
I did:
grub>root (hd0,2)
grub>setup (hd0)
this printed a fair bit of text - everything seemed to be ok as there was a 'done' at the end of every line and the process finished with 'completed'
grub> reboot
Do you know what the actual partition layout is? You seem to have Windows on partition 1 and the Linux root on partition 3 ( hd0,2 ) so what is on partition 2 ( hd0,1 ) ?
I think from memory partition 2 (hd0,1) has another Windows Partition - I have 3 partitions for Windows - Windows, Temp, Data. Then Linux takes partition 3.
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 637 5116671 7 HPFS/NTFS
/dev/hda2 638 7778 57360082+ f W95 Ext'd (LBA)
/dev/hda3 7779 7791 104422+ 83 Linux
/dev/hda5 638 892 2048256 7 HPFS/NTFS
/dev/hda6 893 2550 13317853+ 7 HPFS/NTFS
/dev/hda7 2551 2678 1028128+ 82 Linux swap / Solaris
/dev/hda8 2679 6503 30724281 83 Linux
/dev/hda9 6504 7778 10241406 83 Linux
cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
grub> root (hd0,7)
grub> setup (hd0,2) <- this step complained that it couldn't find the two files it was after
grub> reboot
came back with the same grub prompt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.