Web lists-archives.com

Re: Possibly erroneous "device not present" message during boot




Pascal Hambourg wrote:
> Le 12/04/2017 à 17:14, Richard Owlett a écrit :
>>
>> Whether initiated after power-on OR a restart the observed sequence is:
>> 1. Appearance of the Grub2 menu with a choice of 4 instances of Debian.
>> 2. Select instance installed on the SD card.
>> 3. Screen clears, this message appears against the Debian 8 background.
>>    error:  no such device: 380e2a6d-f851-4fd1-9db2-869a0982b511.
>>    Press any key to continue ...
>> 4. Otherwise the instance of Debian on the SD card boots routinely.
>
> This is a GRUB error message which cannot find the UUID specified in a 
> "search" command.
>
> In order to investigate, can you
> - report the menu entry code for the SD card system in 
> /boot/grub/grub.cfg (the one from the system on the hard drive owning 
> GRUB, not the one on the SD card) ;

  yep!


> - while the SD card is inserted, in the GRUB menu press "c" to enter a 
> GRUB shell and report the result of the "ls" command.

  also, check that the mount points exist for
the file system.

  you may think you've installed things to one
location only to later find you've actually
put them someplace else...

  another thing you can do is construct your own
menu entry and put it in /etc/grub.d/40_custom file

here is an example from when i was playing around
last week (you may need to insmod something else(s)
to get the efi, ssd, ext4, whatever partition table 
type you use, etc. going):  [and only use the lines from 
between the ====='s]  adjust as needed/desired.  :)

oh and of course, check your partition tables on the
devices to make sure they're actually what you expect.

======
#!/bin/sh
exec tail -n +3 $0
# 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.

menuentry "Count to three before launching..." {

echo "1..."
sleep 1
echo "2..."
sleep 1
echo "3..."
sleep 1

set linux_gfx_mode=
export linux_gfx_mode
load_video
insmod gzio
insmod part_msdos
insmod ext2
insmod usb
insmod fat

set root='hd0,msdos1'

echo    'Loading Linux 4.9.0-1-686-pae ...'
linux   /boot/vmlinuz-4.9.0-1-686-pae ro root=LABEL=ROOT_007 
echo    'Loading initial ramdisk ...'
initrd  /boot/initrd.img-4.9.0-1-686-pae
}
======

  and then run update-grub to get your new menu.


  songbird