Find the answer to your Linux question:
Results 1 to 4 of 4
I have (2) SATA's, sda Linux and sdb Winxp. I also have (1) IDE hda for data storage formatted as ext3. When ever I plug the IDE in, GRUB will ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    39

    IDE drive will not allow GRUB to boot winxp on SATA


    I have (2) SATA's, sda Linux and sdb Winxp. I also have (1) IDE hda for data storage formatted as ext3. When ever I plug the IDE in, GRUB will not boot winxp. It will boot ubuntu just fine and will boot winxp if the IDE is unplugged. If I change the boot order in BIOS, I can boot to winxp with the IDE drive plugged in.

    This makes no sense.

    device.map
    (hd0) /dev/sda
    (hd1) /dev/sdb
    ------
    menu.lst
    title Ubuntu, kernel 2.6.17-11-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/sda1 ro splash
    initrd /boot/initrd.img-2.6.17-11-generic
    quiet
    savedefault
    boot

    title Windows XP Pro service pack2
    rootnoverify (hd1,0)
    map (hd0) (hd1)
    map (hd1) (hd0)
    makeactive
    chainloader +1
    ----
    #/proc cat partitions
    major minor #blocks name
    8 0 78125000 sda
    8 1 74927128 sda1
    8 2 1 sda2
    8 5 3196903 sda5
    8 16 78125000 sdb
    8 17 20482843 sdb1
    8 18 1 sdb2
    8 21 35840983 sdb5
    8 22 21792141 sdb6
    3 0 19551168 hda
    3 1 19551073 hda1
    -------
    #fdisk -l
    Disk /dev/sda: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 9328 74927128+ 83 Linux
    /dev/sda2 9329 9726 3196935 5 Extended
    /dev/sda5 9329 9726 3196903+ 82 Linux swap / Solaris

    Disk /dev/sdb: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 2550 20482843+ 7 HPFS/NTFS
    /dev/sdb2 2551 9725 57633187+ f W95 Ext'd (LBA)
    /dev/sdb5 2551 7012 35840983+ 7 HPFS/NTFS
    /dev/sdb6 7013 9725 21792141 b W95 FAT32

    Disk /dev/hda: 20.0 GB, 20020396032 bytes
    255 heads, 63 sectors/track, 2434 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 2434 19551073+ 83 Linux





    is there another file i need to alter for grub to ignore the IDE hdc upon boot?

  2. #2
    Just Joined!
    Join Date
    Mar 2007
    Posts
    39
    has anyone else experienced issues with GRUB and mixed drives (IDE,SATA)???

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    39
    Good morning all! I just wanted to post this message again this morning.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2007
    Posts
    1

    WinXP / Linux on IDE/SATA and SATA/SATA

    I had a similar problem, my motherboard (Asus A8N-SLI) has 4 SATA ports. And when I built it I put my main drive in 1, a second storage drivein 2. Then I wanted to dual-boot Win XP ( ONLY for games that Wine/Cedega will not run) so I put a SATA in port 3.

    Before I did this port 1 was /dev/sda , and 2 was /dev/sdb .. you'd think 3 would become /dev/sdc .. wouldn't you? Wrong! What I had to end up doing was moving 1 to 4 and 2 to 3.. plugging my new drive into port 2. and that put my main drive as sda, storage as sdb and the new drive as sdc. This little problem was more a board-specific thing I imagine, but it is worth putting here for others to find.

    To fix your problem, use Grub's "edit" ability at the menu, press "e" on an entry to edit it.. then you can line-by-line edit the commands and then go to the first one and press "b" to try it.. if it works, great.. you know what to change in the grub.conf.. if it does not just reboot and edit again. Here are two of my setups one from a IDE/SATA(Linux/WineXP) and SATA/SATA(Linux/WinXP) setup.


    You'll notice on the SATA/SATA example, that what I end up with once the kernel loads for sda/b/c is not the same as the device.map. I can't tell you why this is, and it works as-is.. so I am not questioning it.



    IDE/SATA

    device.map
    Code:
    (hd0)   /dev/hda
    (hd1)   /dev/sda
    grub.conf
    Code:
    default 0
    timeout 30
    
    title=Gentoo Linux
    root (hd0,0)
    kernel /boot/kernel-2.6.18-gentoo-r4 root=/dev/hda3
    
    title=Windows XP
    rootnoverify (hd1,1)
    makeactive
    chainloader +1
    map (hd0) (hd1)
    map (hd1) (hd0)



    SATA/SATA
    device.map
    Code:
    (hd0)   /dev/sda
    (hd1)   /dev/sdb
    (hd2)   /dev/sdc
    grub.conf
    Code:
    default 0
    timeout 10
    title=Gentoo Linux (64-bit)
    root(hd0,0)
    kernel /kernel-2.6.18-gentoo-r6 root=/dev/sda2
    
    
    title=Windows XP Home (32-bit)
    rootnoverify (hd1,0)
    makeactive
    chainloader +1
    map (hd0) (hd1)
    map (hd1) (hd0)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •