Table of Contents
If you want to send us your comments, please do so. Thanks
More on comments
fstab
When /etc/fstab is changed and saved run systemctl daemon-reload
Options
Option | Remark |
---|---|
auto | attempts to automatically detect the file system of the target file system |
/tmp in RAM
Change the value of size= to your needs
tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=512M 0 0
Manual
Normally, only the superuser can mount filesystems
However, when fstab contains the user option on a line, anybody can mount the corresponding system
Addition example for fstab
LABEL=TheLabel /mnt/somemountpoint vfat rw,noauto,relatime,users,owner,group,uid=1000,gid=1000,fmask=0022,dmask=0077,iocharset=utf8,shortname=mixed,showexec,flush,errors=remount-ro 0 0
Add a line to sudoers using visudo as root
user ALL=(root:ALL) NOPASSWD:/bin/mount -L TheMemoryDeviceLabel /mnt/themountpoint/
Only the user that mounted a filesystem can unmount it again
If any user should be able to unmount, then use users instead of user
The owner option is similar to the user option, with the restriction that the user must be the owner of the special file
The group option is similar, with the restriction that the user must be member of the group of the special file
Error messages
"A start job is running" error
When more than one installation of Linux is made in different partitions with one common swap partition the UUID of the swap partition can be set wrong in the
/etc/fstab
file of one or more of the installations. If this is the case the message “A start job is running for /dev-by-UUID/someUUID [a countdown counter for 1 min 3- seconds]” is displayed
This can be solved by changing the UUID of the swappartition. The right value can be found by running the command, as root
blkid | grep swap
and checking if the UUID found with blkid is the same as the one in /etc/fstab for the swap partition. If not, put the UUID found with blkid in /etc/fstab. The line should look like this
UUID=feabc53a-b37e-5819-b3fa-47504d368472 none swap sw 0 0
Save /etc/fstab and reboot. The issue should be solved now
Other solution
Put a # for the original line of the swap partition Add this line, replace x in sdx with the number of the swap partition
/dev/sdx none swap defaults 0 0
to /etc/fstab. Save /etc/fstab and reboot
Similar issues
When a partition is removed, remove its entry in /etc/fstab also.If not, fsck will report an error in the boot process and the user is asked to enter the root password to enter a maintenance shell or Control-D to continue
Usefull links
man fstab
For options see man mount since in fact mount comands are listed in fstab
fstab - Debian Wiki
fstab. Also:Writing to FAT32 as NormalUser
Fstab - Ubuntu Wiki
Howto fstab
Setuid on Wikipedia
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.