I use an ecryptfs folder that is mounted and decrypted by a USB flash drive that has two partitions - fat & ext4, both of which are mounted by UUID in fstab. The password file is on the ext4 partition. A udev trigger runs a script to mount the encrypted folder on insertion. On removal of the USB the encrypted drive is unmounted so the files are inaccessible.
After v131 upgrade I think the UUID mount lines disappeared from fstab - is this likely to be the case?
I recreated the lines and am back in business. (The first UUID is a SATA HD). There should probably be a few more parameters after the ext4 and vfat but I haven't got that far yet.
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults,noatime,discard 0 2
UUID=b8fd2a20-e8d4-4d7f-9473-280f4acc950b / ext4 defaults,noatime,discard 0 1
UUID=BA55-4439 /mnt/usb_1 vfat
UUID=18897ca7-4a2e-418d-a22d-6d06dec8dd43 /mnt/usb_2 ext4
tmpfs /tmp tmpfs defaults,noatime,nodev,nosuid,mode=1777 0 0
tmpfs /DietPi tmpfs defaults,size=10m,noatime,nodev,nosuid,mode=1777 0 0
/home/john/crypt /home/john/crypt ecryptfs defaults,noatime,nofail 0 0
Sounds like a similar problem to that reported on an XU4 earlier today?
Having issues with your DietPi installation or found a bug? Post it here.
2 posts • Page 1 of 1
Hi John,After v131 upgrade I think the UUID mount lines disappeared from fstab - is this likely to be the case?
Yes. DietPi now supports 5 USB drives in /etc/fstab and dietpi-drive_manager.
To do this, we had to clear any existing fstab entries that matched /mnt/usb_x or /dev/sdX1.
You'll need to add those entries back in manually. Or, use dietpi-drive_manager to add them in:
- Power off
- Unplug all drives
- Power on
- Run dietpi-drive_manager
- Now insert one drive, that you wish to mount to /mnt/usb_1
- Select it, then select UUID.
- Go back to main menu, then repeat for the next drive (/mnt/usb_2).