Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: grub will not work

  1. #1
    Join Date
    Jan 2007
    Location
    ummm.. tough one
    Beans
    287
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    grub will not work

    All right i recently made my ubuntu partition bigger, but the grub no longer works following previous guides i did this
    Code:
    >sudo grub
    grub> find /boot/grub/stage1
    find /boot/grub/stage1
     (hd0,1)
    grub> root (hd0)
    root (hd0)
    grub> setup (hd0,1)
    setup (hd0,1)
    
    Error 17: Cannot mount selected partition
    I have no idea how to fix this.
    Thanks for any help.

  2. #2
    Join Date
    Oct 2006
    Beans
    322
    Distro
    Ubuntu 6.06 Dapper

    Re: grub will not work

    You're using the root and setup commands with the arguments flipped. Try:

    Code:
    root (hd0,1)
    setup (hd0)

  3. #3
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: grub will not work

    Post the output of

    Code:
    sudo fdisk -lu
    What program did you use to resize Ubuntu?

    What happens when you try to boot Ubuntu? Does the grub menu appear? (You might have to press "Esc" after the bios screen) Any error messages ?

    Error 17: Cannot mount selected partition
    Do you get this error at boot up? Or at the "grub prompt" in the LiveCD?
    Last edited by meierfra.; November 28th, 2008 at 04:26 AM.

  4. #4
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: grub will not work

    root (hd0,1)
    setup (hd0)
    +1. (I didn't noticed that you used "root (hd0)")

  5. #5
    Join Date
    Jan 2007
    Location
    ummm.. tough one
    Beans
    287
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: grub will not work

    -I used gparted
    -grub menu appears but says that the partition does not exsit

    partition that ubuntu is on it /dev/sda3
    I have followed what you said meierfra and will reboot right now.

  6. #6
    Join Date
    Jan 2007
    Location
    ummm.. tough one
    Beans
    287
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: grub will not work

    just rebooted it says
    Code:
     
    Boot from (hd1,1) ext3 
    Error 15: File not found 
    Press any key to continue.

  7. #7
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: grub will not work

    Post the output of

    Code:
    sudo fdisk -lu
    and

    Code:
    sudo mount /dev/sda3 /mnt
    cat /mnt/boot/grub/menu.lst

  8. #8
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: grub will not work

    Try this:

    At the grub menu at boot up, press "c". Type

    Code:
    find /boot/grub/stage1
    The output will be of the form (hdX,Y)

    Press "Esc" to get back the grub menu. Select Ubuntu and press "e". At the new screen press "e" again. Change the line to

    Code:
    root (hdX,Y)
    (Use the numbers you got from "find /boot/grub/stage1")

    Press "enter" and then "b" to boot. If this lets you boot into Ubuntu, you still have the make the changes permanent. Open "menu.lst" via

    Code:
    gksudo gedit /boot/grub/menu.lst
    Change

    "# groot=(hd?,?)" to "# groot=(hdX,Y)"

    Save the file. Back in the terminal

    Code:
    sudo update-grub
    That should be it.

    If this does not work, post the information I requested in my previous post. And also the output of the "find /boot/grub/stage1" command

  9. #9
    Join Date
    Jan 2007
    Location
    ummm.. tough one
    Beans
    287
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: grub will not work

    sudo fdisk -lu
    Code:
    Disk /dev/sda: 251.0 GB, 251000193024 bytes
    255 heads, 63 sectors/track, 30515 cylinders, total 490234752 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x40d3549b
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda2              63   111153734    55576836   83  Linux
    /dev/sda3       111153735   490223474   189534870    5  Extended
    /dev/sda5       112744170   490223474   188739652+   b  W95 FAT32
    /dev/sda6       111153861   112744169      795154+  82  Linux swap / Solaris
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 750.1 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x000b8055
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb2   *          63  1465144064   732572001    7  HPFS/NTFS
    
    Disk /dev/sdc: 1024 MB, 1024966656 bytes
    32 heads, 63 sectors/track, 993 cylinders, total 2001888 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x49262675
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1             245     1999871      999813+   b  W95 FAT32
    sudo mount /dev/sda3 /mnt
    Code:
    mount: you must specify the filesystem type
    cat /mnt/boot/grub/menu.lst
    Code:
    cat: /mnt/boot/grub/menu.lst: No such file or directory
    I will do that one right now and post results

    EDIT: What line do i add the
    Code:
    root (hdX,Y)
    -btw "find /boot/grub/stage1" returned "(hd1,1)

    on the first line it has uuid and alot of numbers
    then comes kernel that has the "root=UUID=" and numbers from first line
    Last edited by melenor; November 28th, 2008 at 05:14 AM.

  10. #10
    Join Date
    Jan 2007
    Location
    ummm.. tough one
    Beans
    287
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: grub will not work

    just replaceing the first line gives me an error however, I think that is because of the "root=UUID=78587026-b7b5-4943-a56d-d361f269fdb3"
    the line i replaced was
    "uuid 78587026-b7b5-4943-a56d-d361f269fdb3"

Page 1 of 2 12 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
  •