Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

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

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    If you can download and run the boot info script from the following link it will give us all the information in one comprehensive list and it will make it easier to inspect. Run the script from the LiveCD with your externals connected and then post the contents of RESULTS.txt.
    http://bootinfoscript.sourceforge.net
    Back to Xorg...

    Retired.

  2. #12
    Join Date
    Feb 2008
    Beans
    5,636

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    Ok, just a "wild" thing to try here; you're not supposed to edit grub.cfg by hand, but what the heck.

    Create a backup of your grub.cfg file. Copy it somewhere safe.

    Fire up gedit with
    Code:
    gksu gedit
    and open the grub.cfg file. Delete everything from there and replace it with
    Code:
    set timeout=5
    set default=0
    
    menuentry "Ubuntu" {
    set root=(hd1,5)
    search --no-floppy --fs-uuid --set 147ae2e4-af83-435b-b0f1-f7fc0137bd85
    linux    /boot/vmlinuz-2.6.35-28-generic-pae root=UUID=147ae2e4-af83-435b-b0f1-f7fc0137bd85 ro   quiet splash
    initrd    /boot/initrd.img-2.6.35-28-generic-pae
    }
    Save it and reboot.

    If it doesn't work, replace it with your backed up grub.cfg

  3. #13
    Join Date
    Apr 2011
    Beans
    44
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    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 #5 for (,msdos5)/boot/grub.
     => Windows is installed in the MBR of /dev/sdf
    
    sda1: _________________________________________________________________________
    
        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:   /bootmgr /Boot/BCD /Windows/System32/winload.exe
    
    sda3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   /bootmgr /boot/bcd
    
    sdf1: _________________________________________________________________________
    
        File system:       vfat
        Boot sector type:  -
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sdf2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sdf5: _________________________________________________________________________
    
        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
    
    sdf6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 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/sda1    *             63 1,222,578,629 1,222,578,567   7 HPFS/NTFS
    /dev/sda3       1,222,578,630 1,250,258,624    27,679,995   7 HPFS/NTFS
    
    
    Drive: sdf ___________________ _____________________________________________________
    
    Disk /dev/sdf: 999.7 GB, 999732936704 bytes
    255 heads, 63 sectors/track, 121543 cylinders, total 1952603392 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdf1                  63   782,694,778   782,694,716   c W95 FAT32 (LBA)
    /dev/sdf2         782,696,446 1,952,602,111 1,169,905,666   5 Extended
    /dev/sdf5         782,696,448 1,912,672,255 1,129,975,808  83 Linux
    /dev/sdf6       1,912,674,304 1,952,602,111    39,927,808  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/loop0                                              squashfs                                 
    /dev/sda1        D2F4C645F4C62B93                       ntfs                                     
    /dev/sda3        949CA48C9CA46A86                       ntfs       FACTORY_IMAGE                 
    /dev/sda: PTTYPE="dos" 
    /dev/sdf1        100D-341D                              vfat                                     
    /dev/sdf2: PTTYPE="dos" 
    /dev/sdf5        147ae2e4-af83-435b-b0f1-f7fc0137bd85   ext4                                     
    /dev/sdf6        571f1d8b-8384-43e2-a2b3-4fd27d0ab07d   swap                                     
    /dev/sdf: PTTYPE="dos" 
    error: /dev/sdb: No medium found
    error: /dev/sdc: No medium found
    error: /dev/sdd: No medium found
    error: /dev/sde: 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/sdf1        /media/100D-341D         vfat       (rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
    /dev/sdf5        /media/147ae2e4-af83-435b-b0f1-f7fc0137bd85 ext4       (rw,nosuid,nodev,uhelper=udisks)
    /dev/sda1        /media/D2F4C645F4C62B93  fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    
    
    =========================== sdf5/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,msdos5)'
    search --no-floppy --fs-uuid --set 147ae2e4-af83-435b-b0f1-f7fc0137bd85
    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,msdos5)'
    search --no-floppy --fs-uuid --set 147ae2e4-af83-435b-b0f1-f7fc0137bd85
    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-28-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos5)'
        search --no-floppy --fs-uuid --set 147ae2e4-af83-435b-b0f1-f7fc0137bd85
        linux    /boot/vmlinuz-2.6.35-28-generic-pae root=UUID=147ae2e4-af83-435b-b0f1-f7fc0137bd85 ro   quiet splash
        initrd    /boot/initrd.img-2.6.35-28-generic-pae
    }
    menuentry 'Ubuntu, with Linux 2.6.35-28-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos5)'
        search --no-floppy --fs-uuid --set 147ae2e4-af83-435b-b0f1-f7fc0137bd85
        echo    'Loading Linux 2.6.35-28-generic-pae ...'
        linux    /boot/vmlinuz-2.6.35-28-generic-pae root=UUID=147ae2e4-af83-435b-b0f1-f7fc0137bd85 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-28-generic-pae
    }
    ### 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,msdos5)'
        search --no-floppy --fs-uuid --set 147ae2e4-af83-435b-b0f1-f7fc0137bd85
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos5)'
        search --no-floppy --fs-uuid --set 147ae2e4-af83-435b-b0f1-f7fc0137bd85
        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/sda1)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set d2f4c645f4c62b93
        chainloader +1
    }
    menuentry "Windows Vista (loader) (on /dev/sda3)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set 949ca48c9ca46a86
        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 ###
    
    =============================== sdf5/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/sdf5 during installation
    UUID=147ae2e4-af83-435b-b0f1-f7fc0137bd85 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sdf6 during installation
    UUID=571f1d8b-8384-43e2-a2b3-4fd27d0ab07d none            swap    sw              0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    
    =================== sdf5: Location of files loaded by Grub: ===================
    
    
     542.6GB: boot/grub/core.img
     886.2GB: boot/grub/grub.cfg
     401.3GB: boot/initrd.img-2.6.35-28-generic-pae
     542.6GB: boot/vmlinuz-2.6.35-28-generic-pae
     401.3GB: initrd.img
     542.6GB: vmlinuz
    =======Devices which don't seem to have a corresponding hard drive==============
    
    sdb sdc sdd sde

  4. #14
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    Boot the LiveCD. Run the following just to confirm sda is still your Windows drive and sdf has your Ubuntu installation:
    Code:
    sudo fdisk -l # Lowercase L
    If the above provides different results, amend the instructions to reflect the proper drive.

    Install Grub2 to the sdf drive/MBR. Do not use the partition number in the second command.
    Code:
    sudo mount /dev/sdf5 /mnt
    sudo grub-install --root-directory=/mnt /dev/sdf
    Reboot, and make sure your BIOS boots the external drive (sdf) first.

    You should see menu entries for both Ubuntu and Windows. If you don't, after booting Ubuntu, run:
    Code:
    sudo update-grub
    Back to Xorg...

    Retired.

  5. #15
    Join Date
    Feb 2008
    Beans
    5,636

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    You're in good hands now - God, I hate grub2....

  6. #16
    Join Date
    Apr 2011
    Beans
    44
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    well, i changed the cfg file like you said and got the same error message. And when I rebooted, my backup of grub.cfg was gone.
    the output of "sudo fdisk -l #'
    Code:
    Disk /dev/sda: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x1549f232
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       76102   611289283+   7  HPFS/NTFS
    /dev/sda3           76103       77825    13839997+   7  HPFS/NTFS
    
    Disk /dev/sdf: 999.7 GB, 999732936704 bytes
    255 heads, 63 sectors/track, 121543 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x29a0b216
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdf1               1       48721   391347358    c  W95 FAT32 (LBA)
    /dev/sdf2           48721      121544   584952833    5  Extended
    /dev/sdf5           48721      119059   564987904   83  Linux
    /dev/sdf6          119059      121544    19963904   82  Linux swap / Solaris
    the other commands gave me this:
    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sdf /mnt
    mount: /dev/sdf already mounted or /mnt busy
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=mnt /dev/sdf
    /usr/sbin/grub-probe: error: cannot find a device for mnt/boot/grub (is /dev mounted?).

  7. #17
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    Quote Originally Posted by TacticalApe View Post
    the other commands gave me this:
    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sdf /mnt
    mount: /dev/sdf already mounted or /mnt busy
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=mnt /dev/sdf
    /usr/sbin/grub-probe: error: cannot find a device for mnt/boot/grub (is /dev mounted?).
    You are missing a / in "--root-directory=/mnt"

    If you get a 'already mounted' or 'busy' message, you will have to change the root directory to where sdf is already mounted. You can find out where sdf is mounted by running the command "mount".

    If you don't understand, just reboot and run the commands as posted.
    Back to Xorg...

    Retired.

  8. #18
    Join Date
    Apr 2011
    Beans
    44
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    OK... I typed in those commands, and rebooted without the cd, and it gave me this:
    Code:
    error: no such partition
    grub rescue>
    and when i typed "sudo update-grub" in terminal, it gave me this:
    Code:
    /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

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

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    If you hold down the SHIFT key during boot do you get a Grub menu? I would suspect not, but if you do let me know.

    At the grub prompt, type "ls". See what devices grub finds. If one of the entries shows (hdX,5) or (hdX,msdos5), X being 0, or 1, type:
    ls (hdX,5)/boot/grub
    Does it find a lot of *.mod files? If it does, we can try another way to boot.

    If not, about all I can suggest is to purge and reinstall Grub2 via the 'chroot' link in my signature line. Some of the files may be missing or corrupt, and purging and reinstalling G2 from scratch may fix it.
    Back to Xorg...

    Retired.

  10. #20
    Join Date
    Apr 2011
    Beans
    44
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: "error: no such device xxx.xxxx.xxxx.xxxx grub rescue"

    Do I reboot with or without the cd?
    Also, I looked at the chroot link in your signature, and it looks too confusing for me.

    Also, if this means anything, I get the same error messages when the EHD isn't plugged in, and that's where I installed ubuntu to. When I fix this, will I still be able to acess Windows when the EHD isn't plugged in?
    Last edited by TacticalApe; April 17th, 2011 at 08:51 PM.

Page 2 of 3 FirstFirst 123 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
  •