Questions tagged [fstab]

The configuration file /etc/fstab contains the necessary information to automate the process of mounting partitions.

The configuration file /etc/fstab contains the necessary information to automate the process of mounting partitions. In a nutshell, mounting is the process where a raw (physical) partition is prepared for access and assigned a location on the file system tree (or mount point).

* In general fstab is used for internal devices, CD/DVD devices, and network shares (samba/nfs/sshfs). Removable devices such as flash drives *can* be added to fstab, but are typically mounted by gnome-volume-manager and are beyond the scope of this document.
* Options for mount and fstab are similar.
* Partitions listed in fstab can be configured to automatically mount during the boot process.
* If a device/partition is not listed in fstab ONLY ROOT may mount the device/partition.
* Users may mount a device/partition if the device is in fstab with the proper option

SOURCE: https://help.ubuntu.com/community/Fstab

248 questions
0
votes
1 answer

Mounting device in fstab using labels

I'm trying to mount a device using a label in my fstab but it never actually mounts on boot. # LABEL=/ / ext4 defaults,noatime 1 1 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts …
VinnyD
  • 157
  • 6
0
votes
3 answers

How to disable barriers?

It seems impossible to disable barriers. I have tried loading the kernel with "mount -o barrier=off", "mount -o barrier=0", "barrier=off" and "barrier=0". The kernel is Atomic Secure Linux 2.6.32 with CentOS 6.2 (now 6.3). Anywhere from 20 min to 4…
Gaia
  • 1,855
  • 5
  • 34
  • 60
0
votes
1 answer

tmpfs changes size on restart

I have a tmpfs mount defined in my /etc/fstab with a size of 1024m, but when I restart the server it sizes itself to 5.9G. If I run mount -o remount /dev/shm, the size will correct itself to 1G. But it'll revert the next time the server is…
ben
  • 189
  • 1
  • 1
  • 8
0
votes
1 answer

Read-only filesystem after adding userquota,groupquota to fstab

When I add option userquota,groupquota to the main (/) partition of my Debian 6 DirectAdmin server, it mounts that partition in read-only mode. Wat I did: nano /etc/fstab add userquota,groupquota after errors=continue in the 'options' column to…
George Boot
  • 153
  • 1
  • 1
  • 5
0
votes
1 answer

XEN vm disk quota / fstab commented out

In order to enable user quota on a debian system I must edit the /etc/fstab (http://tldp.org/HOWTO/Quota-3.html). But in my case the whole /etc/fstab on the vm is commented out: # /etc/fstab: static file system information. # #
0
votes
1 answer

Problems Mounting NFS Shared Drive Using Fstab (Ubuntu - Lucid Linux)

Currently I have clients hooked up to a server through NFS such that user home folders mount to the clients (if you want more info on that, let me know). I am trying to set up a shared drive, in which every file and folder can be edited by any user.…
Alex Brooks
  • 103
  • 1
  • 4
0
votes
1 answer

How and when should I mount a remote filesystem using SSHFS?

I managed to get SSHFS working smoothly. I've added the following line to my /etc/fstab: sshfs#xxx@remote_host:/path_to/remote/content /path_to/local/content fuse \ comment=sshfs,noauto,user,exec,allow_other,reconnect,kernel_cache, \ …
Jan Deinhard
  • 2,383
  • 5
  • 26
  • 33
0
votes
1 answer

Can't boot my server after fstab optimizations

After optimizng the fstab values for my main server HDD, the server is unable to boot and i can't debug it because i'm controlling it remotly, this what i've entered /dev/sda1 / ext3 …
0
votes
1 answer

Windows to linux fileshare is sometimes using old (cached) version of file

I have a fileshare on Windows 7 that I'm accessing from a linux (ubuntu lucid) virtual machine running in VirtualBox. When I change a file in windows, then don't access it for a while (an hour or two or more) in the linux filesystem, it either uses…
Redzarf
  • 131
  • 3
0
votes
1 answer

Can volumes be guaranteed to mount in the order listed in fstab?

Can volumes be guaranteed to mount in a particular order, or is there a way to set up something along the line of dependencies, where one filesystem must be mounted before another may be mounted? I need an undefined amount of extra storage space on…
andyortlieb
  • 1,092
  • 1
  • 12
  • 25
0
votes
1 answer

Set custom mount point and mount options for USB stick

I have an USB stick which contains private stuff like the SSH key. I want to mount this stick to my own home directory with 0700 permissions. Currently I do this with this line in /etc/fstab: LABEL=KAYSTICK /home/k/.kaystick auto…
kayahr
  • 313
  • 4
  • 14
0
votes
2 answers

Can not login into server due to NFS mount failed

I have two servers: Server A: NFS Server Server B: It mounts a directory via NFS from Instance A The problem is that Server A IP is configured in the Server B fstab to mount the directory while booting. When the Server A is stopped for some…
arielcamus
  • 101
  • 1
0
votes
1 answer

How to mount a drive with read only permission

I am using this is fstab to mount the partition at backup. /dev/sda5 /media/virtual ntfs defaults 0 0 When i reboot the permissions are automatically set to 777. I want that only one user i.e userA can read and write , all others should not see the…
John
0
votes
0 answers

When mounting external disk in fstab via fuse.sshfs it requires password although identityfile is set

Using Ubuntu 22.04. My fstab entry: some_user@some_storagebox.com:~/somedir /mnt/volume fuse.sshfs defaults,allow_other,reconnect,_netdev,users,ServerAliveInterval=15,identityfile=/root/.ssh/id_rsa,uid=101,gid=101,ServerAliveCountMax=3 0 0 Check…
fueggit
  • 113
  • 4
0
votes
0 answers

CentOs fstab mounted cifs folder is empty

I have a folder on my nas mounted in my fstab: //192.168.1.4/datarr /mnt/datarr cifs username=plex,pass=mypw,uid=1000,gid=999,nobrl 0 0 This was working fine before. Verified in terminal and also because I run plex on the vm and it was working…