Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fstab]

/etc/fstab is the configuration file which contains the information about all available partitions and indicates how and where they are mounted.

7
votes
2answers
665 views

What is /etc/mtab in Linux?

What is /etc/mtab in Linux? Why is it needed and advantages of having it?
1
vote
1answer
8 views

mounting loop not working with UUID

I have created a loop device and added it to /etc/fstab I got its UUID from the output of the blkid command (it does print a UUID for the particular device after running mkfs.ext4 /path/to/loop) ...
0
votes
1answer
39 views

Issue with correct syntax of /etc/fstab

The next command works: sudo mount -t nfs4 10.10.1.10:/Data /mnt/data How do I reformat this to /etc/fstab to add in? I can't get it mounting on boot.
0
votes
0answers
32 views

Bash - Remove line from /etc/fstab - advice [duplicate]

First post - go easy on me:) Was rewriting bash script to delete lines in /etc/fstab. I can get it to work with the "echo". Question: Why cant it do with with awk? echo "Code:" if [ "$quit" ==...
-2
votes
0answers
43 views

How to solve “timed out and dependency failure” while booting my Kali linux Rolling?

I have been using kali linux for 2 years .Today when I boot as usual Kali Linux shows "timed out and dependency failed" and stops booting above pic shows fstab file This above pic i analyze with ...
0
votes
1answer
46 views

What is the correct permission in /etc/fstab to mount NTFS?

I have Windows and Arch Linux in dual with UEFI. I want to mount my another NTFS partition in Arch. I mounted the partition with mount /dev/sda5 /mnt/Apps command. Then added the output of genfstab -...
0
votes
0answers
14 views

How to mount network with connected user, with credential file in connected user's home?

So right now, my /etc/fstab folder looks like that. //192.168.x.y/Share_1 /media/shared/share_1 cifs _netdev,user,credentials=/home/pierre-antoine/.password_windows,uid=1000,gid=1000 0 ...
1
vote
1answer
32 views

Add (already created) partition for /home after OS installation

I made a separate partition for /home, but during installation process I forgot to mount it and hence no entry was made in fstab. I had everything in partition under the root ( well not the swap and ...
1
vote
1answer
30 views

short way to perform efsck when we have huge number of disks

we need to do e2fsck on all our disks ( redhat linux - 7.2 ). Since on each machines we have 22 disks ( ext4 file-system ) it will take time to do it on each disk as all know when doing e2fsck need ...
0
votes
1answer
49 views

How to set fstab to be able to umount my external HDDs under normal user account?

System: Linux Mint 19.1 Cinnamon. Disks in this question are considered external HDDs either ext4 or ntfs formatted. I am interested in how do I manage to set my fstab or whatever else to be able to ...
0
votes
0answers
138 views

systemd - mount mount process exited, code=exited status=32

First Boot always fails. Is it possible to make it work ? Working on modified OS image. Where it uses kernel of version 3.10 (Centos 7.6) but grub is still old version 0.97. When deployment of OS ...
0
votes
2answers
65 views

Set hidepid=1 persistently at boot

I'd like my system's /proc directory to be mounted with the hidepid=1 option. I know that once the system is already up, I can do that with sudo mount /proc -o remount,hidepid=1. How can I make /proc ...
0
votes
1answer
20 views

Does the Modifications Made In GNU Parted Affect the File System Table File?

My Nexus 7 (2013 WiFi) tablet PC has a corrupted partition table. I would now like to troubleshoot into Linux. After loading GNU Parted on the tablet and making a new GPT table with 30 partitions ...
0
votes
2answers
81 views

How can I get my drive mounting via fstab again?

I had a nice Ubuntu 18.04 system up and running with many different internal SATA drives and rock solid for several months, and all were happy in the land. Then one day, there was a simple power ...
0
votes
2answers
40 views

Why do we need both mkswap and /etc/fstab to set up swap?

Given $ cat /etc/fstab ... /dev/mapper/lubuntu--vg-swap none swap sw 0 0 why do we still need: $ sudo swapoff /dev/mapper/lubuntu--vg-swap $ sudo mkswap /dev/...
1
vote
0answers
23 views

fstab bound folders show as disks in GUI

I'm trying to mount different folders on sda7 in the folders in the /home folder. like documents, pictures, and music. I always did that like this: /media/betty/Tuinhuisje/Betty/Documents /home/...
0
votes
1answer
61 views

Mounting using alternate fstab file

I need to use an alternative fstab file for mounting a folder in another folder, like the command mount --bind /folder1 /folder2 I tried the command mount --fstab /pathToFile.fstab as stated in ...
0
votes
1answer
70 views

fstab keeps asking for password, while trying to mount shared cifs

I have the following entry in my fstab file: //10.30.1.235/Restrito/BackupVms /backups/servidor01 cifs vers=2.0,credentials=/spassword,iocharset=utf8,gid=0,uid=0,file_mode=0777,dir_mode=$ 0 0 ...
2
votes
1answer
59 views

Systemd generated mount file is not deleted when the mount point entry in fstab is deleted or modified

I recently started using systemd in linux. On systemd mount, I have some observations: mount unit file is generated with mount point name when there is an entry in /etc/fstab. I also observed the ...
1
vote
1answer
35 views

Unmounting /usr from an external drive [closed]

I mounted /usr from the nvidia TX1 dev board to an external SSD connected to the board. I am wondering how I can restore it original state without re-flashing? If I power down,and disconnect the SSD,...
2
votes
0answers
100 views

Why does BTRFS filesystem mount automatically?

So I've made a btrfs filesystem that spans across one logical drive (md1) and a USB drive. its all raid 0. so that: sata\ md1--\ sata/ \ btrfs called "Storage" usb-------...
0
votes
1answer
264 views

Boot in emergency mode, incomplete /etc/fstab

I am trying to set up a multi-boot on my machine with Ubuntu (my original OS, on /dev/sda2), Kali Linux and Debian. However, I got stuck halfway through my installation of Debian, and since Ubuntu ...
1
vote
1answer
333 views

Slow boot time after cloning disk and resizing partitions

I recently replaced an SSD with a larger SSD. I used Clonezilla to clone the old disk to the new one. After that I used GParted Live to resize the existing partition, pushing the swap partition to the ...
1
vote
1answer
65 views

cargo execution - permission denied [PREVIOUSLY]rust installation - permission denied

I have installed rust by curl https://sh.rustup.rs -sSf | sh and followed instructions thereof. Installation was successful and the PATH was added to the .bash_profile as follows: export PATH=$HOME/....
0
votes
1answer
104 views

Fedora tries to mount deleted swap partition which is not in fstab or systemd

When creating a new swap partition in Fedora 29 to enlarge it I removed the old one using GParted and removed their respective entries in /etc/fstab. I created new entries for the new swap partitions ...
0
votes
1answer
115 views

FreeBSD can't mount home partition

I've been having an issue with my first installation of FreeBSD. As I always do in GNU/Linux I created separate home and root partitions. The issue I've been having is that my home partition doesn't ...
0
votes
0answers
464 views

Ext4 Error and disk remounted read-only

Sometimes I have an error ext4 and my disk becomes read-only. I can fix it with a reboot and fcsk /dev/sda2 but it keeps coming back... Here are some dmesg : [ 3160.692730] perf: interrupt took too ...
0
votes
1answer
41 views

nosuid doesn't prevent chmod u+s

I follow a tutorial to secure my /etc/fstab file. This is a certain part about /var and /tmp UUID=XXXX-XXXX-XXXX /var ext4 defaults,nodev,nosuid,noexec 1 2 UUID=ZZZZ-ZZZZ-ZZZZ /tmp ext4 defaults,...
1
vote
1answer
29 views

Reboot with faulty drive, devices names change, server does not boot

I have had this problem on 2 servers and I want to know how should I handle the problem. My server has an SSD (/dev/sda) and two SATA drives (/dev/sdb and /dev/sdc). The second drive (/dev/sdb) has ...
1
vote
1answer
47 views

Why does a copy operation to a directory that serves as a mountpoint not copy the data to the mounted drive?

Why does a copy operation to a directory that serves as a mountpoint not copy the data to the mounted drive? I bought a 2 terabyte drive and mounted it in a subdirectory within my home directory. ...
2
votes
0answers
371 views

Idle timeout for NFS share mounted with systemd automount

What I want to do? I want to configure my /etc/fstab so that my NFS share was: mounted automatically when accessed (auto-mount on-demand), unmounted automatically after specified idle timeout (x-...
2
votes
1answer
157 views

Cannot chown, chmod on mounted ntfs partition

I need to mount a ntfs partition and be able to use it with unix file system permissions. The problem is that, when I mount the partition using the following fstab entry, I cannot run chown and chmod ...
3
votes
1answer
321 views

Why is /tmp mounted with permissions 0755 when fstab has 1777?

For /tmp in /etc/fstab, I have mode=1777, but after a reboot, the permissions on /tmp are 0755. Another directory /var/tmp is configured in exactly the same way but does not have this problem (see ...
0
votes
1answer
89 views

why does a partition marked as noauto still mount on boot?

I just installed Ubuntu 18.04 and I didn't use the default partition structure (ugh.. whole disk in one partition?). My partition table looks like this: /dev/sda1 - /boot/efi /dev/sda2 - swap /dev/...
0
votes
0answers
72 views

How to make exfat appear as a disk on Computer (RedHat 6)

I have a redhat 6 on 1TB HDD and another 1TB HDD with exfat format, anyway on Computer I can find the drive where redhat installed but not the exfat drive. I do add a line to /etc/fstab for auto ...
0
votes
1answer
38 views

Mounting fstab using mount -a not working like regular mount

So I'm writing an custom init script and I want to mount / as rw. In /etc/init.d/rcS when I use mount -t ext4 -o remount /dev/sda / it does remount as rw but when I do mount -a (or I even tried mount -...
1
vote
0answers
130 views

Can you manage the entire fstab file with a GUI?

I hate constantly having to wrestle with a command line editor and looking things up when managing my fstab file. Is there a GUI that will let me do it by clicking on things? Why gnome-disk-utility ...
1
vote
1answer
108 views

/etc/fstab fails to bind mount on boot, but running mount -a works correctly

I'm running a modified WD MyCloud (Gen 1) NAS with Debian 8 (Jessie) installed on it. Due to the nuances of the device, I can't resize the root partition, and am struggling with space on it. To ...
1
vote
2answers
334 views

Using grub to properly boot from an external backup drive

edit: I think I solved my own problem -- see bottom of question for details I have a copy of all the files under / on an external usb-connected harddrive. To test whether this backup works, i'm ...
0
votes
1answer
31 views

Can't enter in Ubuntu because fstab error

When I shut-down or restart the machine (VM) it won't log in to the system. I get the following error and then, continuous black-screen. This is my fstab, I don't know why uid=1000 is wrong. User ...
4
votes
4answers
616 views

sed: replacing entries in the /etc/fstab

I'm in the process of hardening some of our systems. As part of that hardening process, I need to update a few entries in the /etc/fstab to limit the capabilities of some of the various partitions. ...
0
votes
1answer
21 views

Inspect a Ramdrive?

I have mounted a ramdrive via /etc/fstab. And I would like to inspect the properties of the drive such as the memory policy (e.g. bind, prefer, or?) to make sure all properties are expected. How can ...
0
votes
1answer
801 views

Set SMB2 protocol in Samba 3.6.6

I've decided to switch to the higher version of SMB in Samba (at least 2) - mostly because of the security reasons. I've tried to add to the smb.conf in the [global] section: client min protocol = ...
0
votes
1answer
87 views

No permission to chown /mnt/hdd

I don't have permission to chown the mounted directory /mnt/hdd. I am currently logged in as root. The ls -l output is: rwxrwxrwx 1 root root 131072 Jan 1 1970 hdd I am mounting it via fstab ...
1
vote
1answer
19 views

Can one combine logical volumes from different groups without copying the contents over?

I use Arch Linux kernel 4.18.12-arch1-1-ARCH (november 2018). I use a SATA caddy (for a Thinkpad T400) which holds a hard drive from an old laptop. I'd like to decide on combining the contents and ...
4
votes
1answer
895 views

How to force OS reload of fstab?

'mount -a' works fine as a one-time action. But auto-mount of removable media reverts to settings that were in fstab at the last reboot. How to make the OS actually reload fstab so auto-mounts use ...
0
votes
1answer
74 views

Does a filesystem check initiated from /etc/fstab auto-repair?

We have a Raspberry Pi located at a location where it may experience frequent power loss. I'm trying to make it scan, and repair (if necessary) a filesystem every time it boots up, in case the power ...
1
vote
1answer
89 views

Can autofs be used for a computation cluster? [closed]

I am planning to build a small computation cluster at home. I need share /usr/local and /opt directory on server machine to several computation nodes. There are compiled computation programs and ...
0
votes
0answers
204 views

inotify_add_watch(/etc/fstab) failed: (Permission denied)

With the latest update of KDE, I am seeing these errors: Sep 26 23:07:30 desktop sddm-greeter[709]: inotify_add_watch(/etc/fstab) failed: (Permission denied) Sep 26 23:08:18 desktop kdeinit5[819]: ...
0
votes
1answer
93 views

Mounting unix to synology nas and special characters

I'm trying to mount my Synology NAS to Ubuntu with fstab, and I have some folders on the NAS containing '!' in the folder name, as well as spaces. The spaces I found out that I can escape with \040, ...