You are not logged in.

#1 2019-10-17 11:19:43

ruzz
Member
Registered: 2019-04-03
Posts: 4

Waiting 30 seconds for device /dev/disk/by-label

Hello, i have some issues booting arch linux live
Basically, i have libreboot as bios, so it won't read the normal grub menu, i have to load the kernel with the command linux and set initrd from the grub cli to run many of the linux distros.
After i digit boot, the distro starts booting , but it show me the error
" ERROR: '/dev/disk/by-label' device did not show up after 30 seconds..."
"Falling back to interactive prompt"
The iso works fine on other computers , so i think it must be something wrong when i load the kernel from grub cli ?
I tried to figure it out on google, searching for old arch forum posts, but couldn't find anything.
Does anybody have some ideas? I don't even know what is /dev/disk/by-label or what is its function , so i don't know where to start for debugging.

Offline

#2 2019-10-17 14:19:42

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: Waiting 30 seconds for device /dev/disk/by-label

I've never used libreboot, but the Arch Linux live image doesn't use grub, so it sounds like you're booting into the wrong thing.

/dev/disk/by-label should be a directory which contains udev-provided "persistent" symlinks to kernel device nodes. See https://wiki.archlinux.org/index.php/Pe … ice_naming

The Arch live image should load systemd-boot or syslinux (depending on whether your system is configured to boot into UEFI or legacy mode), which should in turn boot into the live environment using the /dev/disk/by-label/ARCH_YYYYMM (e.g. 201910) path.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2019-10-17 14:25:05

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Waiting 30 seconds for device /dev/disk/by-label

ruzz wrote:

i have to load the kernel with the command linux and set initrd from the grub cli to run many of the linux distros.
After i digit boot, the distro starts booting , but it show me the error
" ERROR: '/dev/disk/by-label' device did not show up after 30 seconds..."

What exactly are the grub commands being used?

It should be something like this:

Note: Described method is for using with GRUB2.
      GRUB2 is installed on target media and archlinux-<YYYY>.<MM>.<DD>-dual.iso
      is at path <TARGET-PATH> on disk <D> and partition <P>,
      where filesystem is labeled as <TARGET-FS-LABEL>.

menuentry "Arch Linux (x86_64)" {
    set isofile="/<TARGET-PATH>/archlinux-<YYYY>.<MM>.<DD>-dual.iso"
    loopback loop (hd<D>,<P>)$isofile
    linux (loop)/arch/boot/x86_64/vmlinuz img_label=<TARGET-FS-LABEL> img_loop=$isofile
    initrd (loop)/arch/boot/x86_64/archiso.img
}

If the img_label parameter is unset you'll get the error you're seeing.


--
saint_abroad

Offline

#4 2019-10-18 13:02:57

ruzz
Member
Registered: 2019-04-03
Posts: 4

Re: Waiting 30 seconds for device /dev/disk/by-label

I was exactly missing the img_label parameter,and the first two commands,thank you.
What i have to write instead of TARGET-FS-LABEL ?

Offline

#5 2019-10-19 08:44:25

Minsc
Member
Registered: 2012-07-16
Posts: 95

Re: Waiting 30 seconds for device /dev/disk/by-label

ruzz wrote:

I was exactly missing the img_label parameter,and the first two commands,thank you.
What i have to write instead of TARGET-FS-LABEL ?

Label can be anything, it's just a label and will not affect your boot.

Offline

#6 2019-10-19 08:54:47

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Waiting 30 seconds for device /dev/disk/by-label

ruzz wrote:

What i have to write instead of TARGET-FS-LABEL ?

From Arch ISO how it works:

When booting, the initramfs will search for the device it was booted from via its label, ARCH_201410 for example, and will mount the root filesystem for the architecture.

The label changes each release. To get the current label, try isoinfo:

# isoinfo -d -i archlinux-2018.03.01-x86_64.iso

--
saint_abroad

Offline

Board footer

Powered by FluxBB