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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to dual boot with two drives, bios is set to boot to scsi first, hence I'm using grub as my boot loader. Problem is when trying to boot windows, after chanloader +1, the system hangs..
/dev/hda = Windows
/dev/sda = CentOS 4
Code:
fdisk /dev/hda -l
Disk /dev/hda: 20.8 GB, 20847697920 bytes
255 heads, 63 sectors/track, 2534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 892 7164958+ 7 HPFS/NTFS
/dev/hda2 893 2534 13189365 7 HPFS/NTFS
fdisk /dev/sda -l
Disk /dev/sda: 4512 MB, 4512701440 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 548 4297387+ 8e Linux LVM
And here is my grub.conf
Code:
default=2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title CentOS 4.0 (2.6.9-5.0.3.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.0.3.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-5.0.3.EL.img
title Windows XP
rootnoverify (hd1,0)
chainloader +1
Hi!
Problem is your "root" device is wrong. It probably should be sda0,0 That is supposed to be your Linux root device (your main linux file system, not your swap or home or?) where your menu.lst and devicemap are, not where your windoughs drive is. Hope this helps. I've made this mistake too in grub, so if that is the problem don't feel bad.
According to your grub.conf, windows is installed on the second hard drive ((hd1,0) = (hdb,1)).
But, elsewhere in your post, you indicate that windows in on /dev/hda.
If windows is in fact on /dev/hda, then edit grub.conf to correctly reflect that situation ((hd0,0) = (hda,1)).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.