I have installed dualboot Ubuntu 23.04 with Fedora 38 on LVM on LUKS encrypted partition.
[root@fedora ~]# sgdisk --print /dev/nvme0n1
Disk /dev/nvme0n1: 1953525168 sectors, 931.5 GiB
Model: WD_BLACK SN770 1TB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 8926997B-19D9-4350-B802-09E6920809AF
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1574911 768.0 MiB 8301 UbuntuBoot
2 1574912 3147775 768.0 MiB 8300 FedoraBoot
3 3147776 4720639 768.0 MiB 8301 UnassignedBoot
4 4720640 4982783 128.0 MiB EF00 EFI System Partition
5 4982784 1953525134 929.1 GiB 8301 rootfs
Partition 1 is meant for /boot
for Ubuntu while Partition 2 is meant for /boot
for Fedora. Both of these share /boot/efi
at Partition 4. Partition 5 is encrypted with LUKS and has LVM inside it:
[root@fedora ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
Backup vgubuntu -wi-a----- 30.00g
Data vgubuntu -wi-ao---- 50.00g
Documents vgubuntu -wi-ao---- 100.00g
FedoraHome vgubuntu -wi-ao---- 50.00g
FedoraRoot vgubuntu -wi-ao---- 50.00g
FedoraSwap vgubuntu -wi-ao---- 32.00g
Media vgubuntu -wi-a----- 450.00g
UbuntuHome vgubuntu -wi-a----- 50.00g
UbuntuRoot vgubuntu -wi-a----- 50.00g
UbuntuSwap vgubuntu -wi-a----- 32.00g
It has 10 logical volumes. Root, Home, Swap exclusively for Ubuntu and for Fedora respectively. And additionally I want to mount logical volumes: Backup, Data, Documents, Media.
I appended in the /etc/fstab
and I did sudo systemctl daemon-reload
after editing it as follows:
/dev/mapper/vgubuntu-Backup /mnt/Backup ext4 defaults 0 2
/dev/mapper/vgubuntu-Data /mnt/Data ext4 defaults 0 2
/dev/mapper/vgubuntu-Documents /mnt/Documents ext4 defaults 0 2
/dev/mapper/vgubuntu-Media /mnt/Media ext4 defaults 0 2
I got following errors while booting
This failure hangs the boot and shows message that root is locked. And then I have to forecefully poweroff as I can’t type anything.
Surprising thing is that root, home and swap logical volumes mount without any issue!
Then I modified the fstab with UUID from blkid as I thought it might be an issue with delay in loading mapper.
/dev/disk/by-uuid/a7a07d75-5664-4182-b403-07db1222d247 /mnt/Backup ext4 defaults 0 2
/dev/disk/by-uuid/09c74676-fc66-4765-b33c-c91febe40b81 /mnt/Data ext4 defaults 0 2
/dev/disk/by-uuid/e0a18f38-8a0d-46ed-bd93-eee7d69b477a /mnt/Documents ext4 defaults 0 2
/dev/disk/by-uuid/45e16cd6-0bcd-4743-b4ae-6aea102748bd /mnt/Media ext4 defaults 0 2
But again I am facing same issue while booting!
If I comment these fstab entries and boot it and again uncomment it and do mount -a
, I get no error and all logical volumes are successfully mounted.
As per given in the above pictures I also checked the following (for each of the logical volume) but there is no error
$ systemctl status -l systemd-fsck@dev-mapper-vgubuntu\\x2dMedia.service
○ systemd-fsck@dev-mapper-vgubuntu\x2dMedia.service - File System Check on /dev/mapper/vgubuntu-Media
Loaded: loaded (/usr/lib/systemd/system/systemd-fsck@.service; static)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead)
Docs: man:systemd-fsck@.service(8)