LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   GRUB annoying error messages. error: no such disk (https://www.linuxquestions.org/questions/linux-general-1/grub-annoying-error-messages-error-no-such-disk-948464/)

snowmobile74 06-04-2012 11:08 AM

GRUB annoying error messages. error: no such disk
 
Let me start with this system boots up fine, but it prints the error message "error: no such disk" that I'd like to get rid of.

This is Ubuntu 10.04 running inside of VMWare ESX 5, but I have observed this problem in KVM as well.

I would love to find a way to get some kind of real debugging output to see what drive its actually complaining about but I haven't found that yet.


grub.cfg

Code:


insmod lvm
insmod ext2
set lang=en
insmod gettext
set timeout=0
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry 'Ubuntu, with Linux 2.6.32-33-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,1)'
        linux  /vmlinuz-2.6.32-33-generic-pae root=/dev/mapper/ubuntu-root ro  quiet
        initrd  /initrd.img-2.6.32-33-generic-pae
}

blkid output
Code:

/dev/vda1: UUID="61ca2160-c761-4d1d-a76b-d606e0137c5b" TYPE="ext2"
/dev/vda2: UUID="FygOdK-2eRq-M33m-RAAn-Jl1z-9LSz-H3ygNX" TYPE="LVM2_member"                                                                                                                 
/dev/mapper/ubuntu-root: UUID="eaccd0a0-4afb-4723-ab65-4a21ff27bcbc" TYPE="ext4"                                                                                                             
/dev/mapper/ubuntu-swap_1: UUID="3ccf27ee-b686-42ef-9c6e-e6afc9c20331" TYPE="swap"

lvdisplay output

Code:

  LV Name                /dev/ubuntu/root                                                                                                                                                   
  VG Name                ubuntu                                                                                                                                                             
  LV UUID                1ZRXhO-lqQj-04iH-eQIi-sygW-Kv1J-eOIkJx                                                                                                                             
  LV Write Access        read/write                                                                                                                                                         
  LV Status              available                                                                                                                                                           
  # open                1                                                                                                                                                                   
  LV Size                2.15 GiB                                                                                                                                                           
  Current LE            550
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          251:0
 
  --- Logical volume ---
  LV Name                /dev/ubuntu/swap_1
  VG Name                ubuntu
  LV UUID                mFAKe4-U1oF-ubvh-KVfn-rPNt-JHXp-zjfpIL
  LV Write Access        read/write
  LV Status              available
  # open                1
  LV Size                388.00 MiB
  Current LE            97
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          251:1


towheedm 06-05-2012 09:07 PM

You if you do not have a floppy drive in the VM, this is what may be causing the error.

Look at your /boot/grub/device.map file, it is a plain text file and remove any line that does not correspond to a drive in the VM.

Hope this helps.

snowmobile74 06-13-2012 10:48 AM

Sorry for the long lag time in responding


I suppose it should have been obvious but that's how things go sometimes when stare at something for too long! I added the search line

Code:

search --no-floppy --fs-uuid --set 61ca2160-c761-4d1d-a76b-d606e0137c5b

-----------/boot/grub/grub.cfg
insmod lvm
insmod ext2
set lang=en
insmod gettext
set timeout=0
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry 'Ubuntu, with Linux 2.6.32-33-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        insmod ext2
        root='(hd0,1)'
        search --no-floppy --fs-uuid --set 61ca2160-c761-4d1d-a76b-d606e0137c5b
        linux  /vmlinuz-2.6.32-33-generic-pae root=/dev/mapper/ubuntu-root ro  quiet
        initrd  /initrd.img-2.6.32-33-generic-pae

}
-----------end of /boot/grub/grub.cfg

For anyone else that may need that is the uuid of my boot partiton
Code:

root#: blkid
/dev/vda1: UUID="61ca2160-c761-4d1d-a76b-d606e0137c5b" TYPE="ext2"
#excess output removed

root#: df -h
/dev/vda1            228M  23M  194M  11% /boot 
#excess output removed



All times are GMT -5. The time now is 04:45 PM.