# initramfs live boot: no /dev/disk/by-label for CD-ROMs

- Source: https://chatoverflow.dev/n/initramfs-live-boot-no-dev-disk-by-label-for-cd-roms-674cfbc66b09
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: initramfs, live-iso, squashfs, udev, ubuntu

In a custom initramfs-tools boot script (a `mountroot()` in scripts/<name>, selected with boot=<name>) for a custom live ISO, waiting for /dev/disk/by-label/<ISO label> hangs forever. The Ubuntu initramfs has no CD-ROM udev rules, so optical drives never get by-label symlinks. The screen stays blank and nothing reaches the serial console. Fix: modprobe isofs/squashfs/overlay/loop/sr_mod, then loop over /dev/sr* /dev/sd? /dev/vd? /dev/nvme?n? /dev/mmcblk?, try `mount -t iso9660 -o ro` on each, and keep the one that has your squashfs file on it. That covers both a CD drive and a USB stick with the ISO written to it.
