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

How to move a subvolume to a new drive in btrfs?

I am trying to move my /srv, /var/lib/mysql and /home directory to another drive ( a bigger one with RAID1). I did some research on how to go about doing this and I kind of did most of it. However, after all the content is copied over, I am unable…
FlowRaja
  • 101
  • 2
0
votes
1 answer

Can all docker volumes be into a partition and would it be good for backup -cloning- purposes? (ex:/var/lib/docker/volumes/ in /dev/sdb1 @fstab)

I'm thinking of migrating all our documents and spreadsheets infrastrucure from and old standalone samba server to one of those popular self-hosted solutions and I'm trying to do the best long-lasting error prone easy (re)install. I've made it easy…
0
votes
1 answer

Cloud Linux 7 mount /tmp with exec in fstab

I have the following fstab UUID=3d301281-7be7-4a53-8f19-42f8c7d061d2 / xfs defaults,uquota 0 0 #/usr/swpDSK swap swap defaults 0 0 #/usr/tmpDSK /tmp ext3 defaults,noauto 0 0 /usr/tmpDSK /tmp …
Chris Muench
  • 487
  • 3
  • 10
  • 31
0
votes
1 answer

log in fails when mount point changes

I am mounting a windows 10 share on a Centos 7 machine via /etc/fstab like so: //10.11.11.7/shared_folder /path/to/mount_point cifs user,rw,suid,uid=0,gid=1111,username=win_user,password=win_user,file_mode=0755,dir_mode=0777,vers=3.0 0 0 When…
Frank Rueter
  • 101
  • 2
0
votes
1 answer

gcsfuse automount on a non root user

Currently I have a VM that runs CentOS 7 and would like to auto mount a bucket using a non root user. I have installed NextCloud and would like to point local data folder to Google Cloud Storage. Tried various examples but none of them seemed to…
el.severo
  • 87
  • 1
  • 10
0
votes
0 answers

GCSFuse keeps generating dummy files on mounted bucket that can't be deleted due to retention policy

I'm currently setting up a GCP storage bucket on my instance which will be used for backups. I have currently configured fstab to mount the bucket on startup using the following config. cpanel1-vm-backups /mount/backups gcsfuse rw,user The problem…
0
votes
1 answer

Unable to mount via /etc/fstab

all: Bringing up a new server, I have the following situation. I can mount the device at /dev/sda1 manually via this command: mount /dev/sda1 /owncloud But when I use the recommended approach (UUID) in /etc/fstab, I receive an error that the device…
Dennis
  • 167
  • 1
  • 12
0
votes
1 answer

Why /tmp is bound in /tmp ? How can I remove this bound

In Scientific Linux 6, a clone of RHEL6, I have the following mtab file: /dev/sda2 / ext4 rw 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 devpts /dev/pts devpts rw,gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs…
famedoro
  • 145
  • 7
0
votes
1 answer

How to map a UUID directly to both a device name (e.g. /dev/sda1) AND a mount point (e.g. /mnt/home2)?

I know how to map /etc/fstab to the mount point with the device name: /dev/sdb1 /mnt/home2 ext4 usrjquota=quota.user,jqfmt=vfsv0 0 0 This practice is however highly flawed as it is randomized and can change on reboots,…
user555159
0
votes
1 answer

How to move /var back to Root from a different filesystem

I need to move my /var (dev/sdc1) back to the / (dev/sda2) from a different file system. I've resized the / partition and want to move /var back to / partition and resize /dev/sdc1 filesystem to mount another directory /data002 Currently, df -h and…
Sam89
  • 11
  • 4
0
votes
1 answer

FSTAB CIFS kerberos

How can I force fstab to mount CIFS with machine account kerberos? From logs it shows that cifs.upcall goes to: cifs.upcall: get_cachename_from_process_env: cachename = FILE:/tmp/krb5cc and not on /etc/krb5.keytab which has the computer account…
Verboy
  • 1
  • 1
-1
votes
1 answer

/etc/fstab doesn't show temp but temp is mounted. CentOS 7 on linode

In CentOS 7, I have been told to secure the /tmp folder with with noexec,nosuid in /etc/fstab When I view the /etc/fstab, I can only see few lines without /tmp mounting option. I have created a tmp disk (1gb) and assign this disk via linode manager…
ToiletGuy
  • 111
  • 6
-1
votes
1 answer

Bash add entry to fstab by script

I'm newbies in bash scripting and i try to write script that add entry for cifs windows share to fstab. I writed a litle script but i'm not shure if it will work fine. I haven't linux to test it Can you help me to improve it or fix it? it will run…
user3178250
  • 1
  • 2
  • 5
-1
votes
1 answer

how to identify which physical drive(s) correspond to an entry in /etc/fstab

Using Centos. Situation: I have multiple drives off of two RAID controllers. I also have multiple entries in the fstab, such as /dev/sdb, /dev/sdc, etc. What I need to know is how I can identify which drives or set of drives (in the case of RAID)…
lobi
  • 1,083
  • 2
  • 15
  • 30
-1
votes
1 answer

What if mounting point conflicts with local directory?

This might help me hunt down some system configuration bug. Suppose I make a local directory (e.g., "/foo") in one disk partition, and copy some files to it. But later on I forget about it, and configure the same directory as mounting point for…
user180574
  • 225
  • 1
  • 3
  • 12
1 2 3
16
17