Announcement

Collapse
No announcement yet.

grub Error 17 on upgrade

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    grub Error 17 on upgrade

    I just upgraded from Breezy to the new Dapper release candidate using the instructions from the main website (using adept). Now, however, grub says that it does not recognize the Ubuntu partition (error 17). The windows partition and IBM recovery partition boot up fine.

    Hardware IBM ThinkPad T43:
    * Intel Pentium M 750 (1.73GHz, 2MB L2 Cache, 533MHz FSB)
    * 14.0" SXGA (1400 x 1050) display
    * 60GB, 7200RPM Hard Drive
    * 512MB DDR2 SDRAM
    * CD-RW/DVD-RW (CD 24x Read, 16x Write) (DVD 3x Read, 2x Write)
    * Intel Graphics Media Accelerator 900
    * Intel PRO/Wireless 2915 802.11 a/b/g internal wireless card

    I do not mind doing a reinstall, but if I can get around that, it would be great.
    Thanks,
    Jim

    #2
    Re: grub Error 17 on upgrade

    Hi,

    I remember I had trouble with grub once I've change sda to hda and it worked... Maybe you can try..
    Anyway it seems to be troubles with mounting partition... I don't see any other solution...

    Cheers

    Comment


      #3
      Re: grub Error 17 on upgrade

      If you have a live CD (somthing like Knoppix), boot up in the live CD. Check the live CD's /etc/fstab file. Verify that the / (root) partition on your harddrive is recognized by Knoppix (or whatever) and that you can mount it. If so, mount the /boot partition and make sure that the /boot/grub/menu.lst stanza for your Linux partition gives the correct identifiers for your system. Remember that Grub calls hda1, hd0,0. Those are the two most frequent causes of error 17. If the Dapper RC mashed your /boot/grub/menu.lst, YOU HAVE TO FILE A BUG A.S.A.P.

      Comment


        #4
        Re: grub Error 17 on upgrade

        Alright, I used Knoppix to view the fstab and was able to mount the partition. Here are the fstab and menu.lst portions:

        Fstab:
        /proc /proc proc defaults 0 0
        /sys /sys sysfs noauto 0 0
        /dev/pts /dev/pts devpts mode=0622 0 0
        /dev/fd0 /mnt/auto/floppy auto user,noauto,exec,umask=000 0 0
        /dev/cdrom /mnt/auto/cdrom auto user,noauto,exec,ro 0 0
        # Added by KNOPPIX
        /dev/sda1 /mnt/sda1 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=kno ppix 0 0
        # Added by KNOPPIX
        /dev/sda2 /mnt/sda2 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
        # Added by KNOPPIX
        /dev/sda3 /mnt/sda3 ext3 noauto,users,exec 0 0
        # Added by KNOPPIX
        /dev/sda5 none swap defaults 0 0

        grub Menu.lst:
        # menu.lst - See: grub(8), info grub, update-grub(8)
        # grub-install(8), grub-floppy(8),
        # grub-md5-crypt, /usr/share/doc/grub
        # and /usr/share/doc/grub-doc/.

        ## default num
        # Set the default entry to the entry number NUM. Numbering starts from 0, and
        # the entry number 0 is the default if the command is not used.
        #
        # You can specify 'saved' instead of a number. In this case, the default entry
        # is the entry saved with the command 'savedefault'.
        default 0

        ## timeout sec
        # Set a timeout, in SEC seconds, before automatically booting the default entry
        # (normally the first entry defined).
        timeout 10

        ## hiddenmenu
        # Hides the menu by default (press ESC to see the menu)
        #hiddenmenu

        # Pretty colours
        color blue white

        ## password ['--md5'] passwd
        # If used in the first section of a menu file, disable all interactive editing
        # control (menu entry editor and command-line) and entries protected by the
        # command 'lock'
        # e.g. password topsecret
        # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
        # password topsecret

        #
        # examples
        #
        # title Windows 95/98/NT/2000
        # root (hd0,0)
        # makeactive
        # chainloader +1
        #
        # title Linux
        # root (hd0,1)
        # kernel /vmlinuz root=/dev/hda2 ro
        #

        #
        # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

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

        ### BEGIN AUTOMAGIC KERNELS LIST
        ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
        ## by the debian update-grub script except for the default options below

        ## DO NOT UNCOMMENT THEM, Just edit them to your needs

        ## ## Start Default Options ##
        ## default kernel options
        ## default kernel options for automagic boot options
        ## If you want special options for specific kernels use kopt_x_y_z
        ## where x.y.z is kernel version. Minor versions can be omitted.
        ## e.g. kopt=root=/dev/hda1 ro
        ## kopt_2_6_8=root=/dev/hdc1 ro
        ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
        # kopt=root=/dev/sda3 ro

        ## default grub root device
        ## e.g. groot=(hd0,0)
        # groot=(hd0,0)

        ## should update-grub create alternative automagic boot options
        ## e.g. alternative=true
        ## alternative=false
        # alternative=true

        ## should update-grub lock alternative automagic boot options
        ## e.g. lockalternative=true
        ## lockalternative=false
        # lockalternative=false

        ## additional options to use with the default boot option, but not with the
        ## alternatives
        ## e.g. defoptions=vga=791 resume=/dev/hda5
        # defoptions=quiet splash

        ## altoption boot targets option
        ## multiple altoptions lines are allowed
        ## e.g. altoptions=(extra menu suffix) extra boot options
        ## altoptions=(recovery mode) single
        # altoptions=(recovery mode) single

        ## controls how many kernels should be put into the menu.lst
        ## only counts the first occurence of a kernel, not the
        ## alternative kernel options
        ## e.g. howmany=all
        ## howmany=7
        # howmany=1

        ## should update-grub create memtest86 boot option
        ## e.g. memtest86=true
        ## memtest86=false
        # memtest86=false

        ## should update-grub adjust the value of the default booted system
        ## can be true or false
        # updatedefaultentry=false

        ## ## End Default Options ##

        title Ubuntu, kernel 2.6.15-23-686
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.15-23-686 root=/dev/sda3 ro quiet splash
        initrd /boot/initrd.img-2.6.15-23-686
        savedefault
        boot

        title Ubuntu, kernel 2.6.15-23-686 (recovery mode)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.15-23-686 root=/dev/sda3 ro single
        initrd /boot/initrd.img-2.6.15-23-686
        boot

        ### END DEBIAN AUTOMAGIC KERNELS LIST

        # This entry automatically added by the Debian installer for a non-linux OS
        # on /dev/sda2
        title IBM System Recovery
        root (hd0,1)
        savedefault
        makeactive
        chainloader +1


        Hopefully I can sort this out, how would I go about filing this bug?
        Jim

        Comment


          #5
          Re: grub Error 17 on upgrade

          Based on your Knoppix fstab and your /boot/grub/menu.list, I'm guessing that hd0,0 is your windoze partition. and hd0,2 is your Kubuntu partion. Therefore, I would change the SECOND LINE in each of the Ubuntu stanzas to say "root (hd0,2)".

          I base this on the thoght that it is most unlikely that your Kubuntu partition is formatted as ntfs, or that your windoze partition is formatted ext3.

          Comment


            #6
            Re: grub Error 17 on upgrade

            That worked just fine, thanks. Is there any sort of bug I should submit, or is this probably just a 1-time thing?
            Jim

            Comment


              #7
              Re: grub Error 17 on upgrade

              I suspect it's just a one time thing, because we haven't gotten a rash of similar reports.

              Comment

              Working...
              X