Looking around I have not seen this addressed for large file systems. I have a 1Tb drive that I mount using the following script:
Code:
#!/bin/bash
md1=$(blkid -U d81fc8e7-7081-4872-9667-8fd5da730df2)
cryptsetup luksOpen $md1 d1 && echo "d1 Unlocked"
mount /dev/mapper/d1 /home/bob/d1/
chown bob:bob /home/bob/d1/ -R && echo "Done Mounting d1"
My question is can the process be sped up by using a command other than chown to recursively change ownership of the mount point? I don't think I can make an addition to my fstab because the /dev/sd* varies between boots. Hence the blkid command. Anyone have any thoughts on this? I have skimmed through the mount man pages but have not found anything that works yet. I have also tried the uid option.