Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 78

Thread: GRUB RESCUE prompt

  1. #21
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB RESCUE prompt

    Quote Originally Posted by llazarte View Post

    Future: I suppose I will have to study Grub2 to make it work without it leaving me out of my computer. Any suggestion as to the best way to either reinstall, configure or update Grub2? Perhaps reinstall grub-pc?

    Thanks again,
    Leonardo
    https://help.ubuntu.com/community/Gr...0from%20LiveCD
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  2. #22
    Join Date
    Nov 2009
    Beans
    2

    Re: GRUB RESCUE prompt

    firstly, i apologize for my awful English...

    I'm a begginer ubuntu user (better said, I'm trying to install it) and have got a similar problem...

    I've acquired the ubuntu 9.10 CD in the ubuntu HP. My machine is a HP Pavillion DV6500 notebook, running with Windows Vista. I've tried to install ubuntu following the graphical install available in the ubuntu site. My option was to install it in a external HD, to avoid partitioning my primary HD. After the instalation was concluded, the notebook doesnt boot by the external HD, neiter by Windows anymore!! When I disconnect the external HD, appear a prompt with the following message:

    no such disk
    GRUB rescue>


    The option to recovery Windows, supported by HP does not work anymore. So, I cant reinstall windows anymore, and my notebook has no boot!!!
    please, could anyone help me???

    Yours sincerely,

    João Paulo

  3. #23
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB RESCUE prompt

    Let's get a better look at your setup & boot process. Boot the Ubuntu Live CD/USB. Choose "try ubuntu without any changes", when the desktop loads come back here and use the link in my signature to download the Boot Info Script to the desktop. Once on desktop open a terminal (Applications > Accessories > terminal) and run this command
    Code:
    sudo bash ~/Desktop/boot_info_script*.sh
    This will create a RESULTS.txt file on the desktop. Paste the entire contents of that file back here. Once pasted highlight all text and click the # sign on the toolbar to place code tags around the text.
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  4. #24
    Join Date
    Nov 2009
    Beans
    2

    Re: GRUB RESCUE prompt

    dear presence 1960

    i'm very glad about your help...

    i've tryied the command and the response i've obtained was
    sudo: /home/ubuntu/Desktop/boot_info_script*.sh: command not found

    maybe my notebook does not have this command available (sorry about my dumbness)...

  5. #25
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB RESCUE prompt

    Quote Originally Posted by jpsfer View Post
    dear presence 1960

    i'm very glad about your help...

    i've tryied the command and the response i've obtained was
    sudo: /home/ubuntu/Desktop/boot_info_script*.sh: command not found

    maybe my notebook does not have this command available (sorry about my dumbness)...
    it seems to be that you entered the command improperly. try copying and pasting the command into terminal:

    Code:
    sudo bash ~/Desktop/boot_info_script*.sh
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  6. #26
    Join Date
    Sep 2007
    Beans
    31

    Re: GRUB RESCUE prompt

    Okay, I sorta have a similar problem. I don't know if the same fix will work so I'm just gonna tell you what it is. I had xubuntu on one partition and vista on another then I repartitioned some free space between the two of them and installed mythbuntu (using the "use the largest continuous space" option) so I could mess around with it without damaging my xubuntu data. I have everything pretty much backed up since I never repartition without backing up all data (Learned that lesson a long time ago). Everything is working fine and I'm booting up perfectly from all three os's. Now I don't want the mythbuntu anymore so I delete the partition (all files backed up, I'm a stickler for that). and then when I reboot my grub won't load and I'm dropped into the grub rescue prompt.

    so I ran the boot info script and this is what I got

    Code:
    ============================= Boot Info Summary: ==============================
    
    => Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
        in partition #7 for /boot/grub.
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows Vista
        Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info: 
    
    sda5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 9.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info: 
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x29551006
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *     75,216,336   234,436,544   159,220,209   7 HPFS/NTFS
    /dev/sda2                  63    22,571,324    22,571,262   5 Extended
    /dev/sda5                 126    21,527,099    21,526,974  83 Linux
    /dev/sda6          21,527,163    22,571,324     1,044,162  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    sda1: UUID="C244297D442974F7" TYPE="ntfs"
    sda5: UUID="6fdf1e73-d5f0-45b1-8592-82ebc2540f4f" TYPE="ext4"
    sda6: UUID="3a257f33-21c8-43c8-905b-0542a24174f8" TYPE="swap"
    
    =============================== "mount" output: ===============================
    
    aufs on / type aufs (rw)
    none on /proc type proc (rw,noexec,nosuid,nodev)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)
    udev on /dev type tmpfs (rw,mode=0755)
    /dev/sr0 on /cdrom type iso9660 (rw)
    /dev/loop0 on /rofs type squashfs (rw)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
    none on /var/run type tmpfs (rw,nosuid,mode=0755)
    none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
    none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    
    
    =========================== sda5/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s /boot/grub/grubenv ]; then
      have_grubenv=true
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      saved_entry=${prev_saved_entry}
      save_env saved_entry
      prev_saved_entry=
      save_env prev_saved_entry
    fi
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    if [ ${recordfail} = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/white
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "Ubuntu, Linux 2.6.31-16-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-16-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro   quiet splash
    initrd /boot/initrd.img-2.6.31-16-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-16-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro single
    initrd /boot/initrd.img-2.6.31-16-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro   quiet splash
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro single
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows Vista (loader) (on /dev/sda1)" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set c244297d442974f7
    chainloader +1
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sda7)" {
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set b152c549-14fd-484a-8f1d-7def7d0b55df
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b152c549-14fd-484a-8f1d-7def7d0b55df ro quiet splash
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sda7)" {
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set b152c549-14fd-484a-8f1d-7def7d0b55df
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b152c549-14fd-484a-8f1d-7def7d0b55df ro single
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    =============================== sda5/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    #  -- This file has been automaticly generated by ntfs-config --
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc /proc proc defaults 0 0
    # Entry for /dev/sda5 :
    UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f / ext4 errors=remount-ro 0 1
    # Entry for /dev/sda6 :
    UUID=3a257f33-21c8-43c8-905b-0542a24174f8 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/sda1 /media/Windows ntfs-3g defaults,locale=en_US.UTF-8 0 0
    
    =================== sda5: Location of files loaded by Grub: ===================
    
    
        .0GB: boot/grub/core.img
        .0GB: boot/grub/grub.cfg
        .0GB: boot/initrd.img-2.6.31-14-generic
        .0GB: boot/initrd.img-2.6.31-16-generic
        .0GB: boot/vmlinuz-2.6.31-14-generic
        .0GB: boot/vmlinuz-2.6.31-16-generic
        .0GB: initrd.img
        .0GB: initrd.img.old
        .0GB: vmlinuz
        .0GB: vmlinuz.old

  7. #27
    Join Date
    Apr 2008
    Beans
    11,707

    Re: GRUB RESCUE prompt

    Quote Originally Posted by unclesamslair View Post
    Okay, I sorta have a similar problem. I don't know if the same fix will work so I'm just gonna tell you what it is. I had xubuntu on one partition and vista on another then I repartitioned some free space between the two of them and installed mythbuntu (using the "use the largest continuous space" option) so I could mess around with it without damaging my xubuntu data. I have everything pretty much backed up since I never repartition without backing up all data (Learned that lesson a long time ago). Everything is working fine and I'm booting up perfectly from all three os's. Now I don't want the mythbuntu anymore so I delete the partition (all files backed up, I'm a stickler for that). and then when I reboot my grub won't load and I'm dropped into the grub rescue prompt.

    so I ran the boot info script and this is what I got

    Code:
    ============================= Boot Info Summary: ==============================
    
    => Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
        in partition #7 for /boot/grub.
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows Vista
        Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info: 
    
    sda5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 9.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info: 
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x29551006
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *     75,216,336   234,436,544   159,220,209   7 HPFS/NTFS
    /dev/sda2                  63    22,571,324    22,571,262   5 Extended
    /dev/sda5                 126    21,527,099    21,526,974  83 Linux
    /dev/sda6          21,527,163    22,571,324     1,044,162  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    sda1: UUID="C244297D442974F7" TYPE="ntfs"
    sda5: UUID="6fdf1e73-d5f0-45b1-8592-82ebc2540f4f" TYPE="ext4"
    sda6: UUID="3a257f33-21c8-43c8-905b-0542a24174f8" TYPE="swap"
    
    =============================== "mount" output: ===============================
    
    aufs on / type aufs (rw)
    none on /proc type proc (rw,noexec,nosuid,nodev)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)
    udev on /dev type tmpfs (rw,mode=0755)
    /dev/sr0 on /cdrom type iso9660 (rw)
    /dev/loop0 on /rofs type squashfs (rw)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
    none on /var/run type tmpfs (rw,nosuid,mode=0755)
    none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
    none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    
    
    =========================== sda5/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s /boot/grub/grubenv ]; then
      have_grubenv=true
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      saved_entry=${prev_saved_entry}
      save_env saved_entry
      prev_saved_entry=
      save_env prev_saved_entry
    fi
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    if [ ${recordfail} = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/white
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "Ubuntu, Linux 2.6.31-16-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-16-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro   quiet splash
    initrd /boot/initrd.img-2.6.31-16-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-16-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro single
    initrd /boot/initrd.img-2.6.31-16-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro   quiet splash
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 6fdf1e73-d5f0-45b1-8592-82ebc2540f4f
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f ro single
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows Vista (loader) (on /dev/sda1)" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set c244297d442974f7
    chainloader +1
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sda7)" {
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set b152c549-14fd-484a-8f1d-7def7d0b55df
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b152c549-14fd-484a-8f1d-7def7d0b55df ro quiet splash
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sda7)" {
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set b152c549-14fd-484a-8f1d-7def7d0b55df
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b152c549-14fd-484a-8f1d-7def7d0b55df ro single
    initrd /boot/initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    =============================== sda5/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    #  -- This file has been automaticly generated by ntfs-config --
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc /proc proc defaults 0 0
    # Entry for /dev/sda5 :
    UUID=6fdf1e73-d5f0-45b1-8592-82ebc2540f4f / ext4 errors=remount-ro 0 1
    # Entry for /dev/sda6 :
    UUID=3a257f33-21c8-43c8-905b-0542a24174f8 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/sda1 /media/Windows ntfs-3g defaults,locale=en_US.UTF-8 0 0
    
    =================== sda5: Location of files loaded by Grub: ===================
    
    
        .0GB: boot/grub/core.img
        .0GB: boot/grub/grub.cfg
        .0GB: boot/initrd.img-2.6.31-14-generic
        .0GB: boot/initrd.img-2.6.31-16-generic
        .0GB: boot/vmlinuz-2.6.31-14-generic
        .0GB: boot/vmlinuz-2.6.31-16-generic
        .0GB: initrd.img
        .0GB: initrd.img.old
        .0GB: vmlinuz
        .0GB: vmlinuz.old
    Well you see grub2 is looking for boot files on sda7 which no longer exists:

    Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive in partition #7 for /boot/grub.
    So boot any *buntu live CD and from the Live Desktop go to Terminal and:

    Code:
    sudo mount /dev/sda5 /mnt && sudo mount --bind /dev /mnt/dev && sudo mount --bind /proc /mnt/proc && sudo chroot /mnt
    Code:
    grub-install /dev/sda
    Code:
    exit
    Code:
    sudo umount /mnt/dev && sudo umount /mnt/proc && sudo umount /mnt
    Then reboot & the first time you boot into Xubuntu go to terminal and run:

    Code:
    sudo update-grub
    Last edited by kansasnoob; January 5th, 2010 at 09:06 PM. Reason: Corrected typos where it should be -- I had only -

  8. #28
    Join Date
    Sep 2007
    Beans
    31

    Re: GRUB RESCUE prompt

    Quote Originally Posted by kansasnoob View Post
    Well you see grub2 is looking for boot files on sda7 which no longer exists:



    So boot any *buntu live CD and from the Live Desktop go to Terminal and:

    Code:
    sudo mount /dev/sda5 /mnt && sudo mount –bind /dev /mnt/dev && sudo mount –bind /proc /mnt/proc && sudo chroot /mnt
    Code:
    grub-install /dev/sda
    Code:
    exit
    Code:
    sudo umount /mnt/dev && sudo umount /mnt/proc && sudo umount /mnt
    Then reboot & the first time you boot into Xubuntu go to terminal and run:

    Code:
    sudo update-grub
    I only got this far.

    Code:
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    
    ubuntu@ubuntu:~$ sudo mount /dev/sda5/ /mnt && sudo mount -bind /dev /mnt/dev && sudo mount -bind /proc /mnt/proc && sudo chroot /mnt
    mount: invalid option -- 'b'
    Usage: mount -V                 : print version
           mount -h                 : print this help
           mount                    : list mounted filesystems
           mount -l                 : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
           mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
           mount device             : mount device at the known place
           mount directory          : mount known device here
           mount -t type dev dir    : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
           mount --bind olddir newdir
    or move a subtree:
           mount --move olddir newdir
    One can change the type of mount containing the directory dir:
           mount --make-shared dir
           mount --make-slave dir
           mount --make-private dir
           mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
           mount --make-rshared dir
           mount --make-rslave dir
           mount --make-rprivate dir
           mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using  -L label  or by uuid, using  -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say  man 8 mount .
    ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt && sudo mount –bind /dev /mnt/dev && sudo mount –bind /proc /mnt/proc && sudo chroot /mnt
    mount: /dev/sda5 already mounted or /mnt busy
    mount: according to mtab, /dev/sda5 is already mounted on /mnt
    ubuntu@ubuntu:~$ grub-install /dev/sda
    grub-mkdevicemap: error: cannot open /boot/grub/device.map
    ubuntu@ubuntu:~$ sudo grub-install /dev/sda
    grub-probe: error: cannot find a device for /boot/grub.
    
    No path or device is specified.
    Try ``grub-probe --help'' for more information.
    Auto-detection of a filesystem module failed.
    Please specify the module with the option `--modules' explicitly.
    ubuntu@ubuntu:~$ grub-install /dev/sda5
    rm: cannot remove `/boot/grub/915resolution.mod': Permission denied
    ubuntu@ubuntu:~$
    I'm afraid to go any further and type
    Code:
    sudo grub-install /dev/sda5
    and cause permanent damage.

  9. #29
    Join Date
    Apr 2008
    Beans
    11,707

    Re: GRUB RESCUE prompt

    You got the command wrong.

    Mine:

    sudo mount /dev/sda5 /mnt && sudo mount –bind /dev /mnt/dev && sudo mount –bind /proc /mnt/proc && sudo chroot /mnt

    Yours:

    sudo mount /dev/sda5/ /mnt && sudo mount -bind /dev /mnt/dev && sudo mount -bind /proc /mnt/proc && sudo chroot /mnt


    You also used some single- where they should be double --.

    Do not try to type long commands just double-click within the code box, select copy, then paste them into the terminal.

    So go back to post #27 and try again. If any part of that fails post back here.

  10. #30
    Join Date
    Apr 2008
    Beans
    11,707

    Re: GRUB RESCUE prompt

    Quote Originally Posted by unclesamslair View Post
    I only got this far.

    Code:
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    
    ubuntu@ubuntu:~$ sudo mount /dev/sda5/ /mnt && sudo mount -bind /dev /mnt/dev && sudo mount -bind /proc /mnt/proc && sudo chroot /mnt
    mount: invalid option -- 'b'
    Usage: mount -V                 : print version
           mount -h                 : print this help
           mount                    : list mounted filesystems
           mount -l                 : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
           mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
           mount device             : mount device at the known place
           mount directory          : mount known device here
           mount -t type dev dir    : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
           mount --bind olddir newdir
    or move a subtree:
           mount --move olddir newdir
    One can change the type of mount containing the directory dir:
           mount --make-shared dir
           mount --make-slave dir
           mount --make-private dir
           mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
           mount --make-rshared dir
           mount --make-rslave dir
           mount --make-rprivate dir
           mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using  -L label  or by uuid, using  -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say  man 8 mount .
    ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt && sudo mount –bind /dev /mnt/dev && sudo mount –bind /proc /mnt/proc && sudo chroot /mnt
    mount: /dev/sda5 already mounted or /mnt busy
    mount: according to mtab, /dev/sda5 is already mounted on /mnt
    ubuntu@ubuntu:~$ grub-install /dev/sda
    grub-mkdevicemap: error: cannot open /boot/grub/device.map
    ubuntu@ubuntu:~$ sudo grub-install /dev/sda
    grub-probe: error: cannot find a device for /boot/grub.
    
    No path or device is specified.
    Try ``grub-probe --help'' for more information.
    Auto-detection of a filesystem module failed.
    Please specify the module with the option `--modules' explicitly.
    ubuntu@ubuntu:~$ grub-install /dev/sda5
    rm: cannot remove `/boot/grub/915resolution.mod': Permission denied
    ubuntu@ubuntu:~$
    I'm afraid to go any further and type
    Code:
    sudo grub-install /dev/sda5
    and cause permanent damage.
    BTW we're not trying to install to:

    /dev/sda5

    It's:

    grub-install /dev/sda

    Just copy-n-paste!

Page 3 of 8 FirstFirst 12345 ... 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
  •