mhogomchungu / zuluCrypt

zuluCrypt is a front end to cryptsetup and tcplay and it allows easy management of encrypted block devices
https://mhogomchungu.github.io/zuluCrypt
Other
496 stars 61 forks source link

[improvement] Add encrypted partition mounting by it size or disk serial number #210

Open HypnoticST8 opened 10 months ago

HypnoticST8 commented 10 months ago

Due to the lack of UUID for a given VeraCrypt-encrypted partition and the lack of 100% repeatability of mapping a specific partition each time the system starts to a specific device (the specific partition that I want to automatically mount in most cases is mapped to /dev/sda1, but sometimes to /dev/sdb1 , /dev/sdc1 or other) it is not possible to reliably automount a specific partition. Some additional logic would need to be added to enable reliable automounting of a given partition. Two simple solutions come to my mind right now. The first is to add the ability to mount partitions by their size. This may not be the best method because another partition may also have the same size, but it is not that likely. It would be best to use the serial number of the disk. If the above is too time-consuming, you could at least add it to the favorites menu where the partitions are displayed - their size or serial number, which allows for quick identification of a given partition without the need to go to Favorites -> Megage Favorites -> add a volume -> disc icon

mhogomchungu commented 10 months ago

In the favorite window, you can type a path to your device and i think it should work.

You can get a path to your device by looking in "/dev/disk/by-id/" after you have attached your device.

Paths at "/dev/disk/by-*" are used to work around the issue you identified of changing locations of /dev/sdXY

I do not have an external drive at the moment to test if these paths at "/dev/disk/by-id/" work.