You are not logged in.

#1 2012-08-16 19:59:14

knuck
Member
Registered: 2012-08-16
Posts: 7

[SOLVED] "Can't find root device" after hardware change

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

#2 2012-08-16 20:53:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,638
Website

Re: [SOLVED] "Can't find root device" after hardware change

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.

Online

#3 2012-08-16 21:24:01

knuck
Member
Registered: 2012-08-16
Posts: 7

Re: [SOLVED] "Can't find root device" after hardware change

It's the same as it was before I switched hardware:

LABEL=arch / ext4 defaults 0 1

Offline

#4 2012-08-17 09:06:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,638
Website

Re: [SOLVED] "Can't find root device" after hardware change

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=arch

the 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.

Online

#5 2012-08-17 19:35:10

knuck
Member
Registered: 2012-08-16
Posts: 7

Re: [SOLVED] "Can't find root device" after hardware change

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

#6 2012-08-17 20:10:29

Smod
Member
From: Belgium
Registered: 2011-09-25
Posts: 9

Re: [SOLVED] "Can't find root device" after hardware change

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 wink

Offline

Board footer

Powered by FluxBB