Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Vista/Ubuntu7.10 - can't fix grub error 17

  1. #1
    Join Date
    Oct 2008
    Beans
    28

    Angry Vista/Ubuntu7.10 - can't fix grub error 17

    Good Morning everyone,

    I've just installed Ubuntu 7.10 on my system which has 3 hard drives. I've emptied one of them for dedicating it to Ubuntu, installed but I got the error 17 at first boot attempt.

    I've found this thread which describes exactly my situation, but I cannot apply the solution:

    http://ubuntuforums.org/showthread.php?t=442945

    When I type root (sdc1,0) I get the error message Error 23: Error while parsing number (See mbwardle's posts, step 10)

    Any help would be greatly appreciated.

    Regards, Alexandre

  2. #2
    Join Date
    Sep 2008
    Beans
    277
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Hello Alexandre,

    Quote Originally Posted by Alexandre76 View Post
    When I type root (sdc1,0) I get the error message Error 23: Error while parsing number
    that should be
    Code:
    root (hd2,0)
    鳴かぬなら鳴かせてみようホトトギス

    I love you Aki

  3. #3
    Join Date
    Oct 2008
    Beans
    28

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Quote Originally Posted by Orange_and_Green View Post
    Hello Alexandre,



    that should be
    Code:
    root (hd2,0)
    grub> root (hd2,0)

    Error 21: Selected disk does not exist

    My discs are shown like this in Gparted:

    /dev/sda1 (Windows)
    /dev/sdb1 (DATA)
    /dev/sdc1 (Ubuntu)

  4. #4
    Join Date
    Sep 2008
    Beans
    277
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    /dev/sda, /dev/sdb, /dev/sdc are the disk drives as the Linux file system sees them. /dev/sda1, /dev/sda2, /dev/sdb1 etc. Are the partitions on said drives, again as Linux file system sees them.

    However, GRUB does not work with those. Rather, it calls the disks hd0, hd1, hd2 and so on, in the order that BIOS sets them up for boot. The digit after the comma specifies the n-th partition on that disk (so, for example, (hd1,0) would indicate the first partition of the second disk in boot order, as numbering starts with zero).

    Have you checked the boot order in your BIOS and made sure that the disk you want is actually recognized, and the third one in boot order? You might want to try, for instance, making the Ubuntu disk first one in boot order and do

    Code:
    root (hd0,0)
    from the GRUB prompt.

    Good luck
    鳴かぬなら鳴かせてみようホトトギス

    I love you Aki

  5. #5
    Join Date
    Oct 2008
    Beans
    28

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Quote Originally Posted by Orange_and_Green View Post
    /dev/sda, /dev/sdb, /dev/sdc are the disk drives as the Linux file system sees them. /dev/sda1, /dev/sda2, /dev/sdb1 etc. Are the partitions on said drives, again as Linux file system sees them.

    However, GRUB does not work with those. Rather, it calls the disks hd0, hd1, hd2 and so on, in the order that BIOS sets them up for boot. The digit after the comma specifies the n-th partition on that disk (so, for example, (hd1,0) would indicate the first partition of the second disk in boot order, as numbering starts with zero).

    Have you checked the boot order in your BIOS and made sure that the disk you want is actually recognized, and the third one in boot order? You might want to try, for instance, making the Ubuntu disk first one in boot order and do

    Code:
    root (hd0,0)
    from the GRUB prompt.

    Good luck
    Ok, I've managed to type the commands from steps 10 and 11...

    grub> geometry (hd2)
    drive 0x82: C/H/S = 38913/255/63, The number of sectors = 625142448, /dev/sdc
    Partition num: 0, Filesystem type is ext2fs, partition type 0x83
    Partition num: 4, Filesystem type unknown, partition type 0x82

    grub> geometry (hd1)
    drive 0x81: C/H/S = 38913/255/63, The number of sectors = 625142448, /dev/sdb
    Partition num: 0, Filesystem type unknown, partition type 0x7

    grub> root (hd2,0)

    grub> setup (hd0)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/e2fs_stage1_5" exists... yes
    Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
    succeeded
    Running "install /boot/grub/stage1 d (hd0) (hd0)1+17 p (hd2,0)/boot/grub/stage
    2 /boot/grub/menu.lst"... succeeded
    Done.

    grub>

    I am not sure how I can edit menu.lst

  6. #6
    Join Date
    Sep 2008
    Beans
    277
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Good, congratulations!

    Quote Originally Posted by Alexandre76 View Post
    I am not sure how I can edit menu.lst
    That would depend, of course, on which drive is the one GRUB is installed to. Editing menu.lst on hd2 would not do any good unless that drive is moved to first in boot order (providing GRUB is installed to that drive).

    Could you please boot from a live CD and post the output of
    Code:
    sudo fdisk -l
    ?
    鳴かぬなら鳴かせてみようホトトギス

    I love you Aki

  7. #7
    Join Date
    Oct 2008
    Beans
    28

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Quote Originally Posted by Orange_and_Green View Post
    Good, congratulations!



    That would depend, of course, on which drive is the one GRUB is installed to. Editing menu.lst on hd2 would not do any good unless that drive is moved to first in boot order (providing GRUB is installed to that drive).

    Could you please boot from a live CD and post the output of
    Code:
    sudo fdisk -l
    ?
    I mean I know how to edit the file, but not how to save it as it tells me I don't have the authorization for saving the modification..

    ubuntu@ubuntu:~$ sudo fdisk -l

    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    6 heads, 4 sectors/track, 26047602 cylinders
    Units = cylinders of 24 * 512 = 12288 bytes
    Disk identifier: 0xcf2ecf2e

    Device Boot Start End Blocks Id System
    /dev/sda1 * 86 26047403 312567808 7 HPFS/NTFS

    Disk /dev/sdb: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xdef6370c

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 38914 312568832 7 HPFS/NTFS

    Disk /dev/sdc: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000ddf22

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 1 37781 303475851 83 Linux
    /dev/sdc2 37782 38913 9092790 5 Extended
    /dev/sdc5 37782 38913 9092758+ 82 Linux swap / Solaris

    Disk /dev/sdh: 1031 MB, 1031798272 bytes
    255 heads, 63 sectors/track, 125 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sdh1 * 1 123 987104 7 HPFS/NTFS
    Partition 1 has different physical/logical endings:
    phys=(121, 254, 63) logical=(122, 227, 40)

  8. #8
    Join Date
    Oct 2008
    Beans
    28

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Quote Originally Posted by Orange_and_Green View Post
    Good, congratulations!



    That would depend, of course, on which drive is the one GRUB is installed to. Editing menu.lst on hd2 would not do any good unless that drive is moved to first in boot order (providing GRUB is installed to that drive).

    Could you please boot from a live CD and post the output of
    Code:
    sudo fdisk -l
    ?
    FYI, here is my menu.lst file

    title Ubuntu 7.10, kernel 2.6.22-14-generic
    root (hd2,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=99251a8e-36a2-4a24-a9ae-4d01d1370993 ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

    title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
    root (hd2,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=99251a8e-36a2-4a24-a9ae-4d01d1370993 ro single
    initrd /boot/initrd.img-2.6.22-14-generic

    title Ubuntu 7.10, memtest86+
    root (hd2,0)
    kernel /boot/memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Windows Vista/Longhorn (loader)
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1

  9. #9
    Join Date
    Sep 2008
    Beans
    277
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Very good

    type
    Code:
    gksu gedit
    to open a text editor with root privileges so it will let you save the file. Select "open", navigate to the file, open, write your modifications and save.

    Alternate method:

    Code:
    gksu nautilus
    This will open up a browser window with root privileges. Navigate to the menu.lst file, double click, modify and save.

    Good luck
    鳴かぬなら鳴かせてみようホトトギス

    I love you Aki

  10. #10
    Join Date
    Oct 2008
    Beans
    28

    Re: Vista/Ubuntu7.10 - can't fix grub error 17

    Quote Originally Posted by Orange_and_Green View Post
    Very good

    type
    Code:
    gksu gedit
    to open a text editor with root privileges so it will let you save the file. Select "open", navigate to the file, open, write your modifications and save.

    Alternate method:

    Code:
    gksu nautilus
    This will open up a browser window with root privileges. Navigate to the menu.lst file, double click, modify and save.

    Good luck
    Thanks for the tip I am a little bit confused here... Shall I modify the menu.lst file by replacing hd2 with hd1 ?

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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