← Back to team overview

ubuntu-phone team mailing list archive

Fstab to mount file-fs on SD

 

I have a couple of ext4 fs files on the SD card. I'd like to mount them
from selected locations in my home dir.

Two questions:

1. Which fstab should I put the mount records in? I have these, and I'm
not sure about the difference between them, or which are permanent or
temporary;

./etc/fstab
./lib/init/fstab
./usr/share/initramfs-tools-ubuntu-touch/fstab
./var/lib/lxc/android/rootfs/fstab

2. My SD-card gets a new label and thus new mount dir with every
formatting (eg /media/phablet/0BC7-D354) - is there a way to
dynamically determine this label for the record in fstab?