You are not logged in.

#1 2017-12-23 16:39:40

andrzej1_1
Member
Registered: 2017-09-07
Posts: 50

[SOLVED] Unable to boot after moving disk to another computer

I went to home for the holidays with my SSD, but after inserting it in brother computer, there is problem with partition mounting:

Scanning for Btrfs filesystems
Waiting 10 seconds for device /dev/disk/by-uuid/ac37046d-5dd7-4226-9671-0371e5f7004a ...
:: mounting 'UUID=ac37046d-5dd7-4226-9671-0371e5f7004a' on real root
mount: /new_root: can't find UUID=ac37046d-5dd7-4226-9671-0371e5f7004a .
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off

It's weird, because UUID didn't change, so partition should be mounted. I regenerated grub.cfg with Arch live USB, but it didn't help.

What I should do to fix it?


$ fdisk -l

Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C9EEA64F-BB92-47FA-9049-40223BEC78C6

Device        Start       End   Sectors   Size Type
/dev/sdb1      2048      6143      4096     2M BIOS boot
/dev/sdb2      6144   2103295   2097152     1G EFI System
/dev/sdb3   2103296  85989375  83886080    40G Linux filesystem
/dev/sdb4  85989376  90183679   4194304     2G Linux swap
/dev/sdb5  90183680 488393038 398209359 189.9G Linux home

$ ls -al /dev/disk/by-uuid

lrwxrwxrwx 1 root root  10 12-23 17:42 6369-C782 -> ../../sdb2
lrwxrwxrwx 1 root root  10 12-23 17:42 ac37046d-5dd7-4226-9671-0371e5f7004a -> ../../sdb3
lrwxrwxrwx 1 root root  10 12-23 17:42 ad393894-299d-48a1-8616-b57a4850ec6f -> ../../sdb5
lrwxrwxrwx 1 root root  10 12-23 17:42 cb10b753-2d40-4b84-84dc-2b0b39733e82 -> ../../sdb4

/etc/fstab

UUID=ac37046d-5dd7-4226-9671-0371e5f7004a	/         	btrfs     	rw,relatime,ssd,space_cache,subvolid=5,subvol=/	0 0
UUID=ad393894-299d-48a1-8616-b57a4850ec6f	/home     	btrfs     	rw,relatime,ssd,space_cache,subvolid=5,subvol=/	0 0
UUID=6369-C782      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2
UUID=cb10b753-2d40-4b84-84dc-2b0b39733e82	none      	swap      	defaults  	0 0
UUID=5284348184346A1D	/run/media/andrew/External		ntfs-3g		nosuid,nodev,nofail,uid=andrew,gid=users,dmask=022,fmask=133	0 0 
UUID=a5ea97a7-aadc-4fcc-92ac-78d34d550495	/run/media/docker	btrfs	nosuid,nodev,nofail	0 0 

Last edited by andrzej1_1 (2017-12-24 18:44:01)

Offline

#2 2017-12-23 16:57:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Unable to boot after moving disk to another computer

Boot the fallback initramfs

Online

#3 2017-12-24 18:43:46

andrzej1_1
Member
Registered: 2017-09-07
Posts: 50

Re: [SOLVED] Unable to boot after moving disk to another computer

Thank you for this workaround, it's working smile

I checked grub config and there was 'hd0', but my disk is 'hd1' and that caused problem.

Offline

Board footer

Powered by FluxBB