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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

mount.cifs permission denied

I failed to mount a network drive and got mount.cifs permission denied $ nano ~/.smbcredentials username=xxx password=CwF $ sudo nano /etc/fstab //192.168.1.4/xxx /home/pi/mycloud cifs credentials=/...
3 votes
1 answer
2k views

Use fstab to mount luks encrypted drive to subfolder within home

Fresh install of Lubuntu 20.04 on system with Windows 10 and Lubuntu installed on 256GB NVME drive to dual boot. Boot drive is /dev/nvme0n1p2 Home folder is therefore /dev/nvme0n1p2/home/username I ...
3 votes
1 answer
3k views

Debian booting to black screen

I just finished upgrading to Jessie from Wheezy, and after a reboot, my system ran grub, goes through some checks and stuff after loading the kernel. It then says: Welcome Debian 8 servername Tty1 ...
1 vote
2 answers
190 views

SSD initially mounts correctly, but disappears from lsblk after a few days

I am a Linux beginner, and am having a problem with a drive which disappears from lsblk periodically, and am stuck with how to proceed. The drive is an 240GB external USB SSD. Mounting the Drive Works ...
0 votes
1 answer
34 views

swapping /boot partiton

About 6 months ago I installed a newly acquired laptop with kubuntu . I opted for a separate /boot (and accepted the default) now, during the upgrade to the next kubuntu version it runs out of space ...
0 votes
2 answers
2k views

How can I get rid of emergency mode after change in fstab file?

I am using linux mint 18.3. When I connected my external hard drive to my computer, I got a "Failed to connect location" error. After doing some research, I found out that I needed to mount ...
1 vote
1 answer
105 views

Why does "x-systemd.growfs" in fstab not work for the rootfs?

I'm running Linux with systemd 249. The /etc/fstab entries are: # cat /etc/fstab /dev/root / auto defaults,x-systemd.growfs 1 1 proc /proc ...
5 votes
4 answers
21k views

Swapfile Swapon invalid argument

I had swap from a swapfile working for quite some time, but for some reason it stopped working. sudo fallocate -l 4G /home/.swap/swapfile sudo chmod 600 /home/.swap/swapfile sudo mkswap /home/.swap/...
1 vote
2 answers
5k views

Not mounting after restart?

I am mounting a drive via SSH, and then editing the fstab to reflect the changes, however after I reboot, the drive doesnt mount? I dont understand what I'm doing wrong? This is my fstab and its /...
4 votes
2 answers
7k views

Mount cifs with group permissions

I want to mount windows network share with different permissions based on group owners should have read/write permissions, others, only read permissions I am adding the following line in /etc/fstab ...
2 votes
4 answers
296 views

linux + delete by bash script the unused/incorrect UUID number/s from fstab file

our goal is to create bash script that delete the unused / unnecessary UUID number/s from /etc/fstab file , brief background - in our labs , we have more then 500 RHEL servers , and we want to fix the ...
2 votes
3 answers
17k views

How to fix "Bad magic number in super-block"

I try to move all data from one SSD to another SSD. The old SSD is 500 GB, and the new SSD is 1000 GB. Firstly I've created a backup: dd if=/dev/nvme0n1 | gzip -c /media/ubuntu/local/backup1.img.gz ...
1 vote
2 answers
98 views

Permissions and groups in fstab ignored

I need to read and write to an usb ntfs pendrive through www-data group (that has uid 33) so I have added UUID=34A0456D004536A0 /home/mypath ntfs-3g rw,defaults,uid=1000,gid=33,dmode=770,fmode=660,...
0 votes
1 answer
3k views

Can't get cifs to mount network drive during boot using fstab

I'm trying to get a network share to mount on startup using cifs. I can get the share to mount after linux boots, but for some reason I can't get it to work when editing the /etc/fstab file. Here's ...
1 vote
4 answers
2k views

How to edit fstab to mount bind a directory that have spaces in the PATH at start in wsl2

I am currently using wsl2 on windows and I use MS OneDrive locally in parallel for my studies. Actually I sync each file with my OneDrive account. AS my Onedrive folder's name is like : Onedrive - ...
2 votes
1 answer
4k views

Finding correct information to update mtab and fstab?

Is there an automated way to update my mtab and fstab? Or a command I can run so that I can copy the output into these files? I'm just nervous about tampering with these files because I know they are ...
3 votes
1 answer
2k views

How to tell systemctl to automatically unmount a drive if it's idle and remove directory after unmounting?

I have this entry in fstab: LABEL=cache /disks/cache ext4 rw,user,x-mount.mkdir,relatime,noauto,errors=remount-ro,x-systemd.idle-timeout=120min 0 0 What I expoect to do is: to mount the disk with ...
0 votes
2 answers
728 views

System booting all right despite wrong root entry in /etc/fstab

I have following disk structure: sda1 : Windows sda2 : an old Linux distribution sda3 : a new Linux distribution sda4 : data partition I have grub installed and I choose the system at boot time. I ...
0 votes
1 answer
35 views

fstab mount doesn't find device

I have a problem with mounting a simple ext4 USB device with sync option and defaults. This is my fstab entry: UUID=233b8055-d596-48a7-a666-1e10b8860d9c /USBSSD sync 0 0 when I use mount -a, it says: ...
1 vote
1 answer
9k views

NAS share not mounting on linux boot through /etc/fstab

I have a NAS share for my Linux server which I mount using the following command. mount -t nfs 172.16.2.115:/shares/OwnCloud /eStore/ now to automate this I added the following line in /etc/fstab ...
1 vote
1 answer
148 views

What is parsing/applying /etc/fstab entries

According to manual I thought that systemd-remount-fs.service is responsible for parsing and applying /etc/fstab entries. So I tried to test it: I removed ExecStart part (ExecStart=/lib/systemd/...
68 votes
6 answers
156k views

Moving /var, /home to separate partition

I am attempting to move some folders (such as /var and /home) to a separate partition after reading this guide: 3.2.1 Choose an intelligent partition scheme I was able to move one folder ...
8 votes
6 answers
15k views

Disabling Swap on Debian Permanently

Every guide presents disabling swap permanently as simply commenting out the corresponding line in /etc/fstab to prevent swap from mounting on reboot; however, that does not work in Debian 11. Example:...
0 votes
0 answers
25 views

Did my array go away or is the partion not mounting correctly after reboot

I had created a raid-1 array for two drives (sde and sdf) using the normal mdadm process and had created it under md1 and mounted it to /mnt/storage. After a reboot md1 no longer exists. My /mnt/...
0 votes
1 answer
209 views

/dev/disk/by-uuid/... does not exists - Fedora Server 38

I'm trying to get my Fedora Server from VirtualBox to USB drive. I've used "VBoxManage clonehd blablabla --format raw" and then dd to copy the whole disk to USB drive. I did the same trick ...
2 votes
2 answers
1k views

Blocking mounted devices from showing on Cinnamon desktop

On Cinnamon 5.0.7 (Linux Mint 20.2), how do I prevent mounted devices, specifically device created in fstab, from showing up on the desktop and Nemo sidebar. Until recently, this was the default ...
1 vote
1 answer
267 views

Mounting OverlayFS in fstab at startup

Is It possible to Mount OverlayFS from external partition in fstab and benefit from systemd services extensions at startup ? Thus overlay directory tree will add new systemd services configuration ...
0 votes
0 answers
28 views

Accessing a NAS from a Raspberry Pi - working but looking for additional information

So after quite some time messing around I have managed to access my assorted NASes on boot, but there are a zillion contradictory answers out there (I couldn't find one that actually worked as I ...
0 votes
1 answer
35 views

crypttab seems to not been active

After I upgraded from Linux Mint 21.1 to 21.2 the newest initrd stopped working. The older one works fine. Regenerating the initrd doesn't help. On startup with the newest initrd the error tells that ...
1 vote
2 answers
3k views

/etc/fstab - using bash command output to get UUID?

I placed an entry in my fstab file to add a swap partition. I used output of a bash command to get the UUID of vdb1 partition(I can't copy paste). Like this: UUID=$(blkid -o value -s UUID /dev/vdb1)...
-1 votes
1 answer
47 views

Why do my files only appear when the drive is unmounted?

Background I'd like to store music on /dev/sda1, which is a physically separate drive. The /etc/fstab contains: # grep "music" /etc/fstab UUID=10...92 /mnt/music ext4 defaults,user,rw 0 2 ...
0 votes
1 answer
3k views

Not mounting Multiple NFS Share Directories using fstab on RHEL 7

Hello everyone i am not able to mount multiple NFS Share Directories using fstab on RHEL 7. Check out my LAB configuration. I want to ask question using nfs and mounting by fstab only one nfs ...
9 votes
1 answer
3k views

How can I make my ExFAT partition unmount cleanly?

I've got Raspbian running on a Raspberry Pi 4 B. I have a USB hard disk that I'm using with it. The hard disk is a 1TB drive formatted with a single partition using ExFAT. I've got exfat-fuse and ...
1 vote
1 answer
2k views

Failed to start systemd service during boot

I'm trying to start the systemd service during boot once fstab entries mounted. I have followed Set systemd service to execute after fstab mount and added below details # cat /etc/fstab /dev/...
0 votes
1 answer
45 views

Chagnes done to the rootfs do not redirect to the overlay set in fstab

The fstab is a link to the next fstab file: # <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ext2 ro,noauto 0 1 proc ...
0 votes
1 answer
125 views

Permission Denied CIFS. Tried everything I can think of

//192.168.1.64/d /media/d cifs credentials=/home/nick/.smbcredentials,uid=nick,gid=media,file_mode=0777,dir_mode=0777,nofail,user 0 0 Here's my ls- l of the share once mounted: drwxrwxrwx 2 nick ...
0 votes
1 answer
2k views

Mounting a share in fstab (Debian 11) fails with BAD_NETWORK_NAME

I can run sudo mount -t cifs -o guest,user=root //SERVER_NAME/SHARE /mnt/FOLDER without issue. However, I cannot run mount -a or mount /mnt/folder when I have this line in fstab: //SERVER_NAME/SHARE /...
1 vote
1 answer
422 views

Mounting options with Systemd Mount Units

I used to use the fstab file for mounting drives. This time i wanted to use Units instead and created a .mount file. However i wonder how i would set a file system check option and umask settings ...
2 votes
0 answers
55 views

Using 'pass' passwordmanager within fstab

I have a NAS I want to mount on access. I can do this by adding //xxx.xxx.xxx.xxx/directory /mountpoint smb3 x-systemd.automount,credentials=home/user/.smbcredentials 0 0 to my fstab. I also want to ...
3 votes
3 answers
20k views

specify mount option in /etc/fstab (mode=1777)

I have following line in my /etc/fstab: /dev/mapper/tmp /tmp ext4 noexec,nodev,nosuid,mode=1777 0 0 When I try to mount /tmp, I get following error in dmesg: EXT4-fs (dm-1): ...
1 vote
1 answer
833 views

Automounting LUKS encrypted external usb when device inserted without error or hanging on boot if not present

Scenario Have an external device, encrypted with LUKS, automatically mount when inserted and not cause any issues if not present on boot. Most questions on this topic refer to mounting on boot - this ...
0 votes
0 answers
13 views

Imaging Centos system but avoid emergency mode after restore

I'm using terabyte Imaging program to clone my drive but when I try restoring to another drive for another system it goes into emergency mode when booting up. If I comment out the /dev/mapper lines it ...
0 votes
1 answer
45 views

Newly created home in a secondary hard drive keeps unmounting after restart, fstab does not work [closed]

I have bought a new hard drive and moved my home there. I have followed this link: https://www.howtogeek.com/442101/how-to-move-your-linux-home-directory-to-another-hard-drive/. But the new hard drive ...
3 votes
2 answers
3k views

mount command permissions: ntfs vs. ntfs-3g

I see numerous how-to examples for mounting an ntfs partition with either a mount command or an entry in fstab. In all cases, specifying ntfs as the filesystem is associated with also specifying ...
1 vote
0 answers
572 views

restoring using timeshift with an encrypted disk from a fresh live usb install

if you're using the live usb (this is specific to pop!_os 21.04, but i think it would apply to ubuntu etc) and you do a fresh reinstall, would you need to boot into the new system to get access to the ...
0 votes
1 answer
213 views

RHEL 8 hangs on boot missing disk in fstab

my /etc/fstab UUID=12345abcdef /data xfs defaults 0 0 I thought the 0 0 part, one of those, meant skip disk checking so during boot if the disk wasn't there the OS would be ok with it and ...
2 votes
2 answers
12k 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
1 answer
105 views

Fstab adding data=journal crashed my Linux' ext4 upon boot, how to fix?

I changed my /etc/fstab from: UUID=f1fc7345-be7a-4c6b-9559-fc6e2d445bfa / ext4 errors=remount-ro 0 1 UUID=4966-E925 /boot/efi vfat umask=0077 ...
0 votes
0 answers
28 views

Can fstab interfere with MTP mounting?

At some point a few months ago I added a line to the fstab to make the tmp go into ram instead of onto the disk: tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,mode=1777,size=10240M 0 0 That came ...
0 votes
1 answer
180 views

Which comes first, fstab or /var/log?

When Linux boots, does it first read fstab and mount everything from it, or does it start systemd before that? I expect that fstab comes first, but I didn't know how to confirm it. So, even if you ...

1
2 3 4 5
17