You are not logged in.

#1 2013-09-12 21:33:55

cyph3r
Member
Registered: 2012-01-13
Posts: 11

[Solved] Device with uuid not found after disk change

Hello,
I'll explain my situation.
I have a laptop with an SSD drive containing the /boot and / partitions and an HDD that contains the /var /home , swap partitions, and another one that is ntfs and on which I have a Windows partition to dual boot.

So for some weeks now everytime I tried to shutdown the laptop it would take like 1-2 minutes where it waited and then it would say "Failed to unmount /var and write (some journal) to /var/something" ... [Sorry for not remembering specifics now. If you need them tell me where to get the log for that and I'll paste it.]
Now I generally always update at least once a week. So I ran a pacman -Syuu yesterday, it updated 4-5 packages and then after a while I rebooted. Now after the reboot the problems started.
I immediately got an error during boot saying that "The device with uuid..[the uuid of /var] was not found, unable to boot... loading recovery console..."
I tried booting to windows on the HDD and it booted once, i rebooted and then i got a bsod during the boot. So I assumed it was a faulty HDD. I bought one today, cloned the partitions to the new HDD, I ran fsck via gparted live cd on those partitions and now I get the error "the device with uuid [the uuid of my / partition which is on the ssd drive] was not found, unable to boot etc".
I'm not sure what happened. /boot and / are in the ssd. I tried booting again on windows now that they are on the new drive and I still get the bsod. I ran a memtest for two passes and everything seems ok. It just seems really weird.

The laptop is 7-8 months old. It's almost new.
My only guess is that 1) after the update something was written wrong to the linux partitions on the hdd and now the problem somehow persists. And it still appears in windows as well because I did a big update when I booted to windows after arch failed to load the first time and I guess during the update a lot of stuff where written with errors to the old, faulty hdd.

What can I try to restore it?
I don't care about the windows partition I can format that but I would like to get arch back up and running. :\

Thanks in advance for reading all this. smile

Last edited by cyph3r (2013-09-13 15:34:38)

Offline

#2 2013-09-12 23:09:41

spicefather
Member
Registered: 2013-06-04
Posts: 1

Re: [Solved] Device with uuid not found after disk change

Could you post the outputs of 'lsblk -f' and 'cat /etc/fstab'?

Offline

#3 2013-09-12 23:38:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [Solved] Device with uuid not found after disk change

Did fsck find any errors?

Have you used smartmontools to monitor and test the disk(s)?

Any clues in the journal?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2013-09-13 09:40:30

cyph3r
Member
Registered: 2012-01-13
Posts: 11

Re: [Solved] Device with uuid not found after disk change

lsblk -f outputs

root@PartedMagic:~# lsblk -f
NAME   FSTYPE          LABEL UUID                                 MOUNTPOINT
sda    isw_raid_member                                            
├─sda1 ext3                  e36a8c94-d8ae-41f7-80a5-a7f68ee99c22 
└─sda2 ext4                  e02376ae-c782-4281-8708-d50141ac6e78 
sdb                                                               
├─sdb1 ext4                  2dffd2ca-9ba8-4129-927e-db6a77f95822 
├─sdb2 ext4                  7ec4351b-515b-400c-b6cb-bb5452305cbd 
├─sdb3 ntfs                  58AC9E06AC9DDEB6                     
└─sdb4 swap                  37649df0-2c2a-4d4f-85f1-e6e010c0c737 
sdc                                                               
└─sdc1 vfat                  B610-0072                            
loop0  squashfs                                                   
loop1  squashfs                       

sdc1 is the flash drive from which i booted. During the boot is says it can't find the device that corresponds to /dev/sda2 (the ssd drive).
Then I mounted the /dev/sda2 and cat fstab

root@PartedMagic:~# mount /dev/sda2
root@PartedMagic:~# cat /media/sda2/etc/fstab
# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	defaults,nodev,nosuid,mode=1777,size=1600m	0	0
UUID=2dffd2ca-9ba8-4129-927e-db6a77f95822 /home ext4 defaults,relatime,nosuid 0 1
UUID=37649df0-2c2a-4d4f-85f1-e6e010c0c737 swap swap defaults,nosuid 0 0
UUID=e02376ae-c782-4281-8708-d50141ac6e78 / ext4 defaults,relatime,discard,commit=60 0 1
UUID=e36a8c94-d8ae-41f7-80a5-a7f68ee99c22 /boot ext3 defaults,noatime,discard 0 1
UUID=7ec4351b-515b-400c-b6cb-bb5452305cbd /var ext4 defaults,noatime,nosuid 0 1
#UUID=2613E5EC245BDE1C   /data   ntfs-3g    defaults,quiet,noexec    0   0

I did also an fsck test to all the partitions and it said they were clean and had no errors. I also ran smartctl -t long /dev/sda and sdb and checked after some minutes and it said it completed without errors.

Now about the journal I don't know how to check that...

I guess it's a software issue? I googled a bit and i find answers saying that It might be needed to chroot to the arch installation from a live cd and recreate the linux image with mkinitcpio -p linux ? Would that be useful? If yes are there any instructions on how to do it?  :\

Last edited by cyph3r (2013-09-13 10:27:13)

Offline

#5 2013-09-13 14:31:34

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: [Solved] Device with uuid not found after disk change

I guess you still have to tell your boot loader where your new root partition is. You can do this by chrooting into your arch install and reinstalling your boot loader (see beginner's guide for details). Recreating the kernel images propably won't get you anywhere (but it won't hurt you either, so go ahead if you feel like doing it; again, the beginner's guide should get you going).

Offline

#6 2013-09-13 14:43:25

cyph3r
Member
Registered: 2012-01-13
Posts: 11

Re: [Solved] Device with uuid not found after disk change

But my root partition hasn't changed. It was/is in the ssd drive in /dev/sda2. And I didn't change that at all. I only recreated the /var and /home partitions that were on the hdd that i replaced. And I checked their uuid's and they're the same as before since I cloned the old hdd to the new one byte by byte.

Edit: Fixed it by chrooting and reinstalling bootloader and regenerating kernel image. big_smile Thanks for the help!

Last edited by cyph3r (2013-09-13 15:34:17)

Offline

Board footer

Powered by FluxBB