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

241 questions
2
votes
0 answers

Mounting main partition read-only and temporary folders as tmpfs

I have a small embedded board PC which uses flash card to boot and I'm running Ubuntu server 12.04. But since flash cards have limited lifetime I would like to mount it as read only and have only some folders in tmpfs for file operations. I edited…
rock-ass
  • 21
  • 2
2
votes
2 answers

fstab filesystem editing

UUID=f5be9b96-da41-49fd-a8e2-dbbf37f5cd7d / ext4 defaults,usrquota 1 1 UUID=31a1c8d1-18ee-4c97-a0b9-b92599247112 /boot ext4 defaults 1 2 UUID=1fc6e1e3-bb0e-46bd-9de8-b8a11ca69ab9 /home …
Nikki Wilson
  • 101
  • 1
  • 7
2
votes
1 answer

Is this the right way to add 3 additional hard disk to /etc/fstab?

I got 4 hard disk. I simply create a single partition in all of them. I format them all with ext 3. And then I rewrite fstab All right, I'll just add a few line to fstab # # /etc/fstab # Created by anaconda on Wed Dec 19 15:22:22 2012 # # Accessible…
user4234
  • 303
  • 3
  • 16
2
votes
1 answer

URGENT: help recovering lost data

I have made a directory: sudo mkdir /ssd, the directory was supposed to be mounted to a raid array called md3. This was done by adding /dev/md3 /ssd auto defaults 0 0 to fstab. Then after a while where I had used the directory, I realized that I…
Niels Kristian
  • 358
  • 2
  • 13
2
votes
1 answer

Find out the type of an automounted device

I'm working on a system (Ubuntu Precise) with a mount defined in /etc/fstab as follows: /dev/vdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2 Originally I just wanted to find out if it's NFS (due to potential MySQL…
Steve Bennett
  • 5,539
  • 12
  • 45
  • 57
2
votes
1 answer

osx fstab mounting windows share with wrong osx user

My fstab on the osx server is as follows: 192.168.9.99:/TST /Users/HMTS01/BACKUP cifs automated,username=TEST,password=TEST,uid=hmts01,gid=staff,file_mode=0700,dir_mode=0700 0 0 The windows share (TST on 192.168.9.99) is mounted correctly as the…
Zone12
  • 121
  • 2
  • 3
  • 7
2
votes
2 answers

Consolidate separate /var and swap drives back to / drive in CentOS

The genius that originally set up the web server at my company put the swap, /var, and / directories on different drive pairs. I need to some how consolidate all three into one drive for migration purposes. How do I even go about getting started on…
Luke
  • 103
  • 7
2
votes
1 answer

How can I change a partition mount to var and still boot up?

My first question here on server fault. In my haste, I set up a local server with Centos 6.2 and let the Centos installer handle the partitions. Big mistake, I know. Anyway, the only problem I have with it is that the majority of the hard drive…
Brendan
  • 145
  • 2
  • 10
2
votes
3 answers

Failure to automatically mount a NFS area consistently after a reboot

I have one server A that is configured to auto-mount an NFS path from server B, using the following entry in /etc/fstab: serverB:/data/media/serverA /data/media nfs defaults 0 0 During long power outages (and yes, I have a…
Cerin
  • 3,497
  • 17
  • 57
  • 72
2
votes
2 answers

Moving OpenVZ /vz partition to separate drive

I've got an OpenVZ box that's running out of hard drive space. It has a single drive that contains the system and vz partitions. I'd like to install a new drive and move the vz partition to it. This seems fairly straight-forward, but I wasn't able…
Ian Dunn
  • 194
  • 13
2
votes
3 answers

almost empty fstab, how can I add more to it?

My almost empty fstab: none /dev/pts devpts rw 0 0 I'm trying to use noatime for three directories on my server /home, /tmp, and /var df -l gives: Filesystem 1K-blocks Used Available Use% Mounted on /dev/simfs …
Kyle
  • 351
  • 1
  • 2
  • 8
2
votes
3 answers

How Do I Remount /home as A Separate Partition?

The purpose here is about adding the 'noatime' property in /etc/fstab. We're running CentOS5. On both servers A and B, we called a maintenance window with our users and stopped MySQL and Apache services. On Server A, my client properly installed…
ServerChecker
  • 1,498
  • 2
  • 14
  • 32
2
votes
1 answer

Write to windows share mounted in Ubuntu

I used to mount a windows share in Ubuntu server, with an entry in fstab: //data/SharedFolder /media/SharedFolder/ smbfs user,defaults,credentials=/root/.creds,uid=root,gid=root 0 0 /root/.creds is a text file with three lines, my username,…
aidan
  • 615
  • 4
  • 10
  • 23
2
votes
2 answers

nfs mount fails in Ubuntu 10, but not with -v

(1) mount -t nfs remotehost:/remotedir localmountpoint -o owner,rw (2) mount -v -t nfs remotehost:/remotedir localmountpoint -o owner,rw (1) Used to work with Ubuntu 9 and now fails with Ubuntu 10 (2.6.32-21-generic kernel) with the…
user14645
  • 1,530
  • 2
  • 12
  • 17
2
votes
2 answers

How to add Group in mounting drive in fstab

I am using this to mount drive at startup /dev/sda5 /media/virtual ntfs defaults,umask=700,uid=1 0 0 This is working fine but i need things 1)By this method all the folders inside the virtual folder have same permissions but i want 700 for virtual…
John