Page 11 of 25 FirstFirst ... 91011121321 ... LastLast
Results 101 to 110 of 245

Thread: Grub Rescue Prompt Megathread

  1. #101
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by shellacked View Post
    Well I think it partially worked
    sudo grub-install --root-directory=mnt /dev/sda
    You are missing a / before "mnt"
    Code:
    sudo grub-install --root-directory=/mnt /dev/sda
    GRUB2

    Retired.

  2. #102
    Join Date
    Nov 2010
    Beans
    6

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by drs305 View Post
    You are missing a / before "mnt"
    Code:
    sudo grub-install --root-directory=/mnt /dev/sda
    I booted off the thumb drive and ran the following commands. I copied / pasted the input / output this time.

    Embarrassingly, in my last post, I didn't know I could copy / paste out of a terminal window so I typed the output into my post and apparently I missed the / in front of mnt.

    Code:
    ubuntu@ubuntu:/$ sudo mount /dev/sda1 /mnt
    ubuntu@ubuntu:/$ sudo grub-install --root-directory=/mnt /dev/sda
    grub-probe: error: Cannot open `/boot/grub/device.map'
    [: 494: =: unexpected operator
    Installing GRUB to /dev/sda as (hd0)...
    Installation finished. No error reported.
    This is the contents of the device map /mnt/boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.
    
    (fd0)    /dev/fd0
    (hd0)    /dev/sda
    (hd1)    /dev/sdb
    ubuntu@ubuntu:/$
    The output looks the same, so I *think* I only forgot the / in front of mnt in my post.

    Then, out of curiosity, I ran the boot_info_script again. Different output this time but it doesn't mean much to me

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 0.97 is installed in the MBR of /dev/sda and looks at sector 
        138714625 of the same hard drive for the stage2 file. A stage2 file is at 
        this location on /dev/sda. Stage2 looks on partition #1 for 
        /boot/grub/menu.lst.
     => Syslinux is installed in the MBR of /dev/sdb
     => Windows is installed in the MBR of /dev/sdc
    
    sda1: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  Grub 2
        Boot sector info:  Grub 2 is installed in the boot sector of sda1 and 
                           looks at sector 138944257 of the same hard drive for 
                           core.img, but core.img can not be found at this 
                           location.
        Operating System:  Ubuntu 10.04.1 LTS
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sdb1: _________________________________________________________________________
    
        File system:       vfat
        Boot sector type:  Fat32
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sdc1: _________________________________________________________________________
    
        File system:       vfat
        Boot sector type:  Windows XP: Fat32
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x0004e98b
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *              1   308,677,734   308,677,734  83 Linux
    /dev/sda2         308,677,735   312,581,807     3,904,073   5 Extended
    /dev/sda5         308,677,736   312,581,807     3,904,072  83 Linux
    
    
    Drive: sdb ___________________ _____________________________________________________
    
    Disk /dev/sdb: 2004 MB, 2004877312 bytes
    129 heads, 32 sectors/track, 948 cylinders, total 3915776 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xc3072e18
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdb1    *             32     3,915,775     3,915,744   b W95 FAT32
    
    
    Drive: sdc ___________________ _____________________________________________________
    
    Disk /dev/sdc: 4009 MB, 4009754624 bytes
    145 heads, 48 sectors/track, 1125 cylinders, total 7831552 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xc3072e18
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdc1    *             48     7,831,551     7,831,504   c W95 FAT32 (LBA)
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/loop0                                              squashfs                                 
    /dev/sda1        c96252e4-5388-4f1d-803d-8bf57606a7ec   ext4                                     
    /dev/sda5        7b54abcf-57b4-402b-94fb-e8f44cab57c0   swap                                     
    /dev/sdb1        B8B4-E828                              vfat       LINUX                         
    /dev/sdc1        43E6-0D3B                              vfat                                     
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    rootfs           /                        rootfs     (rw)
    /dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sda1        /mnt                     ext4       (rw)
    /dev/sdc1        /media/disk              vfat       (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=999,utf8,umask=077,flush)
    
    
    =========================== sda1/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 $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      set saved_entry=${prev_saved_entry}
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z ${boot_once} ]; then
        saved_entry=${chosen}
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
    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
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        linux    /boot/vmlinuz-2.6.32-26-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-26-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        echo    'Loading Linux 2.6.32-26-generic ...'
        linux    /boot/vmlinuz-2.6.32-26-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-26-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        linux    /boot/vmlinuz-2.6.32-25-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-25-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        echo    'Loading Linux 2.6.32-25-generic ...'
        linux    /boot/vmlinuz-2.6.32-25-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-25-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-24-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        echo    'Loading Linux 2.6.32-24-generic ...'
        linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-24-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        linux    /boot/vmlinuz-2.6.32-21-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        echo    'Loading Linux 2.6.32-21-generic ...'
        linux    /boot/vmlinuz-2.6.32-21-generic root=UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-21-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c96252e4-5388-4f1d-803d-8bf57606a7ec
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ ${timeout} != -1 ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    ### 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 ###
    
    =============================== sda1/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc    /proc    proc    nodev,noexec,nosuid    0    0
    # / was on /dev/sda1 during installation
    UUID=c96252e4-5388-4f1d-803d-8bf57606a7ec    /    ext4    errors=remount-ro    0    1    # /dev/sda1
    # swap was on /dev/sda5 during installation
    UUID=7b54abcf-57b4-402b-94fb-e8f44cab57c0    none    swap    sw    0    0    # /dev/sda5
    
    =================== sda1: Location of files loaded by Grub: ===================
    
    
      71.1GB: boot/grub/core.img
     155.0GB: boot/grub/grub.cfg
      71.0GB: boot/grub/stage2
      71.0GB: boot/initrd.img-2.6.32-21-generic
      82.5GB: boot/initrd.img-2.6.32-24-generic
      83.2GB: boot/initrd.img-2.6.32-25-generic
      83.3GB: boot/initrd.img-2.6.32-26-generic
      71.0GB: boot/vmlinuz-2.6.32-21-generic
      71.2GB: boot/vmlinuz-2.6.32-24-generic
      71.2GB: boot/vmlinuz-2.6.32-25-generic
      71.2GB: boot/vmlinuz-2.6.32-26-generic
      83.3GB: initrd.img
      83.2GB: initrd.img.old
      71.2GB: vmlinuz
      71.2GB: vmlinuz.old
    Upon rebooting I get a grub prompt:

    Code:
        [ Minimal BASH-like line editing is supported.  For 
          the first word, TAB lists possible command 
          completions.  Anywhere else TAB lists the possible 
          completions of a device/filename. ]
    
    grub>
    Sorry for the confusion, and many thanks for the help!

  3. #103
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by shellacked View Post
    Sorry for the confusion, and many thanks for the help!
    Well, it's progress of sorts.

    What kind of Ubuntu drive did you boot off of? It installed Grub legacy according the the results.txt. Is your thumb drive OS hardy?

    In any case, there is no menu.lst, which is what Grub legacy would have to have to boot.

    We have a couple of options, but I'll need to know if you have a bootable copy of the Lucid LiveCD or a copy of the ISO on a thumb drive or on your hard disk that Grub 2 might be able to access.
    GRUB2

    Retired.

  4. #104
    Join Date
    Nov 2010
    Beans
    6

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by drs305 View Post
    Well, it's progress of sorts.

    What kind of Ubuntu drive did you boot off of? It installed Grub legacy according the the results.txt. Is your thumb drive OS hardy?

    In any case, there is no menu.lst, which is what Grub legacy would have to have to boot.

    We have a couple of options, but I'll need to know if you have a bootable copy of the Lucid LiveCD or a copy of the ISO on a thumb drive or on your hard disk that Grub 2 might be able to access.
    I had 9.04 live on a thumb drive that I used to boot and reinstall grub. I just formatted that thumb drive and I'm installing 10.04 live which (I think) is the same thing as lucid.

  5. #105
    Join Date
    Nov 2010
    Beans
    6

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by drs305 View Post
    We have a couple of options, but I'll need to know if you have a bootable copy of the Lucid LiveCD or a copy of the ISO on a thumb drive or on your hard disk that Grub 2 might be able to access.
    I have Lucid Live on a thumb drive

  6. #106
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by shellacked View Post
    I have Lucid Live on a thumb drive
    Since you ended up with Grub legacy installed on your OS, I'd recommend booting the Lucid CD and using the 'chroot' method to purge all Grub(s) and reinstall them. Here is the link on how to do this:
    HOWTO: Purge and Reinstall Grub 2 from the Live CD.

    When you are mounting the 'real' installation, first check to make sure what it is called (sda or sdb).
    GRUB2

    Retired.

  7. #107
    Join Date
    Nov 2010
    Beans
    6

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by drs305 View Post
    Since you ended up with Grub legacy installed on your OS, I'd recommend booting the Lucid CD and using the 'chroot' method to purge all Grub(s) and reinstall them. Here is the link on how to do this:
    HOWTO: Purge and Reinstall Grub 2 from the Live CD.

    When you are mounting the 'real' installation, first check to make sure what it is called (sda or sdb).
    Worked like a charm!!! Thanks *so* much for your help!!!

  8. #108
    Join Date
    Dec 2010
    Beans
    1

    Post Re: Grub Rescue Prompt Megathread

    At this point, I've been trying for two hours, and am in dire need of help. If I can't get this back up and running ASAP, I'm in serious trouble for school (finals are in less than two weeks).

    If anyone would be so kind as to help me, It would be very appreciated. I spend about 60%/30% of my time between windows and ubuntu. Today, it asked me to update something or other and I remember clearly asking me about installing something or other called GRUB. The help recommended I do it, and so I did.

    Now it wont restart and if I try to boot without a Live CD (as I am doing now) I get the Grub Rescue> prompt. I really need to get back into windows or I'm screwed into redoing 20+ hours of work in less than two weeks.

    I followed the instructions as much as I could, and here are the "Results" file --

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #6 for (,msdos6)/boot/grub.
     => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in 
        partition #256 for /boot/grub.
     => Windows is installed in the MBR of /dev/sdg
    
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows XP
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows XP
        Boot sector info:  According to the info in the boot sector, sda5 starts 
                           at sector 63.
        Operating System:  
        Boot files/dirs:   
    
    sdb1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /Windows/System32/winload.exe /wubildr.mbr /wubildr
    
    sdb2: _________________________________________________________________________
    
        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
    
    sdb3: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info:  
    
    sdb5: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows XP
        Boot sector info:  According to the info in the boot sector, sdb5 starts 
                           at sector 63.
        Operating System:  
        Boot files/dirs:   /ubuntu/winboot/wubildr.mbr /ubuntu/winboot/wubildr 
                           /ubuntu/disks/root.disk /ubuntu/disks/swap.disk
    
    sdb5/Wubi: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.04.1 LTS
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sdb6: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sdb7: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sdg1: _________________________________________________________________________
    
        File system:       vfat
        Boot sector type:  MSWIN4.1: Fat 32
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *          2,048   809,161,919   809,159,872   7 HPFS/NTFS
    /dev/sda2         809,161,920 1,953,520,064 1,144,358,145   f W95 Ext d (LBA)
    /dev/sda5         809,161,983 1,953,520,064 1,144,358,082   7 HPFS/NTFS
    
    
    Drive: sdb ___________________ _____________________________________________________
    
    Disk /dev/sdb: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdb1    *             63   572,122,844   572,122,782   7 HPFS/NTFS
    /dev/sdb2         572,122,845   894,467,069   322,344,225   7 HPFS/NTFS
    /dev/sdb3         894,467,131 1,250,263,039   355,795,909   f W95 Ext d (LBA)
    /dev/sdb5         894,467,133 1,185,752,518   291,285,386   7 HPFS/NTFS
    /dev/sdb6       1,185,753,088 1,247,514,623    61,761,536  83 Linux
    /dev/sdb7       1,247,516,672 1,250,263,039     2,746,368  82 Linux swap / Solaris
    
    
    Drive: sdg ___________________ _____________________________________________________
    
    Disk /dev/sdg: 8011 MB, 8011120640 bytes
    41 heads, 41 sectors/track, 9307 cylinders, total 15646720 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdg1               8,064    15,646,719    15,638,656   c W95 FAT32 (LBA)
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/loop0                                              squashfs                                 
    /dev/loop1       0a20d074-40cf-46a9-8974-8479193f4738   ext4                                     
    /dev/sda1        01CA976C239F6030                       ntfs       Storage                       
    /dev/sda2: PTTYPE="dos" 
    /dev/sda5        01CA95D1925AAD00                       ntfs       Media Storage                 
    /dev/sda: PTTYPE="dos" 
    /dev/sdb1        01CA97FA4528F250                       ntfs       Windows 7 64-bit              
    /dev/sdb2        01CB6CA7CBE56DA0                       ntfs       Windows Vista                 
    /dev/sdb3: PTTYPE="dos" 
    /dev/sdb5        01CB6CA7CDC83760                       ntfs       Ubuntu                        
    /dev/sdb6        9d5a3272-5a6f-439f-8467-3efda84edd76   ext4                                     
    /dev/sdb7        116ce12f-df57-4144-99cb-ae7fabb5da26   swap                                     
    /dev/sdb: PTTYPE="dos" 
    /dev/sdg1        1B26-EC79                              vfat       PATRIOT                       
    /dev/sdg: PTTYPE="dos" 
    error: /dev/sdc: No medium found
    error: /dev/sdd: No medium found
    error: /dev/sde: No medium found
    error: /dev/sdf: No medium found
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    aufs             /                        aufs       (rw)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sdg1        /media/PATRIOT           vfat       (rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
    
    
    ======================== sdb5/Wubi/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 $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      set saved_entry=${prev_saved_entry}
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z ${boot_once} ]; then
        saved_entry=${chosen}
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ntfs
    set root='(hd1,5)'
    search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    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
    insmod ntfs
    set root='(hd1,5)'
    search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/10_lupin ###
    menuentry "Ubuntu, Linux 2.6.32-26-generic" {
        insmod ntfs
        set root='(hd1,5)'
        search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.32-26-generic root=/dev/sdb5 loop=/ubuntu/disks/root.disk ro   quiet splash
        initrd /boot/initrd.img-2.6.32-26-generic
    }
    menuentry "Ubuntu, Linux 2.6.32-26-generic (recovery mode)" {
        insmod ntfs
        set root='(hd1,5)'
        search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.32-26-generic root=/dev/sdb5 loop=/ubuntu/disks/root.disk ro single 
        initrd /boot/initrd.img-2.6.32-26-generic
    }
    menuentry "Ubuntu, Linux 2.6.32-25-generic" {
        insmod ntfs
        set root='(hd1,5)'
        search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.32-25-generic root=/dev/sdb5 loop=/ubuntu/disks/root.disk ro   quiet splash
        initrd /boot/initrd.img-2.6.32-25-generic
    }
    menuentry "Ubuntu, Linux 2.6.32-25-generic (recovery mode)" {
        insmod ntfs
        set root='(hd1,5)'
        search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.32-25-generic root=/dev/sdb5 loop=/ubuntu/disks/root.disk ro single 
        initrd /boot/initrd.img-2.6.32-25-generic
    }
    menuentry "Ubuntu, Linux 2.6.32-24-generic" {
        insmod ntfs
        set root='(hd1,5)'
        search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.32-24-generic root=/dev/sdb5 loop=/ubuntu/disks/root.disk ro   quiet splash
        initrd /boot/initrd.img-2.6.32-24-generic
    }
    menuentry "Ubuntu, Linux 2.6.32-24-generic (recovery mode)" {
        insmod ntfs
        set root='(hd1,5)'
        search --no-floppy --fs-uuid --set 01cb6ca7cdc83760
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.32-24-generic root=/dev/sdb5 loop=/ubuntu/disks/root.disk ro single 
        initrd /boot/initrd.img-2.6.32-24-generic
    }
    ### END /etc/grub.d/10_lupin ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sdb2)" {
        insmod ntfs
        set root='(hd1,2)'
        search --no-floppy --fs-uuid --set 01cb6ca7cbe56da0
        chainloader +1
    }
    ### 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 ###
    
    ============================= sdb5/Wubi/etc/fstab: =============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    /host/ubuntu/disks/root.disk /               ext4    loop,errors=remount-ro 0       1
    /host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0
    
    ================= sdb5/Wubi: Location of files loaded by Grub: =================
    
    
      10.8GB: boot/grub/core.img
      28.3GB: boot/grub/grub.cfg
       1.7GB: boot/initrd.img-2.6.32-24-generic
       1.7GB: boot/initrd.img-2.6.32-25-generic
       1.7GB: boot/initrd.img-2.6.32-26-generic
      11.1GB: boot/vmlinuz-2.6.32-24-generic
      11.2GB: boot/vmlinuz-2.6.32-25-generic
      11.2GB: boot/vmlinuz-2.6.32-26-generic
       1.7GB: initrd.img
       1.7GB: initrd.img.old
      11.2GB: vmlinuz
      11.2GB: vmlinuz.old
    
    =========================== sdb6/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd1,msdos6)'
    search --no-floppy --fs-uuid --set 9d5a3272-5a6f-439f-8467-3efda84edd76
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd1,msdos6)'
    search --no-floppy --fs-uuid --set 9d5a3272-5a6f-439f-8467-3efda84edd76
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos6)'
        search --no-floppy --fs-uuid --set 9d5a3272-5a6f-439f-8467-3efda84edd76
        linux    /boot/vmlinuz-2.6.35-22-generic root=UUID=9d5a3272-5a6f-439f-8467-3efda84edd76 ro   quiet splash
        initrd    /boot/initrd.img-2.6.35-22-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos6)'
        search --no-floppy --fs-uuid --set 9d5a3272-5a6f-439f-8467-3efda84edd76
        echo    'Loading Linux 2.6.35-22-generic ...'
        linux    /boot/vmlinuz-2.6.35-22-generic root=UUID=9d5a3272-5a6f-439f-8467-3efda84edd76 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-22-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos6)'
        search --no-floppy --fs-uuid --set 9d5a3272-5a6f-439f-8467-3efda84edd76
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos6)'
        search --no-floppy --fs-uuid --set 9d5a3272-5a6f-439f-8467-3efda84edd76
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sdb2)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd1,msdos2)'
        search --no-floppy --fs-uuid --set 01cb6ca7cbe56da0
        chainloader +1
    }
    ### 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 ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    
    =============================== sdb6/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sdb6 during installation
    UUID=9d5a3272-5a6f-439f-8467-3efda84edd76 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sdb7 during installation
    UUID=116ce12f-df57-4144-99cb-ae7fabb5da26 none            swap    sw              0       0
    
    =================== sdb6: Location of files loaded by Grub: ===================
    
    
     611.5GB: boot/grub/core.img
     615.9GB: boot/grub/grub.cfg
     610.0GB: boot/initrd.img-2.6.35-22-generic
     611.5GB: boot/vmlinuz-2.6.35-22-generic
     610.0GB: initrd.img
     611.5GB: vmlinuz
    =========================== Unknown MBRs/Boot Sectors/etc =======================
    
    Unknown BootLoader  on sdb3
    
    00000000  f2 ba 08 00 00 00 41 b8  28 01 00 00 bf 0e 00 07  |......A.(.......|
    00000010  80 ff 15 71 62 f9 ff 48  85 c0 48 8b d8 74 18 48  |...qb..H..H..t.H|
    00000020  8d 05 da 70 fb ff 48 89  03 48 8d 05 20 72 fb ff  |...p..H..H.. r..|
    00000030  48 89 83 10 01 00 00 48  85 db 74 6c ba 19 00 00  |H......H..tl....|
    00000040  00 48 8b cb 44 8d 42 ea  e8 6f 4c 00 00 85 c0 8b  |.H..D.B..oL.....|
    00000050  f8 78 49 4c 8d 0d 1e 9f  03 00 48 8d 15 6f c4 03  |.xIL......H..o..|
    00000060  00 41 b8 01 00 00 00 48  8b cb c6 44 24 20 00 e8  |.A.....H...D$ ..|
    00000070  d4 19 fe ff 8b f8 8b 05  00 9f 03 00 83 f8 ff 74  |...............t|
    00000080  17 83 e8 01 89 05 f2 9e  03 00 75 0c 48 8d 0d e5  |..........u.H...|
    00000090  9e 03 00 e8 60 98 fd ff  85 ff 79 0c b2 01 48 8b  |....`.....y...H.|
    000000a0  cb e8 7a 5e fd ff 33 db  48 89 1e 48 8b 5c 24 40  |..z^..3.H..H.\$@|
    000000b0  48 8b 74 24 48 8b c7 48  83 c4 30 5f c3 cc cc cc  |H.t$H..H..0_....|
    000000c0  cc cc cc cc 48 83 ec 28  44 8b 41 10 41 3b d0 73  |....H..(D.A.A;.s|
    000000d0  0c 48 8b 41 08 8b d2 48  8b 04 d0 eb 10 48 8b 0d  |.H.A...H.....H..|
    000000e0  4c e5 03 00 41 2b d0 48  8b 01 ff 50 08 48 83 c4  |L...A+.H...P.H..|
    000000f0  28 c3 cc cc cc cc cc cc  40 53 48 83 ec 20 48 8b  |(.......@SH.. H.|
    00000100  d9 48 8b 0d 28 e5 03 00  48 8b 01 ff 50 10 03 43  |.H..(...H...P..C|
    00000110  10 48 83 c4 20 5b c3 cc  cc cc cc cc cc cc cc cc  |.H.. [..........|
    00000120  48 8b 05 09 e5 03 00 c3  cc cc cc cc cc cc cc cc  |H...............|
    00000130  48 83 ec 28 48 39 4a 30  75 04 b0 01 eb 0d 48 8b  |H..(H9J0u.....H.|
    00000140  0d eb e4 03 00 48 8b 01  ff 50 30 48 83 c4 28 c3  |.....H...P0H..(.|
    00000150  cc cc cc cc cc cc cc cc  48 83 ec 28 48 3b d1 75  |........H..(H;.u|
    00000160  04 b0 01 eb 0d 48 8b 0d  c4 e4 03 00 48 8b 01 ff  |.....H......H...|
    00000170  50 38 48 83 c4 28 c3 cc  cc cc cc cc cc cc cc cc  |P8H..(..........|
    00000180  40 53 48 83 ec 20 f6 c2  01 48 8d 05 20 73 fb ff  |@SH.. ...H.. s..|
    00000190  48 8b d9 48 89 01 74 05  e8 fb a8 fb ff 48 8b c3  |H..H..t......H..|
    000001a0  48 83 c4 20 5b c3 cc cc  cc cc cc cc 40 53 48 83  |H.. [.......@SH.|
    000001b0  ec 20 f6 c2 01 48 8d 05  44 73 fb ff 48 8b 00 fe  |. ...H..Ds..H...|
    000001c0  ff ff 07 fe ff ff 02 00  00 00 8a a9 5c 11 00 fe  |............\...|
    000001d0  ff ff 05 fe ff ff 8c a9  5c 11 39 6a ae 03 00 00  |........\.9j....|
    000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    
    
    =======Devices which don't seem to have a corresponding hard drive==============
    
    sdc sdd sde sdf
    Where do I go from here? Please help! I'm on the verge of tears >.<;!

  9. #109
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub Rescue Prompt Megathread

    Quote Originally Posted by DvineINFEKT View Post
    Where do I go from here? Please help! I'm on the verge of tears >.<;!
    DvineINFEKT.

    Welcome to the Ubuntu Forums.

    No crying. However, head banging is allowed.

    You have a wubi install (sdb5) and a Maverick install on sdb6. This will get your Maverick working (most likely). Assuming you are on the LiveCD, open a terminal and run these commands. Do NOT put the partition number in the second command:
    Code:
    sudo mount /dev/sdb6 /mnt
    sudo grub-install --root-directory=/mnt /dev/sdb
    After it runs, reboot, and make sure the BIOS boots your sdb drive (640GB) one first. Once it boots, run "sudo update-grub".
    GRUB2

    Retired.

  10. #110
    Join Date
    Mar 2008
    Beans
    Hidden!

    Question Re: Grub Rescue Prompt Megathread

    Hi,

    I am bit new to linux and specially all this command prompts.

    I installed Ubuntu on an external hard disk and took it to connect it to another system, but it is failing to boot and getting an error:

    Code:
    Gave up waiting for root device. Common problems:
     - Boot args (cat /proc/cmdine)
       - Check rootdelay = (did the system wait long enough?)
       - Check root = (did the system wait for right device?)
     - Missing modules (cat /proc/modules; ls /dev)
    ALERT! /dev/sdc1 does not exist. Dropping to a shell!
    
    BusyBox v1.15.3 (Ubuntu 1:1.15.3-1ubuntu5) built in shell (ash)
    Please let me know how to rectify this error.

    I tried all steps that is shown at first post but then i don know what to give as sdx,y in last part of steps so could not complete steps.

    Please help...!!!

Page 11 of 25 FirstFirst ... 91011121321 ... 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
  •