Find the answer to your Linux question:
Results 1 to 9 of 9
Hey all, I have been trying to do a dual boot of Ubuntu and WinXP for a while now on and off, my Ubuntu works fine but I can't get ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    40

    GRUB2 chainload NTLDR from ext4: "Bad Signature"?

    Hey all, I have been trying to do a dual boot of Ubuntu and WinXP for a while now on and off, my Ubuntu works fine but I can't get GRUB2 to chainload NTLDR from the /boot directory, I get the "Bad Signature" error..

    I have no idea what this means and Googling hasn't helped much..

    Here is how my partitions are set up on my laptop:

    Code:
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0006dbbb
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       24918   200153803+  83  Linux
    /dev/sda2           24919       25179     2096482+  82  Linux swap / Solaris
    /dev/sda3           25180       30401    41945715    7  HPFS/NTFS
    I have the 1024 cylinder BIOS restriction so I can't chainload it directly, so I copied NTLDR and boot.ini to /boot on /dev/sda1..

    I type this into the GRUB2 console:

    Code:
    root=(hd0,3)
    chainload (hd0,1)/boot/NTLDR
    and booting that gives "Error: Bad Signature"..

    Anyone care to lend a hand?

    Thanks, Aaron.

  2. #2
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    351
    I have the 1024 cylinder BIOS restriction so I can't chainload it directly,
    Have you tried ? If you have a comp with that limit in bios (pre 2000) then I would think XP would not run on it. A lot of partitioning software will give that warning but just disregard it. Once you are in grub the limit would likely not matter any way (only a guess).

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    40
    Yes i have tried chainloading from the NTFS partition but I get the "Out of disk" error

    Once in GRUB, the limit still matters because GRUB has to tell the BIOS to load code. The limit only stops mattering when you load a kernel

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Because of the 1024 cylinder limit that NTLDR can't handle, you will probably need to install XP to the first partition.

    That will allow NTLDR to work and GRUB can boot Linux from a higher partition.

    Example:

    Code:
    /dev/sda1   *           1        1951    15671376    7  HPFS/NTFS   <== XP (C Drive)
    /dev/sda2            1952        8453    52227315    7  HPFS/NTFS
    /dev/sda3            8454        8465       96390   83  Linux   <== Linux /boot
    /dev/sda4            8466       19457    88293240    5  Extended
    /dev/sda5            8466        8589      995998+  82  Linux swap / Solaris
    /dev/sda6            8590       10084    12008556   83  Linux   <== Linux /
    /dev/sda7           10085       18473    67384611   83  Linux
    /dev/sda8           18474       19457     7903948+  83  Linux

  5. #5
    Just Joined!
    Join Date
    Aug 2009
    Posts
    40
    I've tried having a /boot partition at the start of the disk before, then the NTFS partition straight after that, then the Linux partitions, but GRUB2 gave me the "out of disk" error for the initrd.img, so I had to manually type all the commands to boot Ubuntu.

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by aaron11193 View Post
    I've tried having a /boot partition at the start of the disk before, then the NTFS partition straight after that, then the Linux partitions, but GRUB2 gave me the "out of disk" error for the initrd.img, so I had to manually type all the commands to boot Ubuntu.
    Did you re-install OSes or changed partition structure only? Did you execute update-grub2 command after changing partition structure?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Aug 2009
    Posts
    40
    I reinstall Windows every time but not Ubuntu, and yes I fix GRUB every time too..

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Post the partition structure of your Harddisk here.
    Code:
    sudo fdisk -l
    so I had to manually type all the commands to boot Ubuntu.
    Which command(s) do you execute at GRUB to load Ubuntu? Does Windows OS boot up fine by default.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Aug 2009
    Posts
    40
    Already did, see first post.

    To boot Ubuntu I had to type in:
    Code:
    root=(hd0,1)
    linux /boot/vmlinuz.......
    initrd /boot/initrd.......
    boot
    basically what the grub.cfg has in it except it gets an error on the initrd line, but the boot command forces the boot.

    And no, even when I had NTFS inside the cylinder limit it would throw up the dreaded hal.dll error.. Don't know why though.. I used to have Windows on here till I 'saw the light' so to speak

    It's not awfully important that I get this working, I would just like to be able to boot XP for my ipod and gaming needs..

Posting Permissions

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