Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Who cares - right? I think I did boot it once just to check boot capability. Anyway... I had XP and Ubuntu dual boot. Each on its own hard disk ...
  1. #1
    Linux User
    Join Date
    Apr 2007
    Posts
    289

    [SOLVED] XPPro won't boot...

    Who cares - right? I think I did boot it once just to check boot capability. Anyway...

    I had XP and Ubuntu dual boot. Each on its own hard disk - IDE secondary channel. Ubuntu master, XP slave (2 ODD's on primary).

    I added an IDE controller card with PCLOS on it. Boots fine. Then I imported the grub from Ubuntu into PCLOS grub. Now I can select Ubuntu from boot menu, and it goes to the entire [old] grub Still no problem.

    But now the disk enumeration is different. I select Ubuntu, and no boot. I edit the boot entry from for Ubuntu (hd0,0) to (hd1,0), and it boots fine. Now I need to make that permanent.

    BUT, if I choose XP from the Ubuntu grub menu, no boot.

    The [old] XP menu entry WAS
    Code:
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/hdb1
    title		Microsoft Windows XP Professional
    map             (hd0) (hd1)
    map             (hd1) (hd0)
    rootnoverify    (hd1,0)
    chainloader	+1
    What should it be NOW?

    I tried editing the entry AT BOOT, the same as Ubuntu, to:
    map.................... (hd0) (hd2)
    map ...................(hd2) (hd0)
    rootnoverify...... (hd2,0)
    with no luck.

    Then I tried editing :
    map ...................(hd0) (hd1)
    map ................... (hd1) (hd0)
    rootnoverify ...... (hd2,0)
    with no luck.

    Any idea?

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Boot the first version of Linux that you get from the first menu (PCLOS?) and post the output of
    Code:
    sudo fdisk -l
    cat /boot/grub/menu.lst
    will help answer this one.

    Ed: and looking at your previous post ... set the root then map the drives

  3. #3
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    Howdy Mr. J...
    Code:
    [root@localhost ~]# sudo fdisk -l
    
    Disk /dev/hdc: 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/hdc1   *           1        9447    75882996   83  Linux
    /dev/hdc2            9448        9729     2265165    5  Extended
    /dev/hdc5            9448        9729     2265133+  82  Linux swap / Solaris
    
    Disk /dev/hdd: 30.7 GB, 30735581184 bytes
    255 heads, 63 sectors/track, 3736 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/hdd1   *           1        3736    30009388+   7  HPFS/NTFS
    
    Disk /dev/hdf: 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/hdf1   *           1        1019     8185086   83  Linux
    /dev/hdf2            1020        9729    69963075    5  Extended
    /dev/hdf5            1020        1528     4088511   82  Linux swap / Solaris
    /dev/hdf6            1529        9729    65874501   83  Linux
    [root@localhost ~]#
    'F' is PCI IDE card, with PCLOS.

    Code:
    [root@localhost ~]# cat /boot/grub/meun.lst
    cat: /boot/grub/meun.lst: No such file or directory
    [root@localhost ~]# cat /boot/grub/menu.lst
    timeout 10
    color black/cyan yellow/cyan
    gfxmenu (hd0,0)/usr/share/gfxboot/themes/pclinuxos/boot/message
    default 0
    
    title linux
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hdf1  acpi=on resume=/dev/hdf5 splash=silent vga=788
    initrd (hd0,0)/boot/initrd.img
    
    title linux-nonfb
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=/dev/hdf1  acpi=on resume=/dev/hdf5
    initrd (hd0,0)/boot/initrd.img
    
    title failsafe
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=/dev/hdf1  failsafe acpi=on resume=/dev/hdf5
    initrd (hd0,0)/boot/initrd.img
    
    title XPPro     <--- This entry was from a different configuration.
    root (hd2,0)     
    map (0x81) (0x80)
    map (0x80) (0x81)
    makeactive
    chainloader +1
    
    title Ubuntu in (hd1,0)
    root (hd1,0)
    configfile /boot/grub/menu.lst
    [root@localhost ~]#
    The last entry I created by copy /paste:
    title Ubuntu in (hd1,0)
    root (hd1,0)
    configfile /boot/grub/menu.lst
    It brings up the OLD GRUB, from before addition of PCI IDE card with PCLOS?

    Confused? Me TOO! And I'm not with you on 'Set root and map drives...'.

    EDIT:
    I got Ubuntu added properly to PCLOS GRUB, like this:
    1) From PCLOS GRUB boot menu, I clicked on
    Code:
    title Ubuntu in (hd1,0)
    root (hd1,0)
    configfile /boot/grub/menu.lst
    That got me to the old GRUB for Ubuntu, which listed Ubuntu and XP which USED TO work, but now do not, since enumeration changed.

    2) I copied the Ubuntu info for root, kernel, and initrd info by hand (WHEW), EDITED THE LOCATION FROM (hd0,0) to (hd1,0), re-booted into PCLOS, and entered it directly into PCLOS GRUB menu.lst.

    3) I rebooted, and scrolled to the new Ubuntu entry, and it loaded. COOL.

    Now, how do I do the same for the XP install, on the other disk? I tried the edit described in post 1 (red text), but NO-GO...

  4. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Try adding to PCLOS grub menu
    Code:
    title XP
    rootnoverify (hd2,0)
    map (hd0) (hd2)
    map (hd2) (hd0)
    chainloader +1
    I think you will get more reliable grub operation with multiple disks using uuid in both grub menu files and fstab entries.
    Let us know if the XP entry works, if not what errors do you get?
    The also boot from PCLOS and type ls /dev/disk/by-uuid -l and post output.

  5. #5
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    Quote Originally Posted by Jonathan183 View Post
    Try adding to PCLOS grub menu
    Code:
    title XP
    rootnoverify (hd2,0)
    map (hd0) (hd2)
    map (hd2) (hd0)
    chainloader +1
    I think you will get more reliable grub operation with multiple disks using uuid in both grub menu files and fstab entries.
    Let us know if the XP entry works, if not what errors do you get?
    The also boot from PCLOS and type ls /dev/disk/by-uuid -l and post output.
    No error; but totally blank screen.

    (Before putting in PCI IDE card with PCLOS disk already on it, I did a fixmbr for XP. This changed the UUID???)
    ---------------------------------------
    This is current:
    Code:
    [root@localhost ~]# ls /dev/disk/by-uuid -l
    total 0
    lrwxrwxrwx 1 root root 10 Feb 15 08:57 2030A6DF30A6BAE4 -> ../../hdd1
    lrwxrwxrwx 1 root root 10 Feb 15 08:57 2a20821c-cdb2-4b61-b906-3551af20afc5 -> .                                   ./../hdf5
    lrwxrwxrwx 1 root root 10 Feb 15 08:57 51f8db2d-215a-4377-800a-0e31e6c7067c -> .                                   ./../hdc5
    lrwxrwxrwx 1 root root 10 Feb 15 08:57 6463a85e-68bf-4102-a95a-06e9b4ae921b -> .                                   ./../hdf1
    lrwxrwxrwx 1 root root 10 Feb 15 08:57 c750b94d-415d-4015-8d90-54500d601b5d -> .                                   ./../hdc1
    Just to make sure Windows had no error, I pulled the PCI IDE card, and booted. Ubuntu Grub came up, I selected XP, and it booted.

  6. #6
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Lets just check how grub is referencing disk partitions. With all disks connected, at grub boot menu press escape and exit menu. Type c for command and type find /boot/grub/stage1 ... what does this report ... entries should be something like (hd0,0) etc.

  7. #7
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    grub loaders found at:
    hd0,0 (I presume this is PCLOS GRUB, since first boot device is SCSI, and PCLOS is on PCI IDE card);
    and hd1,0. (This GRUB is improperly configured, UNLESS the PCI IDE card is removed. The enumeration changes I believe).

    [root@localhost ~]# cat /boot/grub/menu.lst
    timeout 10
    color black/cyan yellow/cyan
    gfxmenu (hd0,0)/usr/share/gfxboot/themes/pclinuxos/boot/message
    default 0

    title linux
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hdf1 acpi=on resume=/dev/hdf5 splash=silent vga=788
    initrd (hd0,0)/boot/initrd.img

    title linux-nonfb
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=/dev/hdf1 acpi=on resume=/dev/hdf5
    initrd (hd0,0)/boot/initrd.img

    title failsafe
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=/dev/hdf1 failsafe acpi=on resume=/dev/hdf5
    initrd (hd0,0)/boot/initrd.img

    title XPPro <--- This entry was from a different configuration.
    root (hd2,0)
    map (0x81) (0x80)
    map (0x80) (0x81)
    makeactive
    chainloader +1


    title Ubuntu in (hd1,0)
    root (hd1,0)
    configfile /boot/grub/menu.lst

    [root@localhost ~]#

    If BOLDED selection is made, it loads GRUB for Ubuntu, BUT NEITHER Ubuntu or XP will load.

  8. #8
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Try adding makeactive after the rootnoverify line in my previous post ... if that does not work try entering them one at a time at the grub prompt. Does any line throw an error?

  9. #9
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    I'm doin' line-by-line at GRUB shell, for Windows device (hd2,0)

    First line came back void...
    root (hd2,0)
    "Filesystem type unknown, partition type 0x7

    GRUB prompt returns.

    I restarted the line-by-line, starting with:
    rootnoverify (hd2,0) accepted
    (are you saying try again with <makeactive> here?)
    map (hd0) (hd2) accepted
    map (hd2) (hd0) accepted
    chainloader +1 accepted
    boot return:blank screen.

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Unplug/Disable all disks except the one having Windows OS. Set it as First Boot Device in BIOS. Does Windows OS boot up fine?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

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