Find the answer to your Linux question:
Results 1 to 2 of 2
I've just got round to installing Debian on one of my desktops (I mainly use it for Windows programming, so it was the only machine not running Debian or Ubuntu) ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2

    GRUB Errors With Dual Boot

    I've just got round to installing Debian on one of my desktops (I mainly use it for Windows programming, so it was the only machine not running Debian or Ubuntu) and after restarting and having GRUB load, I receive GRUB errors for both OS's.

    hd0,0 is an ext3 partition containing Debian, this one was installed after having installed Windows. I left the installer write GRUB onto the partition and set it up itself, on rebooting I get the following error from this partition:

    Code:
    Booting 'Debian GNU/Linux, kernel 2.6.18-6-k7'
    
    root (hd0,0)
     Filesystem type unknown, partition type 0x7
    kernel /boot/vmlinuz-2.6.18-6-k7 root=/dev/hdb1 ro
    
    Error 17: Cannot mount selected partition
    The only place I can find references to the "partition type 0x7" are threads discussing problems with Windows, where the Linux distribution loads fine.

    hd1,0 is an NTFS partition containing Windows XP, this was the first one to be installed on the machine although the install is only a couple of weeks old as I did a clean reinstall. After having pressed any key on the error loading Debian, I select Windows XP from the boot list and the following error is output:

    Code:
    Booting 'Microsoft Windows XP Professional'
    
    root (hd1,0)
     Filesystem type is ext2fs, partition type 0x83
    savedefault
    makeactive
    map (hd0) (hd1)
    map (hd1) (hd0)
    chain loader +1
    
    Error 13: Invalid or unsupported executable format
    By the looks of the error, GRUB is trying to load the NTFS partition (0x7) for Debian, and an ext3 for Windows, so the drives are presumably the wrong way round.

    I'm going to have a bash at fixing this myself, but any ideas would be greatly appreciated.

  2. #2
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2
    My initial guess was correct, switching the associated "root (hdx,y)" in menu.lst worked. So the Debian install became "root (hd1,0)" and Windows became "root (hd0,0)"

Posting Permissions

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