In my existing 15.2, /etc/fstab is"
UUID=2cdf081b-9bd9-4b51-bb74-2a8a55c96cee swap swap defaults 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 / btrfs defaults 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /opt btrfs subvol=@/opt 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /tmp btrfs subvol=@/tmp 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /usr/local btrfs subvol=@/usr/local 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/crash btrfs subvol=@/var/crash 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/lib/named btrfs subvol=@/var/lib/named 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/log btrfs subvol=@/var/log 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/opt btrfs subvol=@/var/opt 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/spool btrfs subvol=@/var/spool 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/tmp btrfs subvol=@/var/tmp 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=6E64-4C27 /boot/efi vfat defaults 0 0
/dev/disk/by-id/ata-HGST_HDN726060ALE610_K1G4UPZB-part2 /data1 btrfs defaults 0 0
/dev/disk/by-id/ata-HGST_HDN726060ALE610_K1G4UPZB-part1 /home btrfs defaults 0 0
/dev/disk/by-id/ata-HGST_HDN726060ALE610_K1G4UPZB-part3 /srv btrfs defaults 0 0
#LABEL=seagate /Seagate ntfs nofail 0 0
#LABEL=passport /Passport ntfs nofail 0 0
/dev/disk/by-id/nvme-20025386361000b51-part4 /var/lib/machines btrfs subvol=@/var/lib/machines 0 0
/dev/disk/by-id/usb-WD_My_Book_25EE_37534A384D545957-0:0-part1 /data2 ext4 data=ordered 0 0
/dev/disk/by-id/ata-ST14000NE0008-2JK101_ZHZ5YWRM /lacie btrfs user 0 0
/dev/disk/by-id/scsi-350004cf20d1368af-part1 /seagate2TB ext4 data=ordered 0 2
#/dev/sdc1 /seagate2TB ext4 data=ordered 0 2
#UUID=db137200-5d3e-43fc-b5d8-72f1698d7890 /data2 ext4 defaults 0 2
When I get to the select system disk part if install, /dev/nvme0n1p4 is listed as OpenSUSE LEAP 15.2. But if I select this, I get a message saying it cannot be mounted.
mount:/mount/opt:special device/dev/disk/by_id/nvme-20025386361000b51-part4 does not exist
What is worse, it is impossible to get out of this state. cancel just repeats the error message, and I must kill it with the power button.
What to do??
Thanks,
Jim
My guess it to do a blkid to get the UUID’s of the partitions.
Make a copy of the /etc/fstab so you can replace it if I am wrong and change the dynamic partition names to the UUID you got from the blkid command in the real /etc/fstab.
From what I know the /dev/disk/by-id/ are dynamic for each release and are not the same names in your upgrade - UUID’s do not change.
Swap has the format for the UUID lines in /etc/fstab.
good luck.
This is certainly unfriendly, and I have never had to do this with previous upgrades. Surely others would have complained??
/dev/sda1: LABEL=“home” UUID=“413ecd4c-9244-4905-86e1-28f9885bd5c0” UUID_SUB=“476339c8-a8bd-496e-b6a9-53418d20d302” TYPE=“btrfs” PARTUUID=“1df91860-bfa7-4157-8016-4d855b5fce8d”
where do I put the part4?
Is it
UUID=413ecd4c-9244-4905-86e1-28f9885bd5c0-part4
to replace
/dev/disk/by-id/nvme-20025386361000b51-part4
I have run into the issue of disk id changing. In my case, it changed after install.
Is it
UUID=413ecd4c-9244-4905-86e1-28f9885bd5c0-part4
to replace
/dev/disk/by-id/nvme-20025386361000b51-part4
Better make that:
UUID=413ecd4c-9244-4905-86e1-28f9885bd5c0
(that is, omit the “-part4”).
you need what blkid shows - the same length as the swap UUID. just leave out the double quotes.
LLR1:~ # blkid
/dev/nvme0n1p1: SEC_TYPE="msdos" UUID="154C-7981" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="b28151a8-cd24-43a2-a088-47fa8addbbd7"
/dev/nvme0n1p2: UUID="868bf3ab-5299-495e-8104-fee60868253f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6cb0520b-5620-4170-8869-8f2e93b33ec1"
/dev/nvme0n1p3: UUID="b8b9c9a0-e9dc-4a23-bcf4-39f72538c6be" TYPE="swap" PARTUUID="199de1bd-385a-4ee9-b1ae-4416824852d7"
LLR1:~ # cat /etc/fstab
UUID=b8b9c9a0-e9dc-4a23-bcf4-39f72538c6be swap swap defaults 0 0
UUID=868bf3ab-5299-495e-8104-fee60868253f / ext4 defaults 0 1
UUID=154C-7981 /boot/efi vfat defaults 0 2
LLR1:~ #
/dev/sda is not a Nvme device - are you moving the Nvme to a USB container to do this?
/dev/disk/by-id/nvme-20025386361000b51-part4 should be /dev/nvme0n1p4 not /dev/sda1
# blkid
/dev/sda1: LABEL="home" UUID="413ecd4c-9244-4905-86e1-28f9885bd5c0" UUID_SUB="476339c8-a8bd-496e-b6a9-53418d20d302" TYPE="btrfs" PARTUUID="1df91860-bfa7-4157-8016-4d855b5fce8d"
/dev/sda2: LABEL="data1" UUID="dc822895-1388-47dd-8ce1-3326c945fef1" UUID_SUB="854871c3-c7e4-4333-b783-66acf4377cc8" TYPE="btrfs" PARTUUID="00760285-9b5b-4809-bf8b-f234b2a371ef"
/dev/sda3: LABEL="srv" UUID="228bba44-1a1d-4132-98c2-3a22d6adf1ad" UUID_SUB="e8cf2414-ba7c-4f5e-b3a9-5ef6701744c2" TYPE="btrfs" PARTUUID="c4b99f9c-4bde-4813-a778-56a80a33f8ae"
/dev/nvme0n1: PTUUID="9324b820-d613-4ef0-ad04-213c3402b085" PTTYPE="gpt"
/dev/nvme0n1p1: LABEL="ESP" UUID="6E64-4C27" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="caf70716-ffac-4217-9023-b37ff3fcb798"
/dev/nvme0n1p2: LABEL="OS" UUID="5A7F-58FC" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="ff3db9a6-1c3d-49cd-82d2-8be25cafe9c1"
/dev/nvme0n1p3: UUID="2cdf081b-9bd9-4b51-bb74-2a8a55c96cee" TYPE="swap" PARTLABEL="primary" PARTUUID="d577edd7-5285-4956-91cd-c80f3b9ba6e9"
/dev/nvme0n1p4: UUID="681d5015-b686-45c0-ade1-275d86a3de1f" UUID_SUB="b64ccfa3-b14a-4f27-af19-724b2caf8941" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="347abdcd-be67-4c48-8de2-50fb3cd5d1b5"
/dev/sr0: UUID="2021-05-24-12-22-37-61" LABEL="openSUSE-Leap-15.3-DVD-x86_64160" TYPE="iso9660" PTUUID="47155e83" PTTYPE="dos"
/dev/sdb: UUID="563ced3c-4fad-41fc-8b68-abaea835ade7" UUID_SUB="ce17cf87-525a-4d13-b9d1-f3ac2a326438" TYPE="btrfs"
/dev/sdc1: UUID="db137200-5d3e-43fc-b5d8-72f1698d7890" TYPE="ext4" PARTLABEL="My Book" PARTUUID="7c5f856f-534a-4956-8861-4da3dc997a13"
/dev/sdd1: LABEL="Seagate2TB" UUID="51848436-b17b-458f-a5a0-7e00c4a0fd09" TYPE="ext4" PARTUUID="ce6d5545-01"
/dev/sde1: PARTLABEL="Microsoft reserved partition" PARTUUID="eb9ac06c-2858-4577-9baf-0a3feb1ba4ea"
/dev/sde2: LABEL="seagate" UUID="6A1643471643140B" TYPE="ntfs" PTTYPE="atari" PARTLABEL="Basic data partition" PARTUUID="e09bf15f-a481-4b3a-bcea-e0e1bcc27ece"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
My boot disk is my ssd.
Which UUID corresponds to
/dev/disk/by-id/nvme-20025386361000b51-part4 / btrfs defaults
in df -ka , I get
/dev/nvme0n1p4 492837888 134742060 357026980 28% /
For others who have this issue, here is my edited /etc/fstab:
# cat /etc/fstab
UUID=2cdf081b-9bd9-4b51-bb74-2a8a55c96cee swap swap defaults 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f / btrfs defaults 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /opt btrfs subvol=@/opt 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /tmp btrfs subvol=@/tmp 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /usr/local btrfs subvol=@/usr/local 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/crash btrfs subvol=@/var/crash 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/log btrfs subvol=@/var/log 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/opt btrfs subvol=@/var/opt 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/spool btrfs subvol=@/var/spool 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=6E64-4C27 /boot/efi vfat defaults 0 0
UUID=dc822895-1388-47dd-8ce1-3326c945fef1 /data1 btrfs defaults 0 0
UUID=413ecd4c-9244-4905-86e1-28f9885bd5c0 /home btrfs defaults 0 0
UUID=228bba44-1a1d-4132-98c2-3a22d6adf1ad /srv btrfs defaults 0 0
#LABEL=seagate /Seagate ntfs nofail 0 0
#LABEL=passport /Passport ntfs nofail 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/machines btrfs subvol=@/var/lib/machines 0 0
/dev/disk/by-id/usb-WD_My_Book_25EE_37534A384D545957-0:0-part1 /data2 ext4 data=ordered 0 0
/dev/disk/by-id/ata-ST14000NE0008-2JK101_ZHZ5YWRM /lacie btrfs user 0 0
/dev/disk/by-id/scsi-350004cf20d1368af-part1 /seagate2TB ext4 data=ordered 0 2
#/dev/sdc1 /seagate2TB ext4 data=ordered 0 2
#UUID=db137200-5d3e-43fc-b5d8-72f1698d7890 /data2 ext4 defaults 0 2a
It boots in LEAP 15.2, so I have figured this out. Now I will change the other (extra) disks to UUID and retry the upgrade.
Fully-edited fstab:
# cat /etc/fstab
UUID=2cdf081b-9bd9-4b51-bb74-2a8a55c96cee swap swap defaults 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f / btrfs defaults 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /opt btrfs subvol=@/opt 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /tmp btrfs subvol=@/tmp 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /usr/local btrfs subvol=@/usr/local 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/crash btrfs subvol=@/var/crash 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/log btrfs subvol=@/var/log 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/opt btrfs subvol=@/var/opt 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/spool btrfs subvol=@/var/spool 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=6E64-4C27 /boot/efi vfat defaults 0 0
UUID=dc822895-1388-47dd-8ce1-3326c945fef1 /data1 btrfs defaults 0 0
UUID=413ecd4c-9244-4905-86e1-28f9885bd5c0 /home btrfs defaults 0 0
UUID=228bba44-1a1d-4132-98c2-3a22d6adf1ad /srv btrfs defaults 0 0
#LABEL=seagate /Seagate ntfs nofail 0 0
#LABEL=passport /Passport ntfs nofail 0 0
UUID=681d5015-b686-45c0-ade1-275d86a3de1f /var/lib/machines btrfs subvol=@/var/lib/machines 0 0
UUID=db137200-5d3e-43fc-b5d8-72f1698d7890 /data2 ext4 data=ordered 0 0
UUID=563ced3c-4fad-41fc-8b68-abaea835ade7 /lacie btrfs user 0 0
UUID=51848436-b17b-458f-a5a0-7e00c4a0fd09 /seagate2TB ext4 data=ordered 0 2
But how did I get into this situation?
Have you complained? And no, forum post does not count. If you want something to be fixed you need to open bug report.
I think there is nothing to complain about. Switch everything to UUID and you are done. Use copy and paste to avoid typing errors:
**erlangen:~ #** cat /etc/fstab
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc / btrfs defaults 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /var btrfs subvol=/@/var 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /usr/local btrfs subvol=/@/usr/local 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /srv btrfs subvol=/@/srv 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /root btrfs subvol=/@/root 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /opt btrfs subvol=/@/opt 0 0
UUID=704621ef-9b45-4e96-ba7f-1becd3924f08 /home ext4 defaults 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /boot/grub2/x86_64-efi btrfs subvol=/@/boot/grub2/x86_64-efi 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /boot/grub2/i386-pc btrfs subvol=/@/boot/grub2/i386-pc 0 0
UUID=6DEC-64F9 /boot/efi vfat defaults 0 0
UUID=5605f149-34a7-4301-9bf3-f1f177e35ed6 /home-SSD ext4 data=ordered 0 0
UUID=f5177cae-4082-44ed-9471-b99030f06866 /HDD ext4 noauto 0 0
UUID=6914-84F3 /GARMIN vfat user,noauto 0 0
UUID=0267-906F /GARMIN-KART vfat user,noauto 0 0
UUID=e7ad401f-4f60-42ff-a07e-f54372bc1dbc /.snapshots btrfs subvol=/@/.snapshots 0 0
UUID=2f0030b8-7257-4cba-be3e-b33154cda052 /WD25 ext4 noauto 0 0
**erlangen:~ #**
**erlangen:~ #** lsblk -o path,uuid,parttypename
PATH UUID PARTTYPENAME
/dev/sda
/dev/sda1 5605f149-34a7-4301-9bf3-f1f177e35ed6 Linux filesystem
/dev/sdb
/dev/sdb1 57bdbf64-b309-477c-b94c-8987e0c8032a Linux filesystem
/dev/sdb2 fad3604b-5a61-4653-8c14-518d850400ba Linux filesystem
/dev/sdb3 f5177cae-4082-44ed-9471-b99030f06866 Linux filesystem
/dev/sdb4 42f23f3c-9ff6-46f6-a9d9-6894062c37d7 Linux filesystem
/dev/sdc
/dev/sdc1 4A24-B10D EFI System
/dev/sdc2 690b51d7-7034-4585-b362-615f8056be45 Linux filesystem
/dev/sdc3 492c5d5e-5d9b-4a99-9d34-e1f9cee09fe9 Linux filesystem
/dev/sdc4 f4c5463f-f43d-420a-a0ea-4456cfbc54fa Linux filesystem
/dev/sdc5 Microsoft reserved
/dev/sdc6 204f7d0f-979a-41e1-a483-a597d0357e0b Linux filesystem
/dev/sdc7 bf6ba7c9-9068-4a9b-b210-84b6d105df5c Linux filesystem
/dev/sdc8 96df969e-8897-4a5c-8473-3ed007f97b29 Linux swap
/dev/sdc9 396fb288-823a-4c71-8fbf-730cbc7fce37 Linux filesystem
/dev/sdc10 9a3eec78-dd20-44c0-a38a-f705b3bbbc66 Linux filesystem
/dev/sdc11 1469-897A EFI System
/dev/sdc12 58EE6DD3EE6DAA48 Microsoft basic data
/dev/sdc13 96509D04509CEC6D Windows recovery environment
/dev/sr0
/dev/nvme0n1
/dev/nvme0n1p1 6DEC-64F9 EFI System
/dev/nvme0n1p2 6fe43319-8566-4a09-9d2d-fcf8c104671f Linux filesystem
/dev/nvme0n1p3 e7ad401f-4f60-42ff-a07e-f54372bc1dbc Linux filesystem
/dev/nvme0n1p4 704621ef-9b45-4e96-ba7f-1becd3924f08 Linux filesystem
**erlangen:~ #**
larryr
July 2, 2021, 9:05pm
12
Something on your computer executed genfstab without the -U option that changes the UUID to /dev/disk/by-id in /etc/fstab
I have seen rpm’s with genfstab renamed to xfstab and they changed the fstab = for the last 8 years you really need UUID’s in the fstab.
This is the first time I have seen this in openSUSE - RedHat/Centos lots of times, Ubuntu a few times - Adobe rpms seem to be the guilty party in the Ubuntu that I have seen.
http://manpages.ubuntu.com/manpages/cosmic/man1/genfstab.1.html