Lab22.1 Loop devices - /etc/fstab entry
maybe anyone can explain the behaviour of loop devices or point me to some literature in this regard.
Basically, when in /etc/fstab I use UUID for a loop device, my machine does not boot and I am put into the emergency mode.
However, when instead I use the full path to the file, the machine boots with no errors.
I am using Xubuntu 18.
UUID=36ab310c-d1eb-4746-9456-9526a3a07552 /mnt/secret ext4 loop 1 2 [my machine won't boot and the journal shows:
mnt-secret.mount: Job mnt-secret.mount/start failed with result 'dependency'.
However, when I enter into /etc/fstab the below line, the machine boots up and the file is being mounted:
/home/aga/encrypted /mnt/secret ext4 loop 1 2
Output of df -Th
/dev/loop0 ext4 976M 4,4M 905M 1% /mnt/secret
For UUID I check sudo blkid
/dev/loop0: UUID="36ab310c-d1eb-4746-9456-9526a3a07552" TYPE="ext4"
losetup -a output
/dev/loop0: : (/home/aga/encrypted)
encrypted: Linux rev 1.0 ext4 filesystem data, UUID=36ab310c-d1eb-4746-9456-9526a3a07552 (needs journal recovery) (extents) (64bit) (large files) (huge files)
So I am not sure, why I cannot use UUID in this situation.