You are not logged in.
My old computer died so I got a replacement. The only hardware changes were the motherboard/CPU and a lack of GPU (since it died too). GRUB was setting root to /dev/sda2, but in this new computer that wouldn't work. I figured I'd change it to /dev/disk/by-label, but it still won't boot. I have udev loaded in mkinitcpio.conf and have tried what I could find on google (it had to do with pacman mostly, which is not the issue here).
I'm currently running a gparted parted magic live disc and checked already if the partition is corrupted; it isn't.
What should I be looking at to get by-label working? What kind of info do I need to provide in order to get some help (fdisk, blkid, etc)?
Thanks in advance.
Last edited by knuck (2012-08-19 02:07:01)
Offline
Is your fstab listing the correct device for /?
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
It's the same as it was before I switched hardware:
LABEL=arch / ext4 defaults 0 1Offline
Are you sure that that label/partition still exists? (e.g. your filesystem hasn't gotten corrupted)
Have you rebuilt the initramfs since you changed hardware (e.g. via chroot)? If not, try booting using the fallback image.
All you should need to do to get booting by label is change the root= statement in the bootloader's kernel params to
root=LABEL=archthe initram image's code should handle the rest at boot time.
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
Yep, I am sure it's not corrupted.
After re-generating the initramfs image, it boots just fine. I was not aware I had to do that after a hardware change. The issue is now solved, thank you for your help!
Offline
Hi,
mkinitcpio "autodetect" hook uses /sys to include only needed modules, which of course varies according to your hardware. That's why you had to rebuild your initramfs image ![]()
Offline