LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-04-2012, 12:08 PM   #1
snowmobile74
LQ Newbie
 
Registered: Nov 2003
Location: Reston, VA
Distribution: Slackware for everything
Posts: 22

Rep: Reputation: 1
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
 
Old 06-05-2012, 10:07 PM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
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.
 
Old 06-13-2012, 11:48 AM   #3
snowmobile74
LQ Newbie
 
Registered: Nov 2003
Location: Reston, VA
Distribution: Slackware for everything
Posts: 22

Original Poster
Rep: Reputation: 1
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Software 11 02-25-2007 08:42 AM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Newbie 2 11-07-2006 12:58 PM
Annoying CD-rom driver error messages dinges Linux - Software 11 02-05-2006 04:54 PM
GRUB Error 25: Disk Read Error haertig Linux - Software 6 01-08-2005 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration