Menu

File System Mounting Options

2018-05-22
2018-06-09
  • Matthew Lee

    Matthew Lee - 2018-05-22

    Does anyone know if providing the file system mounting options via the command line using --fs-options is working? I have been trying to mount an exfat drive with the addition of '--fs-options=umask=000' on Linux Mint and on Pi 3.

    I can successfully mount a non-encrypted drive normally using 'mount -o umask=000 /dev/sda1 /media/someFolder', this allows the exFat drive to be seen by all users which is my goal.

    However, I can't reproduce the same results using an encrypted drive with veracrypt. Using:
    veracrypt --fs-options=umask=000 --mount /dev/sda1 /media/someFolder
    (I have tried different varriations, with and without sudo, expliclty stating the file system format, and also trying uid & gid parameters too)

    Many thanks for any help and sorry if this is the wrong place to post.

     
  • Adrian Kentleton

    There's an inconsistency in the Veracrypt Linux command line documentation; sometimes it says use eg --fs-options=<str>, sometimes --fs-options <str>. Have you tried the latter eg --fs-options umask=000?

     
  • Matthew Lee

    Matthew Lee - 2018-05-22

    I have, this also does not work :(

     
  • Adrian Kentleton

    So, your problem is that the umask command does not work, rather than the volume fails to mount?

     
  • Matthew Lee

    Matthew Lee - 2018-05-22

    Exactly, it mounts but the parameter 'umask=000' fails to have any conquence, likewise, with other arguements too such as 'uid=0,gid=0', when not using veracrypt and mounting normally 'mount', these commands work hence I think there is a bug in veracrypt or I'm doing something wrong
    (sorry for the delayed replies I don't know how to push responses)

     
  • Adrian Kentleton

    Apologies, Matthew, for misunderstanding your issue, I thought it might be a simple syntax problem. (It's odd: Windows syntax is quite strict, in Linux it seems much more relaxed!)

    Can't offer any further insights on why umask doesn't work with Veracrypt; but presumably, you can acheive your objective by subsequently using the chmod command?

     
  • Matthew Lee

    Matthew Lee - 2018-05-24

    Unfortunately, exFat does not allow for setting of permissions or changing of ownership, since it does not support file permissions. Therefore, to allow all users on the server to access an external exFat drive it would need to be mounted using 'umask=000'. I have been trying to set my computer up with the source code so I could debug it, to find out if it is indeed a problem with veracrypt. However, I'm currently having trouble getting hold of 2010 C++ & Visual C++ 1.52.

     
    • Gary Marks

      Gary Marks - 2018-05-24

      Matthew -- subject to your forum preferences, you may have a PM awaiting you.

       
      • Matthew Lee

        Matthew Lee - 2018-05-24

        Hi Gary, thank you so much, I got your email and it was extremely helpful!

         
  • Dimensional

    Dimensional - 2018-05-30

    Can you share the solution with the rest of us? I'm also having trouble on a newly installed Ubuntu 18.04 Server. Every time I mount the encrypted partition, it changes the ownership to root:root, no matter what I do. And I verified everything listed above, so I can't figure out what's the problem besides it's inability to handle fs-option paramaters that involve an equal character (=) in the argument.

     
    • Matthew Lee

      Matthew Lee - 2018-06-09

      Sorry for the slow reply, I managed to find a temporary fix try this:

      sudo veracrypt --filesystem=none --mount /dev/sdb1 /media/something/
      

      (Now you can apply other filesystem mount options and they will work as they are being passed to mount in the command below)
      You can now see it is semi-mounted to veracrypt1, now do this:

      sudo mount -o umask=000 /dev/mapper/veracrypt1 /media/something/
      

      To unmount just do

      sudo veracrypt -d
      

      Been crammed with work at the moment so I've been unable to debug the program as I've been wanting to, hope this helps tho.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.