Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  21] [ 0]  / answers: 1 / hits: 23739  / 1 Year ago, fri, december 9, 2022, 10:56:38

I'm trying to setup an automatically mounted volume, and noticed that there is now an /etc/fstab.d/ on my server. I created a new file in the directory with the following contents:



# backupstore: large volume
/dev/mapper/bagend-backupstore /mnt/backupstore ext4 auto,relatime,users,sync 0 0


But when I run mount -a the volume is not mounted. Also, when I run mount /mnt/backupstore or /dev/mapper/bagend-backupstore I get told that the system couldn't find the entry in fstab (and to pre-empt: yes, the device and mount-point are correct - I can easily mount this with mount -t ext4 /dev/mapper/bagend-backupstore /mnt/backupstore)



When I delete the file from /etc/fstab.d/ and put the entry into the main /etc/fstab file, I have no problems mounting the volume.



So, can the mount command be made to check for entries in /etc/fstab.d/ and if yes, what do I do to make it happen?


More From » mount

 Answers
0

  • /bin/mount cannot read /etc/fstab.d yet, only the library (libmount) can.

  • This is a known "wishlist" bug in util-linux, the package which provides mount

  • The feature has been added in the latest util-linux 2.21 (the release notes say "Use filter arg of scandir* to pickup /etc/fstab.d/*.fstab files")

  • Since even Debian Unstable (Sid) is on version 2.20-x of util-linux, I doubt we'll see 2.21 in Ubuntu until 13.04

  • If you need it sooner, you can either compile 2.21 from the kernel.org source, but I'd recommend you wait until it at least makes its way into Debian (util-linux provides a number of other critical system utilities/libraries as well)


[#36572] Saturday, December 10, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rcraftemur

Total Points: 118
Total Questions: 119
Total Answers: 144

Location: Turks and Caicos Islands
Member since Sun, Mar 7, 2021
3 Years ago
;