I have done some research and want to have my settings checked before doing them, since if I mess up, my system wont boot.
I have 3 disks that are LUKS encrypted and I want to have them unlocked and mounted when I boot my system.
Is what I have now correct?
In “/etc/crypttab” I want to add the following:
Data_01 UUID=… /home/sojiro/luks.key timeout=180
Data_02 UUID=… /home/sojiro/luks.key timeout=180
Data_03 UUID=… /home/sojiro/luks.key timeout=180
I am not sure if it safe to paste a UUID here, so I removed them, but the UUID that I have filled in, is the “crypto_LUKS” UUID before the drive is unlocked. The DATA_01 is the name I want to use for that disk.
In /etc/fstab I want to have it look like this:
/dev/mapper/luks-numbershere / ext4 defaults,noatime 0 1
/dev/mapper/Data_01 /mnt/Data_01 ext4 defaults,noatime 0 2
/dev/mapper/Data_02 /mnt/Data_02 ext4 defaults,noatime 0 3
/dev/mapper/Data_03 /mnt/Data_03 ext4 defaults,noatime 0 4
The first one is my main partition and then the three below it are my data disks. I want the disk mounted at “/mnt/Data_01”.
If I read Arch right I dont have to specify “sda1” as a disk name since I use the UUID, and later on I can use “/dev/mapper/Data_01” since I have assigned that “Data_01” as a name earlier in crypttab.
Does it look right?
And what does “noatime 0 1” mean? I assume the 1 at the and is the order therefore I have done 2/3/4 on the disks below, is that also correct?
Edit, seems I need to use “0 2” for the drives. Has something to do with file system check. https://help.ubuntu.com/community/Fstab