Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ALERT! /dev/disk/by-uuid does not exist - stuck in initramfs

Linux Kernel, Network, and Services configuration.
Message
Author
gstunts
Posts: 3
Joined: 2012-09-20 02:54

ALERT! /dev/disk/by-uuid does not exist - stuck in initramfs

#1 Post by gstunts »

Hi all,
I've had Debian Squeeze running as virtual machine for months with no issue. Recently my host PC overheated and I had to reboot with all VMs still running. Ever since my Debian box won't boot the kernel and drops out at the initramfs prompt with the following screen containing "FATAL: Module index: unexpected error: EOF" and "Gave up waiting for root device." followed by "ALERT! /dev/by-uuid/b1e40... does not exist":
Image
Same if I tell grub to use /dev/sda1: grub sda1 error

So here's what I've done to troubleshoot:
  • Booted to Grub grub command prompt and I can see my disk (scsi disk presented by VM host) and partitions i.e. (hd0) (hd0,msdos5) (hd0,msdos1) (fd0)). Grub can also see boot images on hd0 partition 1:
    Image
  • booted into LiveCD Recovery mode and checked partitions in fdisk and blkid (which matches the grub boot statements):
    Image
    Image
  • Checked from initramfs and can't see anything for blkid or in /dev/disk or /dev/sd*
    Image
  • chroot'ed into /dev/sda1 and ran "depmod" - no errors
  • fsck on /dev/sda1
- no errors
[*] From the LiveCD, I mounted /dev/sda1 and can read files from it with no errors.

The only thing strange is Grub thinks the partition is EXT2 when it's actually EXT3 - is this normal?

I've spent hours trawling forums and trying various suggestions but my box just doesn't like me anymore! :cry:

Anyone know what's broken here?

Thanks in advance!

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#2 Post by edbarx »

As far as I know, ext2 is ext3 without a journal. This means that there is nothing wrong with grub saying that the partition is ext2. The error preventing you from booting may be bypassed by pressing 'e' at the grub screen which should enable you to modify the kernel line and the initrd lines. Check which partition number contains your installation. Supposing this is x, the kernel line containing root=/dev/... should be edited to root=/dev/sdax.

When you hopefully boot, try to rebuild your initramfs and check the validity of the UUID passed in /etc/fstab. fstab must contain the correct uuid before you update your initramfs.

If you fail, you will need to use a live linux CD to access and edit the /etc/fstab file to correct the uuid passed as the / partition. Then, you should be able to either reboot or use chroot to build the initramfs.

The good new is that your system appears to be repairable.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

gstunts
Posts: 3
Joined: 2012-09-20 02:54

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#3 Post by gstunts »

Thanks for the speedy response! Unfortunately editing the grub boot command didn't fix it - and based on the fact that Grub can actually see files in in (hd0,msdos1)/boot, plus it seems to decompress the kernel and initrd images, I don't think that's where the problem lies.

I also booted the Live CD and tried changing the entry in /etc/fstab from a UUID=x (where x does match the blkid of hd0,1) to /dev/sda1 (correct according to fdisk and blkid when in the live CD), but unfortunately that didn't fix it.

I guess the question still remains, why can grub and the LiveCD both see the root partition - (hd0,msdos1) and (/dev/sda1) respectively, but initramfs can't? So as per the screen shot above these commands come back with nothing:

Code: Select all

(initramfs) blkid
(initramfs) ls /dev/sd*
ls: /dev/sd*: No such file or directory
(initramfs) ls /dev/disk
ls: /dev/disk: No such file or directory
(initramfs) cat /proc/modules
(initramfs) 


If I do the same under the LiveCD, it all looks fine:

Code: Select all

$ sudo blkid
/dev/sda1: UUID="b1e40a2d-5e33-4deb-8820-b350666da411" TYPE="ext3"
/dev/sda5: UUID="410fb1b1-c12a-4b9e-9d91-cbd222e20bf1" TYPE="swap"
/dev/loop0: TYPE="squashfs"
$
$ ls -la /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root  80 Sep 21 00:05 .
drwxr-xr-x 5 root root 100 Sep 21 00:05 ..
lrwxrwxrwx 1 root root  10 Sep 21 00:06 410fb1b1-c12a-4b9e-9d91-cbd222e20bf1 -> ../../sda5
lrwxrwxrwx 1 root root  10 Sep 21 00:06 b1e40a2d-5e33-4deb-8820-b350666da411 -> ../../sda1
$ 
$ cat /proc/modules|head
appletalk 24133 0 - Live 0xffffffffa01e1000
ipx 18787 0 - Live 0xffffffffa010c000
p8023 1044 1 ipx, Live 0xffffffffa0030000
rose 33882 0 - Live 0xffffffffa019a000
netrom 29064 0 - Live 0xffffffffa017b000
ax25 39104 2 rose,netrom, Live 0xffffffffa00e2000
ext3 106710 1 - Live 0xffffffffa034b000
jbd 37317 1 ext3, Live 0xffffffffa0056000
mbcache 5050 1 ext3, Live 0xffffffffa0021000
cpufreq_userspace 1992 0 - Live 0xffffffffa0348000
$

User avatar
Anteaus
Posts: 279
Joined: 2007-09-06 15:34

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#4 Post by Anteaus »

Might not be the answer you're looking for, but I've always used lilo by preference, and never hit problems of this kind because it doesn't use these evil UUIDs. To set it up where grub has broken, you'd need to boot from a live CD and then chroot to the mount-point of the boot partition. For a new install in the textbased installer, you cancel when asked whether to install grub in the MBR or boot partition, and install lilo manually from the main installer menu.

I don't know why grub seems to be preferred these days. Lilo is far simpler, easier to reconfigure, and very reliable. Plus if it does break the repair procedure is straightforward and almost always successful.

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#5 Post by edbarx »

I use grub-pc installed in a non-standard way and against the developers' advice and it always works. In other words, grub-pc or grub are not the real problem.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

User avatar
Anteaus
Posts: 279
Joined: 2007-09-06 15:34

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#6 Post by Anteaus »

Agree. UUIDs are the problem. A quick trawl of the internets brings up numerous cases of broken boxes where UUIDs are the culprit. The whole idea seems cack-handed, for example modifying a common data partition in one OS on a dualboot PC (Ubuntu in the case mentioned) can render that partition inaccessible on the other, because the UUID change is only known to the originating OS. Meanwhile the poor user only knows that s/he specified the partitions correctly at install, and can't understand what the problem is.

UUIDs look set to infiltrate other areas of IT, with databases such as MySQL introducing them as a replacement for auto-incremented fields. I dread to think what backup and repair problems this is going to bring for CMS websites and the like.

Admittedly I haven't willingly installed grub since some bad experiences in its early days. It may well have improved since then. But, in my experience lilo 'just works' so I will continue to use it wherever possible.

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#7 Post by edbarx »

for example modifying a common data partition in one OS on a dualboot PC (Ubuntu in the case mentioned) can render that partition inaccessible on the other
That is not a problem. You can easily change the uuid of the modified partition to match its previous one.

That can be easily done with the command:

Code: Select all

# tune2fs -U new-uuid /dev/partition-device-node
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

gstunts
Posts: 3
Joined: 2012-09-20 02:54

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#8 Post by gstunts »

Thanks for the input guys, but as stated earlier in my posts, I've tried booting via alternative names such as /dev/sda1 and (hd0,msdos5) etc but still no luck.

Also Grub doesn't appear to be the issue as it can see the boot partition and vmlinuz images i.e.:
Image

It all comes down to the initramfs kernel not being able to find any disks in /dev i.e.:
(initramfs) blkid
(initramfs) ls /dev/sd*
ls: /dev/sd*: No such file or directory
(initramfs) ls /dev/disk
ls: /dev/disk: No such file or directory
(initramfs) cat /proc/modules
(initramfs)

Also initramfs complains that it has an EOF while trying to read the Mobile index, so I get this when the boot fails:

FATAL: Module index: unexpected error: EOF
Try re-running depmod

I saw in another post that I should run the live CD, mount then chroot into /dev/sda1, and run depmod. I've done this already and depmod runs for a couple of seconds, then comes back with no errors.

Any other suggestions?

Thanks!

spartan3000_it
Posts: 1
Joined: 2012-10-06 09:32

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#9 Post by spartan3000_it »

After cloning a debian squeeze from pendrive to hd (in which there were also ubuntu granting grub booting of partitions) I had the same error response. The os-prober of ubuntu did not recognize the new uuid of the debian cloned installation. I solved reading the new uuid of the debian cloned filesystem with a live cd, changing it in /etc/fstab and with a custom menuentry in ubuntu in /etc/grub.d/40_custom. Entry type:

menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
insmod ext4
set root=(hdx,y)
search --no-floppy --fs-uuid --set xxxxxxx
echo 'Loading Linux 2.6.32-5-686 ...'
linux /boot/vmlinuz-2.6.32-5-686 root=UUID=xxxxxxxx ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-686
}

Change xxxxxx with the new uuid. After booting debian reinstall grup-pc and grub-common and that repair /boot dir. After that os-prober will properly work. You can try a grub installation on pendrive to do this.

User avatar
layr
Posts: 86
Joined: 2011-10-11 15:07

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#10 Post by layr »

Does anyone know whether this issue was solved? I'm quite in the same position as OP, also changed grub's UUID-s to /dev/sdX, tried adding rootdelay=XX etc, but no luck.
In my case, I simply threw the HD from one computer into another and that's when trouble began.

depassp
Posts: 1
Joined: 2013-03-23 19:46

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#11 Post by depassp »

Hello,

I had this problem and I solved it by:

1) Download the Debian live rescue image and install it to a USB flash drive
2) Boot the live image
3) Mount my (damaged) root partition and chroot into it
4) apt-get purge linux-image* && apt-get update && apt-get install linux-image-686

Something strange must have happened with my last kernel install but it was fixed by re-installing.

Note: A lot of people are complaining about UUIDs but I think it's mostly because they don't know what's going on. In general, mounting disks by UUID is a _good_ thing.

User avatar
meden
Posts: 8
Joined: 2008-03-31 16:11

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#12 Post by meden »

Hello, I'm in the exact same situation, but purging and reinstalling the kernel images did not helped.

My system was perfectly working until I migrated my root partition to an SSD. I fixed everything (Grub, UUIDs...) and I managed to boot without issues and several times using my new SSD. Things stopped working after an initrd update. The really strange thing is that copying the old initrd from the previous root partition to the new one (/boot/initrd.img-3.14-1-amd64) works. I compared the content of new and old initrd and they seemed equals.

What I already tried:
  • Update initramfs using MODULES=most instead the previous (working...) MODULES=dep
  • Reinstalling and updating grub2
  • Purging and reinstalling initramfs-tools
  • Purging and reinstalling the kernels
Strange things I noted:
  • When issuing an initramfs-update only one initrd gets updated and is NOT the one of current running kernel...
  • Doing another initramfs comparison after all purging and reinstalling i noticed that in the new non working initrd the file conf/modules is missing (not considering the modules missing due to switching from MODULES=dep to most, of course)
The only thing may worth mentioning (but they should be ininfluent): I introduced the use of tmpfs for the mount points /tmp and /var/tmp and I'm using goanysync for some other directories.
Any hint? Thanks
Alessio

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#13 Post by kiyop »

What are on /etc/initramfs-tools/modules?
Boot the debian with the old initrd and post the result of

Code: Select all

lsmod
ls /boot/
uname -r
blkid
cat /etc/fstab
ls /lib/modules
df
between "[ code]" and "[ /code]" tags (omit the spaces just after the "[").
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

User avatar
meden
Posts: 8
Joined: 2008-03-31 16:11

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#14 Post by meden »

kiyop wrote:What are on /etc/initramfs-tools/modules?

Code: Select all

# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
kiyop wrote: Boot the debian with the old initrd and post the result of

Code: Select all

lsmod
ls /boot/
uname -r
blkid
cat /etc/fstab
ls /lib/modules
df
between "[ code]" and "[ /code]" tags (omit the spaces just after the "[").

Code: Select all

root@gas-mobile:~# lsmod 
Module                  Size  Used by
udf                    83702  0 
crc_itu_t              12347  1 udf
pci_stub               12429  1 
vboxpci                18981  0 
vboxnetadp             25443  0 
vboxnetflt             23324  0 
vboxdrv               261792  3 vboxnetadp,vboxnetflt,vboxpci
nls_utf8               12456  0 
nls_cp437              16553  0 
vfat                   17135  0 
fat                    53794  1 vfat
usb_storage            52036  0 
ccm                    17577  3 
hid_generic            12393  0 
usbhid                 44439  0 
hid                    94034  2 hid_generic,usbhid
rts5139               324666  0 
uvcvideo               78960  0 
videobuf2_vmalloc      12816  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
videobuf2_core         35303  1 uvcvideo
videodev              117963  2 uvcvideo,videobuf2_core
media                  18303  2 uvcvideo,videodev
cpufreq_userspace      12525  0 
cpufreq_conservative    14184  0 
cpufreq_powersave      12454  0 
cpufreq_stats          12789  0 
binfmt_misc            16949  1 
uinput                 17372  1 
deflate                12551  0 
ctr                    12927  3 
twofish_generic        16569  0 
twofish_avx_x86_64     46079  0 
twofish_x86_64_3way    25483  1 twofish_avx_x86_64
twofish_x86_64         12541  2 twofish_avx_x86_64,twofish_x86_64_3way
twofish_common         20585  4 twofish_generic,twofish_avx_x86_64,twofish_x86_64_3way,twofish_x86_64
camellia_generic       29025  0 
camellia_aesni_avx_x86_64    25925  0 
camellia_x86_64        50481  1 camellia_aesni_avx_x86_64
serpent_avx_x86_64     46241  0 
serpent_sse2_x86_64    50146  0 
xts                    12679  3 camellia_x86_64,serpent_sse2_x86_64,twofish_x86_64_3way
serpent_generic        29140  2 serpent_sse2_x86_64,serpent_avx_x86_64
blowfish_generic       12464  0 
blowfish_x86_64        21132  0 
blowfish_common        16487  2 blowfish_generic,blowfish_x86_64
cast5_avx_x86_64       49760  0 
cast5_generic          20813  1 cast5_avx_x86_64
cast_common            12313  2 cast5_generic,cast5_avx_x86_64
des_generic            20851  0 
cbc                    12696  0 
cmac                   12709  0 
xcbc                   12709  0 
rmd160                 16640  0 
sha512_ssse3           41814  0 
sha512_generic         12632  1 sha512_ssse3
sha256_ssse3           21596  0 
sha256_generic         16804  1 sha256_ssse3
hmac                   12753  0 
crypto_null            12732  0 
af_key                 35295  0 
xfrm_algo              13031  1 af_key
joydev                 17063  0 
x86_pkg_temp_thermal    12951  0 
intel_powerclamp       17159  0 
arc4                   12536  2 
nvram                  13034  0 
intel_rapl             17356  0 
coretemp               12854  0 
kvm_intel             134712  0 
kvm                   388171  1 kvm_intel
crc32_pclmul           12915  0 
crc32c_intel           21809  0 
snd_hda_codec_hdmi     40955  1 
ghash_clmulni_intel    12978  0 
snd_hda_codec_realtek    50301  1 
snd_hda_codec_generic    59065  1 snd_hda_codec_realtek
ath9k                  90155  0 
ath9k_common           12634  1 ath9k
aesni_intel           151423  6 
ath9k_hw              386912  2 ath9k_common,ath9k
aes_x86_64             16719  1 aesni_intel
lrw                    12757  7 camellia_x86_64,serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,camellia_aesni_avx_x86_64,twofish_avx_x86_64,twofish_x86_64_3way
ath                    26067  3 ath9k_common,ath9k,ath9k_hw
gf128mul               12970  2 lrw,xts
iTCO_wdt               12831  0 
glue_helper            12695  7 camellia_x86_64,serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,camellia_aesni_avx_x86_64,twofish_avx_x86_64,twofish_x86_64_3way
asus_nb_wmi            16568  0 
ablk_helper            12572  6 serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,camellia_aesni_avx_x86_64,twofish_avx_x86_64,cast5_avx_x86_64
asus_wmi               22781  1 asus_nb_wmi
sparse_keymap          12818  1 asus_wmi
mxm_wmi                12515  0 
mac80211              464019  1 ath9k
cryptd                 14516  3 ghash_clmulni_intel,aesni_intel,ablk_helper
iTCO_vendor_support    12649  1 iTCO_wdt
cfg80211              412187  3 ath,ath9k,mac80211
pcspkr                 12595  0 
psmouse                90422  0 
evdev                  17445  27 
r8169                  60070  0 
rfkill                 18867  4 cfg80211,asus_wmi
serio_raw              12849  0 
i2c_i801               16965  0 
mii                    12675  1 r8169
sg                     29972  0 
snd_hda_intel          43768  3 
snd_hda_codec         100159  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
i915                  718092  4 
snd_hwdep              13148  1 snd_hda_codec
snd_pcm_oss            44847  0 
snd_mixer_oss          22042  1 snd_pcm_oss
snd_pcm                84566  4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_timer              26614  1 snd_pcm
ehci_pci               12472  0 
drm_kms_helper         39892  1 i915
ehci_hcd               48510  1 ehci_pci
snd                    61046  16 snd_hda_codec_realtek,snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_mixer_oss
drm                   236561  5 i915,drm_kms_helper
wmi                    17339  2 mxm_wmi,asus_wmi
soundcore              13026  1 snd
mei_me                 13400  0 
ac                     12668  0 
usbcore               158411  6 uvcvideo,rts5139,usb_storage,ehci_hcd,ehci_pci,usbhid
i2c_algo_bit           12751  1 i915
mei                    50039  1 mei_me
i2c_core               24228  6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev
battery                13101  0 
lpc_ich                20768  0 
usb_common             12440  1 usbcore
mfd_core               12601  1 lpc_ich
video                  17804  2 i915,asus_wmi
button                 12944  1 i915
processor              28221  0 
loop                   26605  0 
fuse                   78839  3 
ecryptfs               76138  0 
parport_pc             26300  0 
ppdev                  12686  0 
lp                     17074  0 
parport                35749  3 lp,ppdev,parport_pc
autofs4                27383  2 
ext4                  473514  3 
crc16                  12343  1 ext4
mbcache                13082  1 ext4
jbd2                   82560  1 ext4
sd_mod                 44346  6 
crc_t10dif             12431  1 sd_mod
crct10dif_generic      12581  0 
crct10dif_pclmul       13387  1 
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
ahci                   25099  4 
libahci                27116  1 ahci
libata                168945  2 ahci,libahci
scsi_mod              183017  5 sg,rts5139,usb_storage,libata,sd_mod
thermal                17468  0 
thermal_sys            27642  5 video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal
root@gas-mobile:~# 
root@gas-mobile:~# 
root@gas-mobile:~# ls /boot/
config-3.14-1-amd64                 initrd.img-3.14-1-amd64                 plop                                    vmlinuz-3.14-1-amd64
config-3.14-7.dmz.2-liquorix-amd64  initrd.img-3.14-1-amd64.sdb2            System.map-3.14-1-amd64                 vmlinuz-3.14-7.dmz.2-liquorix-amd64
grub                                initrd.img-3.14-7.dmz.2-liquorix-amd64  System.map-3.14-7.dmz.2-liquorix-amd64
root@gas-mobile:~# 
root@gas-mobile:~# 
root@gas-mobile:~# uname -r
3.14-1-amd64
root@gas-mobile:~# 
root@gas-mobile:~# 
root@gas-mobile:~# blkid 
/dev/sda1: LABEL="linux" UUID="325f7845-cb20-4f45-9328-6a9ce9133f5a" TYPE="ext4" 
/dev/sda2: LABEL="home" UUID="1c80518a-e8af-4458-9204-6172675a363b" TYPE="ext4" 
/dev/sdb1: LABEL="RECOVERY" UUID="021B-02EA" TYPE="vfat" 
/dev/sdb3: UUID="a07710ca-3272-48bf-8d17-d606302610f3" TYPE="ext4" 
/dev/sdb6: UUID="84cde76e-2aca-4cd9-9fc7-43cde6c494db" TYPE="swap" 
/dev/sdb2: LABEL="debian" UUID="b045a430-2b24-4a80-9556-2e9349165509" TYPE="ext4" 
/dev/sdb5: UUID="fb035f9f-2f7a-45f6-b704-a98caf045802" TYPE="ext4" 
root@gas-mobile:~# 
root@gas-mobile:~# 
root@gas-mobile:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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    defaults        0       0

# / was on /dev/sda1 during installation
UUID=325f7845-cb20-4f45-9328-6a9ce9133f5a	/			ext4	errors=remount-ro,discard	0       1

# /home was on /dev/sda2 during installation
UUID=1c80518a-e8af-4458-9204-6172675a363b	/home			ext4	defaults,discard 		0       2

# /dev/sdb5 - HDD per i dati voluminosi
UUID=fb035f9f-2f7a-45f6-b704-a98caf045802	/mnt/dati		ext4	defaults			0       2

# swap was on /dev/sda6 during installation
UUID=84cde76e-2aca-4cd9-9fc7-43cde6c494db	none			swap	sw				0	0

/dev/sr0					/media/cdrom0		udf,iso9660 user,noauto			0	0

# Uso di tmpfs per evitare wearing della SSD
tmpfs						/tmp			tmpfs	defaults,noatime,mode=1777	0	0
#tmpfs						/var/log		tmpfs	defaults,noatime,mode=0755	0	0
#tmpfs						/var/spool		tmpfs	defaults,noatime,mode=1777	0	0
tmpfs						/var/tmp		tmpfs	defaults,noatime,mode=1777	0	0
tmpfs						/var/cache/pbuilder/build	tmpfs	defaults,size=2400M	0	0

# Bind mounts per dati voluminosi
/mnt/dati/alessio				/home/alessio/Dati	none	bind				0	0
/mnt/dati/alessio/Immagini			/home/alessio/Immagini	none	bind				0	0
/mnt/dati/alessio/Musica			/home/alessio/Musica	none	bind				0	0
/mnt/dati/alessio/Scaricati			/home/alessio/Scaricati	none	bind				0	0
/mnt/dati/alessio/Video				/home/alessio/Video	none	bind				0	0

/mnt/dati/alessio/Immagini-da-sistemare		/home/alessio/Immagini-da-sistemare	none	bind		0	0

/mnt/dati/stefania				/home/stefania/Dati			none	bind		0	0
/mnt/dati/stefania/Immagini			/home/stefania/Immagini			none	bind		0	0
/mnt/dati/stefania/Musica			/home/stefania/Musica			none	bind		0	0
/mnt/dati/stefania/Scaricati			/home/stefania/Scaricati		none	bind		0	0
/mnt/dati/stefania/Video			/home/stefania/Video			none	bind		0	0
root@gas-mobile:~# 
root@gas-mobile:~# 
root@gas-mobile:~# ls /lib/modules
3.14-1-amd64  3.14-7.dmz.2-liquorix-amd64  3.2.0-4-amd64
root@gas-mobile:~# 
root@gas-mobile:~# 
root@gas-mobile:~# df
File system    1K-blocks     Usati Disponib. Uso% Montato su
/dev/sda1       30832636  21672596   7570792  75% /
udev               10240         0     10240   0% /dev
tmpfs            1620884      1128   1619756   1% /run
tmpfs            4052200   2324892   1727308  58% /dev/shm
tmpfs            4052200         0   4052200   0% /sys/fs/cgroup
tmpfs            2457600         0   2457600   0% /var/cache/pbuilder/build
tmpfs            4052200        32   4052168   1% /var/tmp
tmpfs            4052200     50228   4001972   2% /tmp
tmpfs             102400        32    102368   1% /run/user
tmpfs               5120         0      5120   0% /run/lock
/dev/sda2       84283904  67481720  12497700  85% /home
/dev/sdb5      245604536 216151344  16954152  93% /mnt/dati
Here the missing conf/modules found in the old working initrd (built with MODULES=dep):

Code: Select all

pci:v00008086d00001C03sv00001043sd00001277bc01sc06i01
ahci
Alessio

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#15 Post by kiyop »

Thank you for posting the results :)

/dev/sda1 is the original debian (before migration), isn't it?
SSD is /dev/sdb, isn't it?
Can you boot the debian in /dev/sda1 without the SSD?

I want to know which modules are necessasry to recognize and to use the SSD.
If I were you, I would add the necessary modules names (without ".ko") in /etc/initramfs-tools/modules and execute

Code: Select all

update-initramfs -u
How did you migrate your root partition to an SSD?
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

User avatar
meden
Posts: 8
Joined: 2008-03-31 16:11

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#16 Post by meden »

kiyop wrote:Thank you for posting the results :)
Thank you for your support... :)
kiyop wrote: /dev/sda1 is the original debian (before migration), isn't it?
SSD is /dev/sdb, isn't it?
Before migration I had an HDD as sda and the root partition was sda2 (being sda1 a windows recoverry one).
I then replaced the HDD with an SSD (same SATA port), moving the HDD in a caddy, replacing the DVD burner (I'm on a laptop).
Now the root partition is sda1.
kiyop wrote: Can you boot the debian in /dev/sda1 without the SSD?
As said, /dev/sda1 is the new root on the SSD. I already deleted the old partition on the HDD, but I previously managed to boot it without problems even after the migration (when it became sdb2, but UUIDs did their work).
Now I boot from the SSD manually changing the initrd in grub at each boot, so to use a copy taken from the old Debian root partition (the former sda2, sdb2 after migration, deleted now).
kiyop wrote: I want to know which modules are necessasry to recognize and to use the SSD.
If I were you, I would add the necessary modules names (without ".ko") in /etc/initramfs-tools/modules and execute

Code: Select all

update-initramfs -u
Just to be sure I purged the liquorix kernel, so I now have only the official Debian 3.14. I did it because the update-initramfs -u was updating only the liquorix initrd despite not being the liquorix one the running kernel.
I added

Code: Select all

pci:v00008086d00001C03sv00001043sd00001277bc01sc06i01
ahci
to /etc/initramfs-tools/modules (as in the working initrd) and regenerated the initrd. Nothing works, still the boot busybox conole.
kiyop wrote:How did you migrate your root partition to an SSD?
I followed some guides from internet (more for reference than for need... :wink: ), but basically I did rsync -av, excluding virtual filesystems, if I remember. I had some problems with gvfs (wrong ACLs for user mounts in /media): I should have used something like rsync -avAHX, it would have been much better.

Really, I can't figure what is happening...
Alessio

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#17 Post by kiyop »

I do not have enough time to read through what you posted.
But I understand that there is not the original debian partition.

Boot with the copied debian with your method (using old initramfs?) and execute the following and post the results:

Code: Select all

grep linux /boot/grub/grub.cfg
meden wrote:I then replaced the HDD with an SSD (same SATA port), moving the HDD in a caddy, replacing the DVD burner (I'm on a laptop).
I do not know about DVD burner. Thus, I cannot understand what you did.
meden wrote:I added

Code: Select all

pci:v00008086d00001C03sv00001043sd00001277bc01sc06i01
ahci
to /etc/initramfs-tools/modules (as in the working initrd) and regenerated the initrd. Nothing works, still the boot busybox conole.
At busybox, execute the following and confirm that all the necessary partitions are recognized and displayed. If not, write the partition which is not recognized.

Code: Select all

blkid
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

User avatar
meden
Posts: 8
Joined: 2008-03-31 16:11

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#18 Post by meden »

kiyop wrote:I do not have enough time to read through what you posted.
But I understand that there is not the original debian partition.
Boot with the copied debian with your method (using old initramfs?) and execute the following and post the results:

Code: Select all

grep linux /boot/grub/grub.cfg

Code: Select all

alessio@gas-mobile:~$ grep linux /boot/grub/grub.cfg 
### BEGIN /etc/grub.d/10_linux ###
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-325f7845-cb20-4f45-9328-6a9ce9133f5a' {
	linux	/boot/vmlinuz-3.14-1-amd64 root=UUID=325f7845-cb20-4f45-9328-6a9ce9133f5a ro  acpi_backlight=vendor quiet
submenu 'Opzioni avanzate per Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-325f7845-cb20-4f45-9328-6a9ce9133f5a' {
	menuentry 'Debian GNU/Linux, con Linux 3.14-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-1-amd64-advanced-325f7845-cb20-4f45-9328-6a9ce9133f5a' {
		linux	/boot/vmlinuz-3.14-1-amd64 root=UUID=325f7845-cb20-4f45-9328-6a9ce9133f5a ro  acpi_backlight=vendor quiet
	menuentry 'Debian GNU/Linux, with Linux 3.14-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-1-amd64-recovery-325f7845-cb20-4f45-9328-6a9ce9133f5a' {
		linux	/boot/vmlinuz-3.14-1-amd64 root=UUID=325f7845-cb20-4f45-9328-6a9ce9133f5a ro single 
### END /etc/grub.d/10_linux ###
kiyop wrote: I do not know about DVD burner. Thus, I cannot understand what you did.
I'm on a laptop. In origin there were an HDD (SATA Port 0) and a DVD burner (SATA Port 2). Then I bought an SSD, which I put on SATA P0, moving the HDD on SATA P2 (thus removing completely the DVD burner).
kiyop wrote: At busybox, execute the following and confirm that all the necessary partitions are recognized and displayed. If not, write the partition which is not recognized.

Code: Select all

blkid
The command gives nothing. In /dev there is no device related to disks. It seems udev does find the devices/populate the dev tree.
Alessio

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#19 Post by kiyop »

Thank you for your report.
I wondered if the uuid written in /boot/grub/grub.cfg is wrong. But it seems correct.
meden wrote:I'm on a laptop. In origin there were an HDD (SATA Port 0) and a DVD burner (SATA Port 2). Then I bought an SSD, which I put on SATA P0, moving the HDD on SATA P2 (thus removing completely the DVD burner).
I see. I guessed wrongly that DVD burner is a kind of software. :lol: :mrgreen:
meden wrote:
kiyop wrote: At busybox, execute the following and confirm that all the necessary partitions are recognized and displayed. If not, write the partition which is not recognized.

Code: Select all

blkid
The command gives nothing. In /dev there is no device related to disks.
This is bad. I do not have enough time now. Maybe I will post tomorrow or later.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

shoober420
Posts: 15
Joined: 2014-05-12 07:57

Re: ALERT! /dev/disk/by-uuid does not exist - stuck in initr

#20 Post by shoober420 »

I'm having the same problem as meden, except I didn't move my root or partition to any other hard drive. Its still the same drive. I've tried to change my grub settings from uuid=xxxxx to /dev/sda1, and it didnt help. I also tried switching my BIOS settings to use IDE instead of AHCI, and it still boots to busybox. The terminal also spits out this error message:

Code: Select all

modprobe: module ehci-orion not found in modules.dep
I'm making a debian live CD right now in the hope to check my /etc/fstab and make sure the UUID's are matching (which I feel they are). I ran an apt-get upgrade last night and it installed some packages. I think its just a bad update. I might as well be running experimental, considering I'm using unstable, since my machines a little more then just unstable at the moment. Its completely broken. They should test these updates before they roll them out. This isn't experimental.

I'm going to wait a couple of days for Debian to fix this bug. I will then chroot into my hard drive threw the Live CD, run apt-get update and upgrade, and see if the new package updates fix this issue. If that doesn't work, i'll see if doing a initrd update fixes it.
Last edited by shoober420 on 2014-06-26 05:07, edited 1 time in total.

Post Reply