You are not logged in.

#1 2021-01-13 10:03:21

cb9
Member
Registered: 2013-01-22
Posts: 27

[Solved] Getting error while booting after update.

Hi,

I updated system yesterday with

# pacman -Syyu

The update was successful without any error.

But now I randomly get error while booting and booting halts

The error is related to wrong recognition of harddisks internal and external.

Previously it used to recognize internal harddisk as sda and external harddisk as sdb.

But now it randomly recognize internal harddisk as sda or sdb and external harddisk as sdb or sda.

If it recognize internal harddisk as sda and external harddisk as sdb, system boots without any problem.

But if opposite happens ( internal haddisk as sdb and external harddisk as sda)

I get following errors after running journalctl -xb

dev-sda11.device:Job dev-sda11.device/start time out
Time out waiting for device /dev/sda11
Dependency failed for /home
Dependency failed for Local File Systems.
Dependency failed for File System Check on /dev/sda11

I get similiar errors for /dev/sda12
Dependency failed for swap
Dependency failed for /boot
Timed out waiting for /dev/sda8.

I tried rebooting several times, randomly it assigns sda to internal hdd and sdb to external hdd or sdb to internal and sda to external.
If it boots with sda to internal hdd and sdb to external hdd, everything works ok.

Last edited by cb9 (2021-01-13 13:23:01)

Offline

#2 2021-01-13 10:10:57

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 629

Re: [Solved] Getting error while booting after update.

Offline

#3 2021-01-13 11:00:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [Solved] Getting error while booting after update.

And tangential but stop using -Syyu, the command is -Syu the second y has very few specific cases where it might be necessary but you'd know if you were in such a case and you will avoid potential partial upgrade issues by just using one

Offline

#4 2021-01-13 12:58:59

cb9
Member
Registered: 2013-01-22
Posts: 27

Re: [Solved] Getting error while booting after update.

V1del wrote:

And tangential but stop using -Syyu, the command is -Syu the second y has very few specific cases where it might be necessary but you'd know if you were in such a case and you will avoid potential partial upgrade issues by just using one

Thank you.

Offline

#5 2021-01-13 13:10:42

cb9
Member
Registered: 2013-01-22
Posts: 27

Re: [Solved] Getting error while booting after update.

Thank you,

I regenerated /etc/fstab using

#genfstab -U -p /  > /etc/fstab

Now system boots without problem.

But it still randomly refers internal harddisk sda or sdb and external harddisk sdb or sda.

While booting sometimes I get

Starting version 247.2-1-arch
/dev/sda10 clean ...

and other times I get

Starting version 247.2-1-arch
/dev/sdb10 clean ...

Just wanted to know is it okay to have random reference sda/sdb to internal hdd and sdb/sda to external hdd?

Offline

#6 2021-01-13 13:40:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [Solved] Getting error while booting after update.

Yes the randomness is normal which is why it's recommended to use UUIDs in files that need to properly identify a disk/partition.

This depends on udev detection which happens in parallel and is non-deterministic.

To fix this for the initramfs phase, now that your fstab is correct just rerun a mkinitcpio -P

Last edited by V1del (2021-01-13 13:41:10)

Offline

#7 2021-01-13 13:56:25

cb9
Member
Registered: 2013-01-22
Posts: 27

Re: [Solved] Getting error while booting after update.

V1del wrote:

Yes the randomness is normal which is why it's recommended to use UUIDs in files that need to properly identify a disk/partition.

This depends on udev detection which happens in parallel and is non-deterministic.

To fix this for the initramfs phase, now that your fstab is correct just rerun a mkinitcpio -P

Thank you.

Offline

Board footer

Powered by FluxBB