In a typical OS, this is done by modifying /etc/fstab. With Qubes OS AppVMs, /etc/fstab is not preserved between reboots.
Should I modify the TemplateVM's /etc/fstab?
Should I add "mount /dev/xvdi /mnt/removable" to the AppVM's /rw/config/rc.local?
Unfortunately, running the mount from rc.local doesn't seem to work (nothing gets mounted and I don't know why).
I'm using a persistent attach for an AppVM.
After adding "sudo mount /dev/xvdi /mnt/removable" to /rw/config/rc.local, I shut down the AppVM, and then start Terminal. After the AppVM starts up, I see that the mount didn't happen.
Any tips on diagnosing this? I didn't see the word "mount" in journalctl. Not sure where else to look or what to look for.
> Just for completeness, I'll point out that you can use bind-dirs to make
> any file persistent within a qube - have a look at
> www.qubes-os.org/doc/bind-dirs/
> I'm not sure how this would work with /etc/fstab - I cant check the
> service order at the moment - but it's something you might not be aware
> of. At worst you'd need an extra 'mount -a' call after bind-dirs.
This is an interesting idea. I didn't know you could persist custom things. I guess the worry here is if /etc/fstab is an autogenerated file.
Personally, I'd like to keep things simple and get the rc.local mount working, but I'll keep bind-dirs in mind for other things.
User error! I forgot to make /rw/config/rc.local executable...
The mount in rc.local works now.