Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34

Thread: Grub error 17

  1. #11
    Join Date
    Sep 2008
    Beans
    36

    Re: Grub error 17

    bumppp anyone????

  2. #12
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grub error 17

    It would have been easier to review if you used the code tags - highlight and click on # in panel above message entry.

    You must verify menu.lst is correct and edit fstab to have the correct UUID's

    The first line says Ubuntu is in partition #7
    Partition 7 is /dev/sda7: UUID="006d5962-bf4b-454b-ad5b-e039a5dc6adf" SEC_TYPE="ext2" TYPE="ext3"
    And in grub sda7 will be (hd0,6)
    (the windows in the mbr of the second drive is not useable but is not used so it is ok). Your window in sda1 should boot with the entry in you menu.lst of (hd0,0).

    Please correct menu.lst and fstab and see it you can boot or what errors you get. If you still cannot boot rerun the script but please post with the code tags.

    In menu.lst your root entry has the smiley over the number so I cannot tell if is a 6 or not. It should be. If it is not, use the live cd to change:

    to backup
    Code:
    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.backup
    to edit
    Code:
    sudo gedit /boot/grub/menu.lst
    with the live cd you may not need sudo?

    Also your fstab says for root entry (UUID is wrong)
    # /dev/sda7
    UUID=0b942164-5eec-4539-89e5-bb9ee11ddd5c / ext3 relatime,errors=remount-ro 0 1
    but sda7 is the 006d5962-bf4b-454b-ad5b-e039a5dc6adf This must be changed from the 0b.. to the 006..to have the system boot correctly.
    backup
    Code:
    sudo cp /etc/fstab /etc/fstab.backup
    edit
    Code:
    sudo gedit /etc/fstab
    and swap is:
    # /dev/sda8
    UUID=aff6d2ef-a8ff-4cce-b10a-21b07a647ee4 none swap sw 0 0

    swap will work but it is on sda9 not sda8, the comment is not critical, but if you delete sda9 & sda10 as extra swaps then you have to also change fstab to have the correct UUID for swap on sda8 to
    d92dd445-b41e-415d-8afd-bf8b6327177a see below for all UUID for swap

    but swap could be any of
    /dev/sda8: UUID="d92dd445-b41e-415d-8afd-bf8b6327177a" TYPE="swap"
    /dev/sda9: UUID="aff6d2ef-a8ff-4cce-b10a-21b07a647ee4" TYPE="swap"
    /dev/sda10: UUID="92f4f494-7d46-4c27-b071-5a48e5ed92cb" TYPE="swap"

    The two menu.lst entries at the bottom are strange - the last refering to sda7 looks like it may work? the one refering to sda5 may not work as the install has no menu.lst. The partition sda6 also has an fstab so was it an install?

  3. #13
    Join Date
    Sep 2008
    Beans
    36

    Re: Grub error 17

    if the grub is in hd0,6 then why dose it show (hd0,8???
    i brought up the menu list but i dont know what to re write
    dose anyone know ??


    Code:
    # 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'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    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 cyan/blue white/blue
    
    ## 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
    
    ### 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=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro
    
    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,8)
    
    ## 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
    
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ##      lockold=true
    # lockold=false
    
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(recovery) 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=all
    
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ##      memtest86=false
    # memtest86=true
    
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    
    ## ## End Default Options ##
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro quiet splash
    initrd		/boot/initrd.img-2.6.24-24-generic
    quiet
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode)
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro single
    initrd		/boot/initrd.img-2.6.24-24-generic
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-23-generic
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-23-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro quiet splash
    initrd		/boot/initrd.img-2.6.24-23-generic
    quiet
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-23-generic (recovery mode)
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-23-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro single
    initrd		/boot/initrd.img-2.6.24-23-generic
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-22-generic
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-22-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro quiet splash
    initrd		/boot/initrd.img-2.6.24-22-generic
    quiet
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-22-generic (recovery mode)
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-22-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro single
    initrd		/boot/initrd.img-2.6.24-22-generic
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-21-generic
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro quiet splash
    initrd		/boot/initrd.img-2.6.24-21-generic
    quiet
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-21-generic (recovery mode)
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro single
    initrd		/boot/initrd.img-2.6.24-21-generic
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-19-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro quiet splash
    initrd		/boot/initrd.img-2.6.24-19-generic
    quiet
    
    title		Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic (recovery mode)
    root		(hd0,8)
    kernel		/boot/vmlinuz-2.6.24-19-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro single
    initrd		/boot/initrd.img-2.6.24-19-generic
    
    title		Ubuntu 8.04.3 LTS, memtest86+
    root		(hd0,8)
    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		Microsoft Windows XP Professional
    root		(hd0,0)
    savedefault
    chainloader	+1
    
    
    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda5.
    title		Ubuntu 8.04.1 (8.04) (on /dev/sda5)
    root		(hd0,4)
    kernel		/boot/vmlinuz-2.6.24-19-generic root=/dev/sda5 
    savedefault
    boot
    
    
    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda7.
    title		Ubuntu 8.04.1 (8.04) (on /dev/sda7)
    root		(hd0,6)
    kernel		/boot/vmlinuz-2.6.24-19-generic root=/dev/sda7 
    savedefault
    boot

  4. #14
    Join Date
    Mar 2008
    Location
    Deep South Texas, SpaceX
    Beans
    1,890
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Grub error 17

    Per Forum Rules...

    "Bumping" threads is allowed once every 24 hours.
    "Free software is a matter of liberty, not price." -- Richard Stallman
    So don't forget to tip your software authors!

    I'm a Fireman... what's YOUR superpower?

  5. #15
    Join Date
    Sep 2008
    Beans
    36

    Re: Grub error 17

    Quote Originally Posted by oldfred View Post
    The two menu.lst entries at the bottom are strange - the last refering to sda7 looks like it may work? the one refering to sda5 may not work as the install has no menu.lst. The partition sda6 also has an fstab so was it an install?
    i had to try to install linux three times i think i cant remember then i found out i had a bad mem stick i replaced it and just installed with out removing the other previous installs i regret it know because its showing partitions i dont even use it was all working fine until i messed with partition magic but what i dont get is why it happened i never finalized anything ...this is so frustrating i really need to get this going if theres no hope im just going to trash this and start over

  6. #16
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grub error 17

    The easiest way to edit your files is to boot with the live CD.

    Use Naulitus/file browser, places, compter, find your filesystem, drill down thru /boot/grub so you can see menu.lst. Do not double click as it will not let you save it but right click, choose open with, in the open with window scroll to the bottom Open with other Application, at bottom where it says use other application, click on it and it will open a single line, type in gksudo gedit and it will open the file in superuser mode so you can save it. It may seem long but is easy once you right click and scroll down.

    The other choice is boot from the live CD and use terminal to mount your filesystem, and manually drill down. Lots of typing but we can post that to copy if desired.

    Once in menu.lst change all your (hd0,8) to (hd0,6) for ubuntu entries.
    save file and then edit the fstab file in /etc. You may want to also open a terminal and type blkid -L so you can copy your UUID's to the fstab rather than trying to type them.

  7. #17
    Join Date
    Sep 2008
    Beans
    36

    Re: Grub error 17

    Quote Originally Posted by oldfred View Post
    The easiest way to edit your files is to boot with the live CD.

    Use Naulitus/file browser, places, compter, find your filesystem, drill down thru /boot/grub so you can see menu.lst. Do not double click as it will not let you save it but right click, choose open with, in the open with window scroll to the bottom Open with other Application, at bottom where it says use other application, click on it and it will open a single line, type in gksudo gedit and it will open the file in superuser mode so you can save it. It may seem long but is easy once you right click and scroll down.

    The other choice is boot from the live CD and use terminal to mount your filesystem, and manually drill down. Lots of typing but we can post that to copy if desired.

    Once in menu.lst change all your (hd0,8) to (hd0,6) for ubuntu entries.
    save file and then edit the fstab file in /etc. You may want to also open a terminal and type blkid -L so you can copy your UUID's to the fstab rather than trying to type them.



    ok i mannaged to do the first step which was doing this Once in menu.lst change all your (hd0,8) to (hd0,6) for ubuntu entries.
    save file now as for editing the fstab how do i do that ???
    Last edited by frilock; October 1st, 2009 at 08:49 PM. Reason: got some stuff done

  8. #18
    Join Date
    Sep 2008
    Beans
    36

    Re: Grub error 17

    wit just want to make sure where ever it says (hd0,8 change it to hd0.6 ??
    or just change where it says hd0,8 on all these lines ??
    ## ## End Default Options ##

    title Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=006d5962-bf4b-454b-ad5b-e039a5dc6adf ro quiet splash
    initrd /boot/initrd.img-2.6.24-24-generic
    quiet

  9. #19
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grub error 17

    all the lines that refer to Ubuntu that say root (hd0,8) should be (hd0,6) as that is sda7 where Ubuntu is installed.

    As I said before:
    The first line says Ubuntu is in partition #7
    Partition 7 is /dev/sda7: UUID="006d5962-bf4b-454b-ad5b-e039a5dc6adf" SEC_TYPE="ext2" TYPE="ext3"
    And in grub sda7 will be (hd0,6)

    As for your fstab, use nautilus and drill down to /etc and open fstab as a super user like you did for menu.lst. You may also want to open a second window and use the terminal If you

    Code:
    blkid -L
    You will see all your UUID's, you can then copy from the terminal to the fstab entry to correct it to 006d5962-bf4b-454b-ad5b-e039a5dc6adf.

    Also your fstab says for root entry (UUID is wrong)
    # /dev/sda7
    UUID=0b942164-5eec-4539-89e5-bb9ee11ddd5c / ext3 relatime,errors=remount-ro 0 1
    but sda7 is the This must be changed from the 0b.. to the 006..to have the system boot correctly.
    backup

    8 - eight is not a smiley
    Last edited by oldfred; October 1st, 2009 at 09:16 PM. Reason: 8 is not a smiley?

  10. #20
    Join Date
    Sep 2008
    Beans
    36

    Re: Grub error 17

    ok i did this part ..As for your fstab, use nautilus and drill down to /etc and open fstab as a super user like you did for menu.lst.


    but i dont understand this parts

    You may also want to open a second window and use the terminal If you

Page 2 of 4 FirstFirst 1234 LastLast

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
  •