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
1 vote
2 answers
185 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 ...
teeeeee's user avatar
  • 147
0 votes
1 answer
33 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 ...
GraemeV's user avatar
  • 148
1 vote
1 answer
98 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 ...
Mario's user avatar
  • 111
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 ...
yael's user avatar
  • 12.8k
1 vote
2 answers
94 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,...
AndreaF's user avatar
  • 145
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: ...
Ben's user avatar
  • 299
1 vote
1 answer
142 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/...
SAMPro's user avatar
  • 227
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/...
Adam's user avatar
  • 1
1 vote
1 answer
243 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 ...
K. PANIK's user avatar
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 ...
opensource25's user avatar
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 ...
Dr_Jon's user avatar
  • 1
-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 ...
Dave Jarvis's user avatar
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 ...
קובי עיני's user avatar
0 votes
1 answer
119 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 ...
Nick's user avatar
  • 3
1 vote
1 answer
384 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 ...
Noobman's user avatar
  • 13
2 votes
0 answers
53 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 ...
grbll's user avatar
  • 23
0 votes
0 answers
12 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 ...
Fumio's user avatar
  • 1
0 votes
1 answer
44 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 ...
Eftal Gezer's user avatar
0 votes
1 answer
201 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 ...
ron's user avatar
  • 6,122
0 votes
1 answer
201 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 ...
user1748526's user avatar
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 ...
cardamom's user avatar
  • 548
0 votes
1 answer
104 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 ...
Vlastimil Burián's user avatar
0 votes
1 answer
174 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 ...
donaastor's user avatar
  • 214
1 vote
0 answers
34 views

Changing storage bus type

I created a VM on Fusion for OpenStack — it's a whole thing, not fun at all — which failed to boot once on OpenStack. OpenStack seems like a pretty rudimentary hypervisor/platform — I think — and I ...
Vita's user avatar
  • 141
0 votes
1 answer
70 views

Can't mount `proc` to `schroot` environment using `setup.fstab`

I'm writing a bash command to deploy gluster inside a chroot called glusterchroot. I'm having issues mounting files from the host to the chroot. Schroot's man page recommends the following: $ man ...
mikeLundquist's user avatar
0 votes
0 answers
21 views

Umount NFS volume after a service stopped

I have a error when a restart my server because it try to umount a volume which is still used by a service. How can I edit my fstab entry to stop the service before umounting the volume ? My fstab ...
Furlings's user avatar
0 votes
1 answer
166 views

Can I mount `/var/log/journal` as `tmpfs`?

I have read this question, but it discusses syslog and my question is about journald. Can I mount /var/log/journal as tmpfs using fstab, or will journald be run (and therefore maybe write to the ...
donaastor's user avatar
  • 214
-2 votes
1 answer
390 views

Check & Modify /etc/fstab

at every boot of my system I should check the file "/etc/fstab": # UNCONFIGURED FSTAB FOR BASE SYSTEM #/dev/disk/by-partlabel/userdata /userdata ext4 defaults 0 2 #/dev/disk/...
Federico's user avatar
  • 129
0 votes
1 answer
421 views

Broken shortlink after Ubuntu was restarted. Too many levels of symbolic links

My shortlink which used to work suddenly is shown as broken after I restarted the PC having Ubuntu 22.04.2 LTS. I moved the "Documents" directory to another disk which is HDD and made a ...
ravi's user avatar
  • 143
1 vote
1 answer
1k views

Disk mount failed with result 'dependency'

I mount drive using command mount and modify fstab file (so disk should be visible after restart). Unfortunately, after system reboot, mount isn't visible in the system lsblk -a says, disk is ...
Mateusz Przybylek's user avatar
1 vote
1 answer
233 views

Mount a LUKS encrypted EXT4 formated image file when mount folder is accessed (using autofs)

Here's what I'd like to do. Use autofs to automount an encrypted luks image file when the target directory is accessed. I've been playing with both fstab and crypttab, but to no luck. I do NOT want to ...
JDMcMillian's user avatar
0 votes
0 answers
366 views

UTM – Must Be Superuser To Use Mount When Trying To Automatically Mount the Share on Start

I am new to virtual machines and have set up a Kali VM on my new M2 MacBook through UTM. I have set a shared drive up through virtiofs so I can transfer files between the two machines. I can mount the ...
dark-walrus's user avatar
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 ...
Birsen's user avatar
  • 1
0 votes
1 answer
410 views

mount: mounting /dev/sda1 on /boot failed: invalid argument mount: mounting /dev/sda6 on /tmp/mount.PPWHGn failed:

After configuring the image using a generalized method, I successfully created a VM. Initially it was started. However, upon attempting to restart the VM or start it after stopping it, I encountered ...
Saurabh Sangve's user avatar
1 vote
0 answers
85 views

How to use credentials from one auto mount in another auto mount?

How do I use a credentials file from one mount in a second mount so it will mount automatically on startup? Here's my fstab. 1.2.3.4:/nfsroot/abc /mnt/abc nfs4 ... //def/ghi /mnt/def/ cifs credentials=...
Blueen's user avatar
  • 11
2 votes
1 answer
114 views

How to mount folder with nonASCII (cyrillic) letters by systemd mount-unit?

I want to create systemd mount-unit equivalent for next fstab line /dev/sdc1 /жышы ext4 defaults 1 2 Something as жышы.mount [Unit] Description= /dev/sdc1 to /жышы [Mount] What=/dev/sdc1 Where=/жышы ...
Alexander Dyadyun's user avatar
1 vote
1 answer
83 views

Ansible: gocryptfs doesn't ask for password

When I use Ansible to create all kinds of remote mounts that need a SSH password, the ansible-playbook command simply asks for them when I run it. However, when I want to create a gocryptfs mount, I ...
Krateng's user avatar
  • 153
0 votes
1 answer
64 views

gvsf (GNOME virtual file system) on usb-ios, when I git clone, I get: fatal: could not set 'core.filemode' to 'false' , due to OS service to rename

I usb-connect my ios device on my linux laptop. The linux system mounts a gvfs point to it (/run/user/1000/gvfs/afc:host=xxxxxxxxxx,port=3), I change directory there, I can rsync back and forth, but I ...
Bruno Schroeder's user avatar
1 vote
1 answer
93 views

Dynamically select which partition to mount based on root partition

I have got two readonly root partitions (say roota and rootb) which operating system is installed. This is for a basic A/B partition update scheme and after updating my system these partitions are ...
lupus's user avatar
  • 13
4 votes
6 answers
1k views

How to delete all UUID from fstab but not the UUID of boot filesystem

on the following example fstab file, we want to delete all lines that start with UUID , but except the UUID line with boot word /dev/mapper/VG100-lv_root / xfs defaults ...
yael's user avatar
  • 12.8k
0 votes
0 answers
232 views

No bootable devices found for Fedora

As a word of caution: I am inexperienced and moved some partitions around when attempting to dual boot windows from Fedora, I didn't take note of what I was doing and so only have my current ...
Pierre Fermat's user avatar
0 votes
0 answers
116 views

After updating computer enters in Emergency mode in KDE neon

I'm not sure if I'm posting in the right place. If it's so just let me know. Yesterday updated normally and when it rebooted it opens with the "emergency mode" and the "journalctl -xb&...
David Baytelman's user avatar
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=/...
user3523406's user avatar
1 vote
1 answer
185 views

Does fstab make sense for chroot jail?

I've created an fstab file (to mount /dev/pts and /proc, with the bind option) as part of a jail but when I chroot to the jail neither filesystem is mounted. This makes me wonder when the fstab for a ...
Olumide's user avatar
  • 177
0 votes
0 answers
131 views

/etc/fstab syntax incompatible between auto-mount and manual mount of CIFS

When I use this fstab syntax: # grep raven /etc/fstab \\raven.example.com\raven /raven cifs vers=2.0,credentials=/root/creds_smb_raven,\ uid=5000,gid=6000,file_mode=0664,dir_mode=...
Jim L.'s user avatar
  • 7,399
1 vote
1 answer
389 views

udisks excluding system global mount options when mounting

I have updated my embedded linux, but the udisksctl does not work as expected anymore. If I try to mount a ext4 formatted flash drive I get the following error: root@system:~# udisksctl mount -b /dev/...
DEKKER's user avatar
  • 856
1 vote
1 answer
821 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 ...
a2k42's user avatar
  • 131
0 votes
0 answers
281 views

Cannot mount device

I needed to restore my Ubuntu 20.04 server after trying out 22.04 for a bit. (Certain functions I require are not yet ready for 22.04.) The restore (which was a simple dd operation from a dd backup) ...
Dennis 's user avatar
  • 101
0 votes
1 answer
45 views

data occupying space but cannot be found

when configuring an automount via fstab I made a mistake with defining the correct datasystem. Instead of ext4 I configured it to be ntfs. Whenever I copied files into the system I assume it copied it ...
Thomas Christopher Davies's user avatar
0 votes
1 answer
1k views

Error: mount, as it already exists. Duplicate entry in /etc/fstab?

When I try to give access to the same target directory to multiple FTP users using these commands: sudo mount --bind /home/max/home/ExLand /home/riven/Desktop/ExLand sudo mount --bind /home/r1ven/home/...
Riven's user avatar
  • 1

1
2 3 4 5
17