date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,611,052,742,000
following problem: I have a server which needs to mount a windows network share in order to copy a file on it. So I added the share in the fstab so that it will be mounted on startup. //192.168.1.xx/share /mnt/networkshare cifs noperm,username=user,password=****** 0 0 A script loops to copy the file on t...
you can check the mount before attempting to move: df | grep "/mnt/networkshare" |grep -v grep >/dev/null; r=${?} if [ ${r} -eq 0 ] then mv /path/to/the/file /mnt/networkshare fi also, adding a sleep command in the process might mitigate your 100% CPU utilization problem. Hammering a process without a break is not ...
Auto mounting network share which is temporary offline
1,611,052,742,000
I just made a small mistake and reformatted my swap partition. It's still formatted as a swap partition - I was fortunate not to touch anything more important. However, I notice that the uuid has changed. Therefore, it no longer matches the uuid in /etc/fstab. This doesn't cause me any immediate problems, presumably b...
In answer to your second question, there's no dedicated wrapper for the fstab file; just open it in a text editor.
Fixing fstab after reformatting swap
1,611,052,742,000
I thought it would be easier for me to mount flash drives automatically if I did the following to fstab: /dev/sd1i /mnt/usb (sd1i is found from sysctl hw.disknames) I rebooted the box with the USB 3.0 flash drive still inserted in the USB 3.0 port. During the boot process, the following errors were detected: /dev/rsd...
You don't need to use ed unless you really want to. Once you're at a single-user prompt (just hit Enter at the Enter pathname of shell or RETURN for sh: prompt, do the following: Mount the root filesystem as read-write, then mount the /var and /usr filesystems (this will allow you to run vi or any other editor of you...
Need to remove a line in fstab on OpenBSD
1,611,052,742,000
I am trying to mount a folder in Windows (shared by Everyone) to a centOS server using cifs. In /etc/fstab, I got: //192.168.x.x/DOUGSLAPTOP/hatest /mnt/fsr01 cifs guest 0 0 I have also tried doing this: //192.168.x.x/DOUGSLAPTOP/hatest /mnt/fsr01 cifs users,rw,user=Ryan,pass=...
Best way for non-user-name password is : sec=none Above configuration is mount option of mount.cifs
CIFS mountpoint timesout when attempting to Mount
1,611,052,742,000
I recently had a bad UPS lead to a sudden crash of several machines. One of them (running FreeBSD) didn't come back up until I replaced the power supply, but it's still not fully back. Both the BIOS and the OS complain about a disk being missing; swapping around power cables and data cables and such has convinced me...
Your fdesc line in fstab appears be mislocated, it should be fdesc /dev/fd fdescfs rw 0 0 As the first comment noted, the first colum is device name, which is ignored by fdescfs(5), then the mount point, which should be /dev/fd to make it useful. Also the file system type is fdescfs, not fdesc See the man page fdesc...
FreeBSD can't mount fdesc?
1,611,052,742,000
I have ArchLiinux Linux comp001 3.18.7-1-ARCH #1 PREEMPT Wed Feb 11 11:38:34 MST 2015 armv6l GNU/Linux for Arm installed on rPi and here is my /etc/fstab file: # # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> /dev/mmcblk0p1 /boot vfat defaults ...
You are confusing the rw option with the umask. The rw option merely dictates that the partition is not mounted read-only. The umask option dictates what permission that not set on files and directories. Your current umask of 022 sets the permission bits to 755 which translates to rwxr-xr-x. Change the umask to 000,...
/etc/fstab/ rw option is being ignored for mircosd card partition in ArchLinux
1,611,052,742,000
I've got a unix user "popolo" who is chrooted in /srv/ftp/ and I mount my two external drives by /etc/fstab in /srv/ftp so I have /srv/stp/dude and /srv/ftp/sweet. Popolo has access to those drives by sftp. In dude/ I've several directories: dude/music, dude/photos, dude/movies, and for some of them (like photos) I do...
Use normal Linux/Unix permissions on your dude/photos to make sure that popolo can't access them. Assuming that popolo isn't the owner of those files and directories and isn't in the group, then a simple chmod -R o-rwx dude/photos should make sure that popolo can't access those files. Or: An alternative way would be t...
Limit access on external drive mounted and used by sftp
1,611,052,742,000
I always have to go to gparted and then turn my swap on. The swap space isn't used by default and if I turn the swap on, the swap is not used! How can I make the swap space be used by default at boot?
This information should be set in /etc/fstab You want a line something like - /dev/sdb3 none swap sw 0 0 with the first item set to match your device details. Any swap lines with noauto will be ignored. I believe this configuration is fairly consistent between *nix systems, see man fstab for more info.
Something happened to Swap; it is not used by default
1,611,052,742,000
I just did a Gentoo fresh install but when I boot it the root filesystem mounts as read only. Once I login I can remount it with mount -o remount,rw / but it's not even recognizing my hostname. Someone on irc told me it could be that for some reason fsck bombs as root is always mount ro first and then fsck remounts it...
I found this solution over on SuperUser titled: Root file system is mounted read-only on boot on Gentoo Linux, which sounds exactly like your issue. The solution was to make sure that the root service was enabled in your boot runlevel. These are the services that were suggested as needing to be started in the boot run...
Gentoo mounting root as read only, why?
1,611,052,742,000
I have a simple embedded setup as follows: x86 target, kernel and root file system built using buildroot. Syslinux is the bootloader configured to boot with an initramfs which points to a .cpio file generated from the buildroot generated root file system. My system boots and works as I am expecting, but I am confused ...
Any directory path can have any (valid) volume mounted to it. Whether or not /etc/fstab is the correct place to put it depends on whether or not your embedded setup even uses it.
What happens with /etc/fstab when using an initramfs?
1,611,052,742,000
I just decided to delete my Windows partition and only use Linux. My old partition table was: sda1: W7 boot partition sda2: W7 partition sda3: Linux sda4: start of logic partitions sda5: swap. I deleted sda1 and sda2, and then expanded sda3. Now my partition table is: sda3: Linux sda4: start of logic partitions sda...
First of all, if you have moved the beginning of the partition, chances are rather high, that you can only wave the filesystem there goodbye. The reason is, that the beginning of a filesystem usually contains a very important data structures (usually called supeblock) without which the data in the filesystem is inacce...
Reset partitions numbers
1,611,052,742,000
I have copied my /var /opt /usr directories to a newpartititon and now I need to configure the fstab file. That is the new partition content: drwxr-xr-x 6 root root 4096 Dec 20 12:16 opt drwxr-xr-x 10 root root 4096 Dec 8 06:52 usr drwxr-xr-x 11 root root 4096 Dec 21 08:35 var This is how I want to change the fs...
No, mount does not "detect" any directories under a filesystem. It is not its purpose. If you put /var, /opt and /usr all on a one partition, which is not the root partition of your system, you'll need to do two things: Mount the partition under some separate, special directory - let's say /mnt/sysdirs Bind-mount the...
config fstab file for a diefferent partition root directories
1,611,052,742,000
On an embedded device based on Yocto Linux my rootfs is RO, while I have an additional partition for RW data. Now I want to automount at boot an overlay onto /etc stored on a different partition. Here is my fstab: /dev/mmcblk0p6 /data_local ext4 defaults,sync,noexec,rw 0 2 [...] overlay /etc overlay defaults,lowerdir=...
I ended up using the overlayfs-etc.bbclass feature from Yocto instead, which is available since Yocto 4.0. Documentation at: https://docs.yoctoproject.org/ref-manual/classes.html#ref-classes-overlayfs-etc The bbclass patches the init process in /sbin/init to create the folders at runtime before mounting the overlay. S...
fstab and systemd automount overlay
1,611,052,742,000
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/systemd-remount-fs) and rebooted the system. After booting and logging in I still had fstab entries in mount. And now I am wo...
The kernel usually mounts the root filesystem at the very end of the boot sequence. It is usually mounted readonly and irrespective of whatever mount option set as part of the /etc/fstab file. Control is then, given to the init system. As specified in the manual you linked to, systemd-remount-fs.service : ignores nor...
What is parsing/applying /etc/fstab entries
1,611,052,742,000
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 there. For example in a fstab file you would do that by adding (just as an example) umask=000 0 1 I'm not sure if i can jus...
To start with, umask=000 0 1 is not a mount option; it's three separate fields, only the first of which contains mount options. The umask=000 part is the actual option list; it usually can be directly used in systemd's Options= parameter. All options that would be passed to the filesystem work the same way as they do...
Mounting options with Systemd Mount Units
1,611,052,742,000
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 selected for boot in a roundrobin fashion. I have two other partitions (say data1 and data2) and I would like to mount on ...
No idea what your configuration is, but the script will essentially be something like this: #! /bin/bash default=/dev/partition1 root=`mount | grep -w / | awk '{print $1}'` # verify this works for you test "$root" = "partitionB" && default=/dev/partition2 mount $default /mnt/somewhere
Dynamically select which partition to mount based on root partition
1,611,052,742,000
I recently mount my home partition(my home partition is separated from root) of the Endeavour-OS from my Garuda-OS, that cause me to boot into emergency mode in my Endeavour(that should have mountpoint to my home partition). How should i proceed with this? Is the only way is to create user and add it to home dir with ...
It is SOLVED now Before i use fsck -y /dev/sda3 on my / dir, instead it I should fsck my home partition using fsck -f -y /dev/sda4 Thanks to this, I have little knowledge about how mountpoints work and fstab in my machine. I'm trying to get the right tags and words in google so hard before I know that i get the boot p...
Home partition emergency mode
1,611,052,742,000
Disclaimer: I have no experience installing Ubuntu Server in UEFI boot mode. Context I'm setting up this new servers with RAID 10 via mdadm. AFAIK, ESP can't be RAIDed, so during Ubuntu installation I set my four disks to be used as Boot Device, which looks like this: After installation finished, lsblk output looks...
Yes, if grub-efi-amd64 is configured to use those as the ESP:s then Ubuntu will automatically sync them all. And they don't need to be mounted to be synced, myself I don't have /boot/efi mounted in fstab at all. That config is handled by debconf.  The command sudo dpkg-reconfigure grub-efi-amd64 should take care of t...
Does Ubuntu installation keep multiple ESP synced? How to setup /etc/fstab to fallback mount /boot/efi?
1,611,052,742,000
I have a laptop. It has two hard drives. One is an SSD with a normal Windows 10 install on it. The other is an mSata with a normal install of FreeBSD13 on it. To install FreeBSD I removed the SSD, booted from the FreeBSD installer on a USB stick, installed FreeBSD to the mSata using the auto options, then shut down my...
I'm guessing it should say /dev/ada1p2. You surmise correctly. So long as that particular disk is plugged into that particular controller slot (all other things being equal), your system will probably see it as ada1. So yes, your swap partition on ada1 is correctly referenced as ada1p2. But if you ever change your...
What should be in my /etc/fstab if I have two discs?
1,611,052,742,000
I cannot mount the swap subvolue. -> sudo mount -av / : ignored /home : already mounted mount: /swap: mount(2) system call failed: No such file or directory. -> fstab # <file system> <mount point> <type> <options> ...
Solution: Mount the btrfs volume at /mnt (e.g from a live iso) and then create the @swap subvolume as /mnt/@swap. Details of the Initial Problem: Turns out that the btrfs subvolume @swap has not been a top-level subvolume as needed for the mount operation. This is indicated by the integer 272 in the subvolume list. Th...
mount(2) system call failed: No such file or directory
1,620,061,643,000
What's the best way to disable swap entirely on a fleet of GNU/Linux hosts, using systemd and Ansible? For whatever reason some of my virtual machines have a swap file configured in their /etc/fstab, which gets automatically picked up at boot by systemd-fstab-generator like this: $ cat /run/systemd/generator/swapfile....
You can let systemd do its thing by default and then just revert it with another systemd unit immediately afterwards. If you check with systemd show swapfile.swap, you'll see all the unit does is to run swapon on that file. When you issue swapoff manually, the swap will reappear at the next boot. Running swapoff immed...
How to disable a swap file configured by systemd, via Ansible?
1,620,061,643,000
I want to reorganize my file system. I have swap allocated that I don't use. My / partition is overflowing all the time, and because of that I've kept moving big directories to a separate partition /mnt/nvme0n1p4. It occurred to me that it might be smarter to move all those directories back to /home and mount /home fr...
Basically looks good, however: in step 3, instead of rm -rf /home, better do rm -rf /home/*. You should not remove the /home directory itself, only it's contents, because you need an empty /home directory to exist as a mount point. If you happen to delete the /home directory, you need to re-create it with the same ow...
reorganizing my filesystem
1,620,061,643,000
I tried to install Void-Linux as secondary Linux on my laptop. I created a new partition for it on LVM, installed base system using XBPS method copied kernel and initramfs to my /boot partition and created /etc/fstab. It booted almost correctly but with one exception: the rootfs is readonly by default, so I need to re...
I've fixed it by using rw kernel command line flag in grub config: - linux /vmlinuz-5.10.8_1 root=/dev/SDD/void dolvm + linux /vmlinuz-5.10.8_1 root=/dev/SDD/void dolvm rw /etc/fstab mount options seems to be not related to this issue.
Read-only rootfs on boot
1,620,061,643,000
Forgive me if I'm in the wrong Stack, this seemed like a more general Linux thing, so I posted here. Np if I need to take it elsewhere. Also I'm pretty new to Linux so please be patient. Hardware= Raspberry Pi 3 OS= Raspbian Buster, apt-get update and upgrade applied Application= PLEX server, NAS and networked TimeMac...
As @xenoid suggested, it seems you've not actually mounted the USB drive that you've connected to your RPi. Perhaps the easiest way to confirm that is to check as follows: $ lsblk --fs NAME FSTYPE LABEL UUID MOUNTPOINT sda └─sda1 exfat SANDISK16GB 5B00-9E5C ...
Files Written to External USB Disk are taking up Internal Storage Space
1,620,061,643,000
I want to mount all text files without execute permission to eliminate the (Run in Terminal - Display - Run) message, which appears every time I open a text file in Linux Mint. I have the following line in my fstab: /dev/sda7 /media/myname/Programs ntfs-3g defaults,uid=1000 0 0 I tried to add umask=111 b...
MS-Windows sets the execute bit on every file. (One of the reasons for its poorer security). noexec is the option to disable excitability. Using the umask will stop directories from being traversable, because directories need execute permission. Therefore mount with option noexec.
Removing mount default execute permission of text files
1,620,061,643,000
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) However despite the fact that after editing /etc/fstab the command mount -a was successful, the system after the reboot halt...
Only block devices have UUIDs (that can be found). A file is not a block device, the loop device turns it into one. So for the UUID of an image file to be found, the loop device must exist first. However, your fstab entry is a loop mount, i.e. the loop device is only created when you mount it (and immediately removed ...
mounting loop not working with UUID
1,620,061,643,000
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 extending the logical volumes rootvol and lvhome or keeping the current setup (see below). I only use the ext4 filesystem ...
LVM provides logical volumes, which are logical block devices, and makes it easy to grow, shrink, relocate, snapshot, etc. those block devices. You can then use these block devices any way you like... it could be a filesystem, or something else like a virtual HDD for a VM with its own partition table and everything. L...
Can one combine logical volumes from different groups without copying the contents over?
1,620,061,643,000
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]: inotify_add_watch(/etc/fstab) failed: (Permission denied) Sep 26 23:08:19 desktop kgpg[878]: Error loading text-to-speech ...
No, that's not correct. /etc/fstab is supposed to be world readable. A LOT of programs depend on this, and it's world readable on every standard Linux distribution. You're not supposed to put credentials or anything else that's actually sensitive in this file (see Does /etc/fstab need to be world readable? for how to ...
inotify_add_watch(/etc/fstab) failed: (Permission denied)
1,620,061,643,000
My /etc/fstab has only two lines: root partition and debugfs, while /etc/mtab has much more, in addition to these two, like (sysfs, proc, udev, devpts, tmpfs, cgroup, ...). Where do the additional mount points come from?
Those mounts are often performed by the initramfs/initrd scripts or other early-boot system initialization scripts, or on distributions that are fully using systemd, by .mount systemd unit files executed by either the real systemd or by the mini-systemd environment within the initramfs. For example, Debian 9 has the f...
Why do I have mounted partitions that do not appear in /etc/fstab?
1,620,061,643,000
I have to use ext4 image file in btrfs, because Dropbox requires ext4 as file system. In fstab mount options I've set async, but I'm not sure about this. What are the pros and cons of async and sync flags for a disk image? Which one is preferable? I personally think that it is better to let host file system (btrfs in ...
I personally think that it is better to let host FS (btrfs in my case) handle handle sync by itself, so sync ption is better. Am I right? If I understand you correctly, then no :-). (But it's not entirely clear, and maybe you meant to write "async option is better", not "sync ption"). The loopback device (used for ...
sync vs async for images
1,620,061,643,000
I'm on Windows 7 and I run a Debian VM under Vbox. On my Windows 7 I've the c:\temp folder that I want to share. I added it : I had an hard time to permanently mount that folder with Virtual box (had to install Guest Additions, etc.. ) but now it is solved. What I need to do is edit /etc/fstab file and add the foll...
with mount you use a device? No. One provides a source, a.k.a. a "what" (alongside a "where" and a "vfstype", and some options). That does not have to be a block device name. It is something that only has meaning in conjunction with the type of filesystem. In the case of vboxsf mounts, the "what" is the name of ...
How Virtual Box shared folder are handled in Debian ?
1,620,061,643,000
I recently attached a SSD to my system, with the old HDD in the DVD drive bay I set up the file mount option in the /etc/fstab file. The permissions are as follows for SSD: /dev/sda2 /home/arun/SSD/ auto rw,user,nodev,nofail,x-gvfs-show 0 0 for HDD /dev/sdb2 /home/arun/HDD/ auto rw,user,nodev,nofail,x-g...
run from root this command: chown -R arun:arun /home/arun/HDD and after try to write something in it.
Identical fstab options end up with different permission
1,620,061,643,000
I have a custom, non-default Ubuntu installation, where I use my other Linux distro's boot manager (rEFInd). As such, I don't want Ubuntu to see my EFI partition, on the principle that it has no business to what's there (which has already saved my ass last night when I did an rm -rf /*...). However, because I'm using ...
As @RamanSailopal suggested, the answer was (of course) in dmesg. The root of the problem was that systemd creates unit files from fstab entries, and for whatever reason, they must have a filename that maps to the mountpoint. In other words, multiple mounts per mountpoint are disallowed. I worked around this by creati...
Shadow bind mount in fstab
1,620,061,643,000
I have a partition mounted to /home and want to mount another partition as $HOME/Steam. The /home partition is encrypted and only mounted at login (not by fstab btw), while the Steam partition is not and fstab will mount it directly at boot. When I log in, the home partition will be mounted over it and hide its conten...
You can't, sorry. The encrypted filesystem is mounted by something like pam_mount or pam_ecryptfs. This happens after the boot process. This mount unit won't be part of the boot "transaction", and therefore ordering dependencies on it will have no effect on boot. The best you can do is mount the partition, and then ...
fstab mount nested folders in order
1,620,061,643,000
I successfully mounted a directory to another path: [michael@vps ~]$ mkdir /home/michael/devicefilexxx [michael@vps ~]$ mkdir /home/michael/mountpointxxx [michael@vps ~]$ sudo mount --bind /home/michael/devicefilexxx /home/michael/mountpointxxx I see how it looks: [michael@vps ~]$ cat /etc/mtab | grep xxx /dev/mapper...
Let me try for the /dev/mapper/centos-root, your using what in Linux is called Logical Volume Management. This acts like a wrapper around your filesystem making it easy to adjust when compared to the normal partitions. You have three main mount points, root as seen from your /etc/fstab: /, swap and /boot So boot stu...
Permanently mounting a directory with LVM
1,620,061,643,000
I've got a Drobo in three partitions on Linux Mint, and it periodically drops off the filesystem, losing its mount points. Upon return it disregards /etc/fstab and mounts as a new device under /media--as if I'd inserted a new USB stick. AFAICT, the fstab declarations are correct--they work manually--but maybe I've mi...
My main concern is why /etc/fstab is disregarded ... The manual mount immediately put them right back where they should be The auto-mounting you refer to is performed by udisks. As you desire, it's supposed to defer to the entry in /etc/fstab, if there is one. But if there isn't one, it mounts under /media. It so...
Drobo filesystem ignores /etc/fstab, automounts in the wrong place after connection is interrupted
1,620,061,643,000
For over a year, I've been able to backup numerous Windows servers using Ubuntu Server 16.04, but this all stopped working on Tuesday May 9th 2017. Here's how I'm mounting these windows file systems using fstab: sudo nano /etc/fstab \\192.168.1.1\c$ /mnt/win2012r2 cifs credentials=/home/user/.smb,iocharset=utf8,sec=...
Temporary hack. I have encountered the same error when mounting from the command line. sudo mount -t cifs //ls2/jc /mnt/ls2 -o username=jc I did not get an error, "Host is down", until I tried to access both the share directory /mnt/ls2 AND /mnt. ls /mnt/ls2 ls /mnt I then unmounted the share sudo umount /mnt/ls2 then...
Can No Longer Mount Windows File Systems (Since May 9th 2017)
1,620,061,643,000
I have a mini home server running Debian 8.7 that during the initial installation had a 1tb hard drive mounted to / and a 60gb ssd mounted to /home. I would now like to remove the ssd for use in another project but am at a loss for how exactly to do so. I would like to have my home folder which has a bit of stuff from...
You could (change <editor> to you text editor of choice): sudo cp -Rp /home /home-copy sudo <editor> /etc/fstab In the editor, change: UUID=e39ea57f-7d07-4e53-8f2a-1571b23d06fe /home ext4 defaults To # UUID=e39ea57f-7d07-4e53-8f2a-1571b23d06fe /home ext4 defaults Then: sudo mv /home /home-old sudo mv /home-copy...
Removing hard drive mounted to /home
1,620,061,643,000
OS: Parabola GNU/Linux Libre, a GNU version of Arch. I have managed to encrypt my root partition, but I'm unsure about how to encrypt my swap partition. I know swap partitions are becoming old-fashioned and that swap files are preferred, btrfs still does not support this. lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
It would be simpler to make one encrypted container and set up both / and swap on that with LVM. Like this: sda1 boot sda2 LUKS-crypt LVM root-LV swap-LV Then you only need one key to open it, letting you skip crypttab altogether.
Timed out error waiting for encrypted swap device
1,620,061,643,000
I am booting from my HDD not my SSD and that is a good thing. Can I just comment out the line (line 3) containing the /boot/efi until such time I actually change my mind and want to boot from this SSD? Did they put that there just in case? Can I make it go away until that case becomes true? OS is ubuntu 14.04LTS. Her...
The /boot/efi partition usually contains the instance of Grub that will be loaded if you are doing a UEFI boot. The other option is bios, which does not use grub-efi. I would make sure that you are not actually booting to EFI first before you remove that mount. Usually you can check in the BIOS and see if the drive yo...
I do not boot from my ssd. Is it safe to comment out /boot/efi line in file /etc/fstab?
1,620,061,643,000
I bought a UPS this week and it came with the WinPower software that lets my PC (Linux Mint 18 XFCE) to communicate with the UPS, monitor it, and receive a shutdown signal in case the UPS battery is very low. The issue is that the software added the following line to my /etc/fstab file: usbfs /proc/bus/usb usbfs...
The usbfs (USB filesystem) was removed completely from the kernel in kernel version 3.5. Similar files are available under /dev/bus/usb and /sys/bus/usb. You will need a newer version of the WinPower software that works with more recent kernels. Maybe try the one available from their website.
/proc/bus/usb in /etc/fstab prevents my PC to start the graphic session
1,620,061,643,000
I am trying to auto mount a remote resource through sshfs but is not working for me. I have read all of this, this, this and this before ask to see if I can get the solution for my issue but it didn't work. So here is what I have done so far: Added the following line to /etc/fstab: <username>@remote_host_ip_address:...
Rather than using system-wide /etc/fstab, I suggest using afuse. It's mentioned in passing in the Arch wiki you link, but it's also included in Fedora. This runs in your user session and can therefore either use ssh-agent or prompt for a password. It also will only mount on demand, and can be configured to unmount aft...
How to automount sshfs? [duplicate]
1,620,061,643,000
I already read some advices on other topics, that I should probably just change 'errors=remount-ro' to ignore it, however I am interested why did this message show up in the first place? Did it find some errors? Is it an indication of some other problems? The only thing I know, I downloaded an .iso from the interweb...
Commenting out UUID=8baa... and /dev/sdc... lines helped, since it was an earlier connected phone that was no longer connected.
Press S to skip mount... why did it show up all of the sudden? [closed]
1,620,061,643,000
Upon installation, I have created an extra partition and mounted it as /data. The partition is visible, but I get a Permission denied error when trying to create a file or directory in it. Doing it with sudo does work. I am using ext4 filesystem. I have tried deleting the partition, then creating it again and setting ...
this should fix your problem: sudo chown -R $USER:adm /data chmod 0775 /data This will give you and all users in the adm group read and write access. all other users not in the adm group have only read access. Ihe group adm is one of the default groups for all users in Ubuntu. For another distro, you could check whic...
Permission denied when writing a file
1,620,061,643,000
I'm trying to mount my NAS server to my raspberry pi server, but without any luck. Mounting a NAS is pretty new to me. my fstab: //10.0.0.15/volume1/pie /home/nas/ cifs username=pie,password=pieserver,workgroup=WORKGROUP But when I try to run mount -a then I get this error: root@pi2:/home/pi# mount -a Retrying with u...
Problem found & fixed. Was wrong dir path on NAS server, I used the path for admin user which is full path, but since pie only has access to the pi folder, then it just "direct" connect to that folder.
mount error(6): No such device or address
1,620,061,643,000
To set up an svn repository (running on arch linux) I would like to use my NAS to store the repository. I can only mount it with CIFS (smb). At first there was an issue where the httpd user could not write to the file system which I solved by adding the options rm,file_mode=0777,dir_mode=777. The next error message ...
The solution in my case was to mount the disk with following fstab option //server/share /mnt cifs username=USER,password=PSWD,rw,file_mode=0755,dir_mode=0755,uid=http 0 0 The important thing seems to be the uid=http option.
Use CIFS share mounted in fstab for apache svn
1,620,061,643,000
I need to add 100MB of swap space to my machine. I was trying to use a logical volume. # lvcreate –name lv_swap2 –size 100M vg # mkswap /dev/vg/lv_swap2 # swapon /dev/vg/lv_swap2 # vi /etc/fstab /dev/vg/lv_swap2 swap defaults 0 0 It doesn't work.
You wrote everything right but missed something here: swap swap defaults # lvcreate –name lv_swap2 –size 100M vg # mkswap /dev/vg/lv_swap2 # swapon /dev/vg/lv_swap2 # vi /etc/fstab /dev/vg/lv_swap2 swap swap defaults 0 0 Now it should work.
How to add 100MB of swap space as a logical volume in CentOS?
1,620,061,643,000
I'm running nginx, PHP-FPM and MySQL on Debian Wheezy. I've set up chroot jails (with debootstrap) for each individual virtual host in /srv/. Everything is working like one would expect, but after each reboot I had to manually mount --bind /proc /srv/chrootjail/proc and mount --bind /run/mysqld /srv/chrootjail/run/mys...
I have very limited knowledge what mount --bind even does really, but I think I might have figured out why I'm facing this problem with /run/mysqld in particular. I've just noticed /run (previously /var/run) is a tmpfs and thus it gets emptied during a reboot. So my guess is that /run/mysqld doesn't exist when /etc/f...
How do I properly bind directories inside chroot jails using fstab?
1,620,061,643,000
I'm on Debian Jessie and I have an external USB drive with NTFS. I plugged it into my Raspberry Pi, which then spontaneously restarted (probably the power consumption was too high for the adapter I'm using). Since then I cannot access my USB drive anymore. I tried to fix it on my regular computer with sudo ntfsfix /de...
As can be seen by the fdisk command, the partition table was all messed up. This probably happened because the power on the drive was cut while it tried to access it. I installed testdisk, then ran sudo testdisk /dev/sdb After a quick analysis, the disk was properly recognized as being an ntfs disk with only one part...
Cannot mount external USB drive
1,620,061,643,000
I'm running Debian Wheezy on an SSD, and in addition I have two 500GB hard disks in Intel software RAID 0 (fakeraid). Both the SSD and the RAID array have GPT partition layouts. I have set up my fstab to automatically mount one of the partitions on the RAID array, but the root filesystem is on the SSD. During boot, dm...
Solution to the original problem Install kpartx: sudo aptitude install kpartx Change these lines in /lib/udev/rules.d/60-kpartx.rules: ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="dmraid-*", \ RUN+="/sbin/kpartx -a -p -part /dev/$name" to this: ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="DMRAID-*", \ RUN+="/sb...
Automatically run kpartx during boot
1,620,061,643,000
I was running a small instance on Amazon EC2. I'm trying to migrate it to a micro as it requires very minimal processing power. One thing I just learned though, is that micro instances do not come with ephemeral storage like the other instance sizes. Here is the fstab file from the small instance. I just added the nob...
The AMI will work fine, as-is. The only reason you would need it is if your workflow/application needs it.
Do I need ephemeral storage?
1,698,408,682,000
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 proc defaults 0 0 devpts /dev/pts devpts ...
According to https://github.com/systemd/systemd/issues/21592 this seems to be a problem for before 252 versions. I wrote my own service calling systemd-growfs / to work around the problem.
Why does "x-systemd.growfs" in fstab not work for the rootfs?
1,698,408,682,000
I want to mount my cgroups from fstab instead of allowing systemd to mount them at /sys/fs/cgroup. I have my fstab written with targets such as /cgroup/cpu, /cgroup/blkio.. etc. When I boot up, the machine boots into emergency mode and I see messages such as: [FAILED] Failed to mount /cgroup/cpu. See 'systemctl status...
After some digging, I have learned that systemd refuses to budge on where it mounts these. This page outlines which mounts can be prevented from automatically being mounted and which cant. The list specifies that /sys/fs/cgroup is always mounted automatically.
How do I use cgroups in fstab instead of default /sys/fs/cgroup from systemd?
1,698,408,682,000
I am attempting to mount a usb drive to a specific directory at boot time so that it's mapped to the same directory each time. I read this article, https://raspberrypi.stackexchange.com/questions/36824/automounting-usb-drive-on-boot, that says to add it to /etc/fstab proc /proc proc defaults ...
TL;DR: Remove umask=000 from your fstab entry. This is not a valid mount option for an ext4 filesystem. The umask option is only available on filesystems like FAT and NTFS that do not support Unix permissions. Additional details: The error you're getting indicates that system startup failed, but root isn't allowed ...
Mounting USB on boot causes error on boot on Pi4
1,698,408,682,000
I just upgraded my server to Debian Buster (Raspbian). However, when I now boot, my USB hard drives aren't mounting. I see something like the following on my splash screen: mount: /media/PiHDD: can't find UUID=<string> If I manually sudo mount -a, then all hard drives are mounted The following is /etc/fstab: proc ...
I looks like SysV is now poorly maintained. I moved to systemd and without any configuration change, my drives are now mounted on boot as expected. FWIW on Debian/Raspbian, I just did sudo apt-get purge sysvinit-core, which also automatically installed libnss-systemd and systemd-sysv.
mount -a works, but fails at boot with "can't find UUID"
1,698,408,682,000
I'm working with the DataDomain server in our Commvault solutions. Anytime this server is rebooted the network disk in use for the solution does not remount. Right now this means we need to stop some processes then run: boostfs mount -d datastore.company.com -s Commvault /cvdisk I didn't see a way to mount with fsta...
See page 37 of the BoostFS for Linux Configuration Guide. In there, you will see a section on using mount. For your environment, the mount command would be mount -t boostfs datastore.company.com:Commvault /cvdisk. In /etc/fstab terms: datastore.company.com:Commvault /cvdisk boostfs defaults 0 0
Automatically remount boostfs drive
1,698,408,682,000
we need to add disks on more then 100 redhat machines, therefore we need to update also the /etc/fstab on each machine the problem is that some machines configured with UUID and other with ordinary dev in fstab so I want to make a bash script that will identify the fstab configuration as the following in case fstab c...
You may have to define more precisely what counts as UUID configuration. If it is enough that a single volume is mounted via UUID then you can simply use if grep -q '^\s*UUID=' /etc/fstab; then : else : fi
how to identify UUID conf or ordinary dev conf from fstab
1,698,408,682,000
I have an internal backup drive (backup1) with fstab entry to mounts to /mnt/backup. Occasionally, I unplug this drive temporarily, connect another drive (backup2) and do a secondary backup. Once done, I'll remove backup2 drive, plug in backup1 drive, that brings my system to its usual state. My backup scripts are har...
This turned out to be a temporary issue. I was able to mount the drive in question to /mnt/backup after sometime. I couldn't attribute the resolution to any specific action from my side: I didn't alter fstab, didn't restart the computer. It should be a bug, if I'm able to reproduce the same situation, I'll try to coll...
fstab blocks mountpoint and prevents external drive from mounting
1,698,408,682,000
I'm trying to create an fstab entry for /dev/fd0 so that user can mount a floppy formatted either with VFAT or ext32. The simple fstab entry /dev/fd0 /mnt/floppy auto noauto,user,sync,gid=users,umask=000 0 2 can only mount DOS floppies. If I change the entry to /dev/fd0 /mnt/floppy ext2 noauto,user,sync 0 2 then I c...
From man 8 mount on Linux: If no -t option is given, or if the auto type is specified, mount will try to guess the desired type. Mount uses the blkid library for guessing the filesystem type; if that does not turn up anything that looks familiar, mount will try to read the file /etc/filesystems, or, i...
floppy fstab entry for vfat and ext
1,490,340,173,000
I have 3 nfs mounts that used to work but don't work from fstab any longer but do work on other servers. Also if I mount manually from said server they work mount Server:/backup01 /backup01 but in fstab, with flags, it is not working: Server:/nas/stage /u00/stage nfs rw,bg,hard,nointr,rsize=32768,wsize=3276...
I found the issue was with the TCP switch and found out that the backup server had been rebuilt and they didnt bind the ports, so all nfs connections were defaulting to UDP, as MOUNTD had picked up a blocked port. If you dont bind the ports when the machine is rebooted it will change the port for the below nfs compone...
Mount works manually but not in fstab
1,490,340,173,000
I have exported a handful of shares on my Synology - e.g. /volume2/Home_Data/Downloads On my CentOS7 box I would like to mount this and have it available for all users of the system. This works fine when I mounted to /mnt/nfs/ /etc/fstab entry diskstation.davis.local:/volume2/Home_Data/ /mnt/nfs/ nfs4 u...
go into the synology control panel and make sure NFS share is checked. And then prior to mounting it in CentOS, do a chmod -R 777 /mnt to make everything under /mnt read-write-execute for all. I have a few synology boxes and have them NFS mounted to my linux systems and they work well. This is for NFSv3. And if you...
NFS share mounting issue
1,490,340,173,000
I'm trying to mount my external hard drive automatically on my server running Ubuntu 14.04. I've tried editing /etc/fstab directly, I've tried GNOME Disks and I've tried ssbmount. None of them work after my server automatically resets every morning. My fstab file looks like this: # /etc/fstab: static file system infor...
To verify that you have your /etc/fstab set up correctly, the mount point exists, you're not relying on a disk manager to mount the drive for you, and you have ntfs-3g installed, can you try rebooting the server, then mount it with this command? sudo mount /mnt/ext/drive01
Auto-mounting external hard drive not working
1,490,340,173,000
I'm on Ubuntu server 11.10 (x86) and I basically ran into this problem as this: https://serverfault.com/questions/56588/unmount-a-nfs-mount-where-the-nfs-server-has-disappeared The umount command didn't work, so I tried to just use the ol' reboot. Now the machine gets an error when booting: FS-Cache:netfs 'nfs' regist...
I got into recovery mode and ran mount -o remount,rw / which allowed me to get rid of my bad NFS mounts in /etc/fstab (and I prevented further issues by adding the intr option to the NFS entries), but then my boot (in non-recovery) seemingly got worse -- I got no output on the screen after selecting normal boot from t...
Is a bad NFS mount preventing a clean boot?
1,490,340,173,000
I have a problem automounting my NTFS partition I use for storing Data (/dev/sdb2). I've tried adding an entry to /etc/fstab but it doesn't work. /etc/fstab # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=741be459-4010-4e6f-9ff3-928759f37131 / ...
Found a working way! Here is my line in fstab: device_uuid /media/Data ntfs-3g defaults,windows_names,locale=en_US.utf8 0 0 Doesn't show it in devices but mounts correctly. Also the mount folder must exist!
How to properly automount partitions? fstab
1,490,340,173,000
I am building Linux from Scratch to put on a usb drive but don’t know if Linux always calls the drive being booted from /dev/sda or not. I have two disks in the system, my SSD which is called /dev/sda in my Arch install, and my USB drive which is called /dev/sdb. Should my /etc/fstab file look something like this: ...
You should not use sda or sdb. While in practice it is likely that the internal disk will be recognized first and become sda, you don't know for sure. You may also come across a computer with two internal disks, and then sdb will be wrong. To identify your USB drive, use either the UUID or the label of the partition y...
Should I use /dev/sda or /dev/sdb in fstab when booting from USB?
1,490,340,173,000
I've created a remote mounted drive by adding this to my /etc/fstab: \\192.x.x.x\web /mnt/web cifs username=X,password=X,domain=X and mounting it with sudo mount /mnt/web (which works perfectly!) The problem is that I can only mount the drive as root. Running mount /mnt/web (without sudo) results in the error mount:...
UPDATE (see the discussion on the comments): You are typing \\ instead of //. For linux you must use // even if the network file system is running inside Windows. The old post: You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet so you need to write /mnt/web in /etc/fstab... ...
Mouting a remote drive with cifs
1,490,340,173,000
I'm trying to access the etc/fstab by the following command and getting the error. Bash command: sudo echo "swapfile none swap sw 0 0" >> etc/fstab Error: -bash: etc/fstab: No such file or directory Then when I trying to check the existence of etc/fstab by ls -l and getting it there. But why I got an error in the f...
Two issues here The file path needs the leading / here, so it should be /etc/fstab You'll then find that despite your sudo command you get a "permission denied" error. This is answered at Redirecting stdout to a file you don't have write permission on
No such file or directory. But it exists [closed]
1,490,340,173,000
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 took a lot of time to boot, I followed the steps of this post to make the boot process faster. But when I rebooted my mach...
Since your Kali installation is working, you can use it to access your Ubuntu installation in a chroot. To do this, run the following commands as root: mkdir /ubunturoot mount /dev/sda2 /ubunturoot mount -o bind /dev /ubunturoot/dev mount -o bind /dev/pts /ubunturoot/dev/pts mount -o bind /proc /ubunturoot/proc mount ...
Boot in emergency mode, incomplete /etc/fstab
1,490,340,173,000
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 directory) before the kernel reads fstab?
If you don't want journald's logs stored on disk then use the Storage=volatile setting in /etc/systemd/journald.conf - there's no need to mess around with mounting /var/log/journal as tmpfs. From man journald.conf: Storage= Controls where to store journal data. One of "volatile", "persistent", "auto" and "none". If "...
Can I mount `/var/log/journal` as `tmpfs`?
1,490,340,173,000
I have made an sshfs mount as follows (33 is the uid of the www-data). Listing the folders and files shows them as having read and execute access for www-data. But when my application running as www-data tries to access the mount I get a permission error. /etc/fstab example.com:/remote/folder/ /local/folder fuse.sshfs...
You need to add the allow_other permission to your sshfs mount declaration. Otherwise only the user who performs the mount can access it, even if the file permissions are correct. /etc/fstab example.com:/remote/folder/ /local/folder fuse.sshfs ro,uid=33,gid=33,allow_other 0 0 Source: sshfs mount, sudo gets permission...
Why can't www-data access an sshfs mount?
1,490,340,173,000
I am trying to: mount my 2TB external USB hard drive as my home directory at /home/peter ensure that the home directory is owned by me (not root) do all this automatically at bootup Currently: my drive is formatted to ext4 my drive is empty I am running debian 7 I can reformat to another filesystem type if necessa...
the solution was simply to chown the home directory after the mount took place: $ chown peter:peter /home/peter while using the following fstab settings: UUID=xxxx /home/peter ext4 defaults 0 2 this hadn't worked before with other fstab settings, but now /home/peter remains owned by peter each time i restart (previo...
fstab mount drive as my /home
1,490,340,173,000
I have a folder under /mnt/ with drwxrwxrwx permissions and under root:root I then mount a USB drive (exFAT) to this folder and it becomes drwxr-xr-x The issue is that now I cannot scp to that folder via WinSCP since there is no permission for group to write to folder, and I am unable to scp as root user. I am mountin...
ExFAT filesystems don't support Unix permissions. The Unix permissions are set at mount time. The ownership/permissions of the mountpoint (/mnt/USB) has nothing to do with whatever gets mounted over it. It's just a placeholder in the file tree. To fix it now, try: sudo mount -o remount,umask=0,dmask=0,fmask=0,uid=$(id...
Have drwxrwxrwx permissions on folder, but after mounting to it it becomes drwxr-xr-x which disalows members of the group to write. How do I fix it?
1,490,340,173,000
I have built a Debian linux machine. I have captured an 'image' of the entire hard drive in the form of a compressed tar file. I then unpack this onto another machine, setting up grub so that it can boot. The problem I encounter is that the disk UUID differs from that from the original and therefore, the disk is mount...
What can I do on the original machine BEFORE I capture an 'image' of it, so that when unpacked to another machine this problem is avoided? instead of the disk reference being mount by-name, do it by mounted by-label or mounted by-name # for example when mounted by-name it would look like this in /etc/fstab /dev/...
How can I prevent disk UUID mismatch when cloning a machine?
1,490,340,173,000
I have entered the following command: sudo mount UUID=17F30CD71ED138A1 -o gid=1000,uid=1000 ~/sandisk_external_drive It worked great, but now I'd like to mount it on boot, therefore I have added an entry into the table: /etc/fstab. the following entry is: UUID=17F30CD71ED138A1 /home/<my-user>/sandisk_ext...
You are mounting it as nfs filesystem, knowing that it's a local drive. Just replace nfs with ntfs : the correct drive format or filesystem type in your fstab.
Mounting an external SSD with user privileges using fstab
1,490,340,173,000
some times we noticed about conflicts in /etc/fstab file as the following example /dev/sdg appears twice ! /data/sdb appears twice ! # # /etc/fstab # Created by anaconda on Wed Nov 9 13:26:03 2016 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8...
awk ' !/^#/ { if (seendev[$1]++) { print; ++rc; } if (seenmnt[$2]++) { print; ++rc; } } END { exit rc }' < /etc/fstab The above awk one-liner will print any lines that duplicated column 1 (device) or column 2 (mount-point), and will also exit with a non-zero return code if the above occurs.
how to find conflicts in fstab file
1,490,340,173,000
I have a Virtual Machine setup on azure. I see basic disk was getting full so I attached disk to it and mounted /home/user/mydata folder to the new disk. I forgot to add configuration in fstab. My VM got restarted recently and after restart, I did manual mount but disk is not freeing after mount command. /dev/sda1 ...
Mounting a disk over /home/user/mydata does NOT remove anything from the existing /home/user/mydata. It just 'covers up' the directory with the other disk. If you want to reclaim the disk space from /home/user/mydata, you need to manually delete/move those files to the new disk before mounting.
Disk space full not changing after mount folder on other disk
1,490,340,173,000
I have a dual boot system (Windows 10/Archlinux) and I have created a NFTS partition which is mounted at startup via /etc/fstab so I can access it from both OS'es. The fstab file shows that the partition is mounted with read and write permissions (rw) with user_id=0 and group=0, both values related to the root user, f...
As Chris Davies said in the comments section, the answer is in man ntfs-3g, in the Access Handling and Security section, to be precise. I could do ntfs-3g -o uid=1000,gid=1000,umask=700 /dev/nvme0n1p6 /mnt/Contenido/ to get my regular user as the owner. I don't know if it is worth mentioning, but it is important to re...
Files created by user in a mounted partition show root as owner
1,490,340,173,000
I am having an issue where I can mount my disks manually using the mount command. I than add the disks to fstab. Once I restart: sda1 points at the correct mount point (/mnt/da), but the rest do not. Please help, I am out of ideas. Server setup: 2 x nvme drives in software raid1 10x 16tb drives without raid, stand a...
The device ID's are not guaranteed to be consistent across reboots... you are using wrong vocabulary. There are 6 ways to mount disks in linux, as shown under /dev/disk; this is using RHEL-7.9... by-id/ by-label/ by-partlabel/ by-partuuid/ by-path/ by-uuid/ by-id is a scsi identifier or wwn (world-wide-number) ...
Disks mount points inconsistent after each reboot. Using UUID in fstab
1,490,340,173,000
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 know the answer, please tell me where you learned it yourself so that I can inform myself better before coming to this for...
When Linux boots, does it first read fstab and mount everything from it, or does it start systemd before that? Systemd is what mounts everything from it. Linux on its own doesn't know what fstab is; it lets the init system handle the entire system bringup. Usually the init system will start essential services first,...
Which comes first, fstab or /var/log?
1,682,801,791,000
when I use lsof as regular user, I get following warnings: lsof: WARNING: can't stat() tmpfs file system /home/testuser/.cache testuser is another user on my systems, and my own user has no access to the tmpfs filesystem mounted at /home/testuser/.cache. I suspect, lsof found in /etc/fstab (or in /proc/mounts) that t...
You can disable warnings with -w: lsof -w
lsof: WARNING: can't stat() tmpfs file system
1,682,801,791,000
I have a inotify-based service that backs up my LAN's git directory to the Dropbox. I tried keeping the git directory in the Dropbox but I have multiple git clients so often get error files there. In this early stage of development, this is a fairly busy and chatty system service that wants to log to a ram drive. I d...
On Arch, at least, systemd mounts generated from /etc/fstab are deployed to /run/systemd/generator For example on my system, with the listing below I can add to my service file [Unit] Description=backup logging to temp After=mnt-ram.mount ls -la /run/systemd/generator :> ls -la total 32 -rw-r--r-- 1 root root 362 J...
systemd service to start after mount of ram drive
1,682,801,791,000
I've tried to mount my new partitions by editing /etc/fstab, but error appears. When I try to do it by mount command, all works fine and I can mount them. What's wrong? # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= a...
You have typo in the options, it's defaults for the default set of mount options, not default. There's no such option default so mount fails because of that. Note, if you see similar error from mount in the future, you should always check the log, kernel will print additional information, in this case you should see s...
I can't mount partitions via /etc/fstab, the error appears
1,682,801,791,000
Let’s give some context to the issue: There is /foo/bar directory in read-write mode There is /bar bind mount that points to /foo/bar In /foo/bar there is bar directory that has to be in read-only mode (both /foo/bar/baz and /bar/baz) In order to make /foo/bar/baz be read-only I do this another bind: $ sudo mount -o...
The explanation part is perfectly covered in aviro’s answer: https://unix.stackexchange.com/a/689950/513617 I found a good solution that doesn’t add any extra read-write mounts. It’s remount option. mount -o bind /foo/bar /bar mount -o bind,ro /foo/bar/baz /foo/bar/baz And then take the existing read-write /bar/baz p...
Linux: How to preserve read-only mode for layered bind mounts
1,682,801,791,000
I am on Linux Mint 20, and I used the Disks GUI in order to mount my 4 NTFS partitions to their mount points. They are mounted indeed, and I can create or delete (no rubbish bin though, complete deletion only) files, but everything is owned by root, and I'm not able to change the permissions. I have searched about thi...
If you want specifically you to be the owner, try replacing nosuid with gid=<group id>,uid=<user id>. If you're the only user, the gid and uid are both likely to be 1000. You can check both by calling id. NTFS doesn't have directly UNIX-compatible permissions, so when you mount an NTFS partition, I believe it takes on...
Mounted partition has the wrong owner
1,682,801,791,000
I mounted a new ext4 storage volume to my server after I had already installed an application that primarily uses /home. This application needs to take advantage of the additional storage, so I want to remount the volume so that it's used by the /home directory. Can anyone confirm my steps below? umount -v /mnt/volume...
I assume that /mnt/volume_nyc1_01 is the mountpoint for the new ext4 volume. There is a line in /etc/fstab in which this volume is mounted on /mnt/volume_nyc1_01. The steps you mention are not technically wrong, but if you follow them, you'll end up having an empty /home directory - since it's a new ext4 fs only lost+...
Remounting /home in a new volume
1,682,801,791,000
I’m a semi-experienced Linux admin who’s trying to figure out how to automount an external hard drive to my Linux box. (ver 2.6.16.13-4-smp) (Its an older box, I know.) I can manually mount the drive just fine: me@linux:/> mount /dev/sdc1 /media/Seagate me@linux:/> meaning I want to mount the device located at /d...
check your /etc/fstab file. The last number on each line is fs_passno. If that is set to 1 (true) then it is required for a successful boot that fsck run and successfully complete on the given device.. If you have that /dev/sdc1 line in your /etc/fstab with the last number on that line a 1 then that device needs to...
fstab prevents successful reboot, how to automate mounting external HD?
1,682,801,791,000
I'm trying to set up an sshfs mount in fstab for persistent mounting of a network directory that has to be accessed via an ssh tunnel. my .ssh/config looks like this: Host A Hostname outer.server User <user> IdentityFile /home/<user>/.ssh/id_rsa ForwardAgent yes Host B Hostname inner.server Us...
The root does not see your per-user ssh configuration file. You need to place it in the root home directory (/root/) or into the system-wide configuration file in /etc/ssh/ssh_config, assuming the authentication key is not encrypted (does not have passphrase). You can also save a lot of trouble by throwing away the ne...
sshfs in fstab connection reset with ssh tunnel in ~/.ssh/conf when 'manual' command works fine
1,682,801,791,000
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 with uid=1000 is the first user I've created when I installed Ubuntu. Its username is "laura". # <file system> <mou...
The filesystem to be mounted on /backup is declared of type ext4. There is no mount option uid= for Ext4 filesystems. Either the filesystem is not Ext4, and in this case the 3rd field of the fstab entry needs to be changed to reflect the correct filesystem type, or The option uid= needs to be removed.
Can't enter in Ubuntu because fstab error
1,682,801,791,000
today we notice about very strange issue the following partition ( from /etc/fstab) defined with "2" in the end of the line that means that fsck will be activate during boot since the data on that partition is 24T that means that reboot should be take around couple hours or more but reboot actually takes 4 min !!! f...
according to man fsck.xfs XFS is a journaling filesystem and performs recovery at mount(8) time if necessary, so fsck.xfs simply exits with a zero exit status. as man suggest try xfs_repair There is no need to fsck as recovery is performed at mount time.
fsck not performed during boot in spite fstab configured correctly
1,682,801,791,000
I have an ubuntu server. Via cloud-init I make partitions. When I restart my server, it would not come up again. I am sure I miss one command to tell the system which partition should be used for booting. Before partitioning the sda1 was the boot disk and a mbr. cat /etc/fstab root@source ~ # cat /etc/fstab # <file sy...
I see you have changed the partitioning type from MBR to GPT. Is your firmware in legacy/CSM/BIOS mode, or did you also change the firmware type to UEFI? In any case, you will need to reinstall your bootloader. If you are using BIOS mode (not UEFI), you will need to add a GRUB BIOS boot partition, because the sectors ...
How to boot after partitioning
1,682,801,791,000
In my Fedora I have some additional HDD with partition mounted as /media/dilnix/data witch contains the most of my huge files sorted in folders like "Music", "Downloads", "Video" etc. Those folders are targets for my symlinks in home folder. Like /home/dilnix/@Video to /media/dilnix/data/Video /home/dilnix/@Downloads...
From man mount, the user mount option implies `noexec: user Allow an ordinary user to mount the filesystem. The name of the mounting user is written to the mtab file (or to the private libmount file in /run/mount on systems without a regular mtab) so that this same user can u...
Why permission denied from folder that is a symlink of a home's subfolder?
1,682,801,791,000
I have several external harddrives that I want to mount to the same point: /media/ext_hd So I have this in my fstab: # EXTERNAL HDS LABEL=Elements /media/ext_hd ntfs-3g defaults,user,noauto 0 0 LABEL=olddata /media/ext_hd auto rw,user,noauto 0 0 LABEL=Seagate%202T /media/...
As far as I'm aware mount doesn't scan past the first match. One thing you could do (should consider?) is to set-up udev rules that create the same symlink for all your NTFS disks under /dev ... then a single line in fstab will do for any/all of them.
Will mount search fstab for a best match?
1,682,801,791,000
I've have both Ubuntu and Arch installed on my computer, and want to change the labels of the / and /home partitions (four in total), to make it clear which is which. Can this potentially break anything? The only thing that I can think of is /etc/fstab; this shouldn't be an issue in my case, since it defines partition...
Hard drives usually don't have labels, it's filesystems that do. Here are the main places where a filesystem label is likely to come up: In /etc/fstab. In your bootloader configuration (e.g. /boot/grub/grub.cfg). If your Grub configuration is automatically generated, run update-grub after changing your labels and ver...
Is there any danger in changing the labels of my hard drives?
1,682,801,791,000
I have a fstab with read-only root-fs and also a rw /var mounted on a USB reader with a µSD in it. Sometimes at boot time system fails to mount /var.  It looks like the system cannot find the partition on the µSD.  My best guess is that the USB reader might be failing or not being enumerated in time.  In this case, th...
The emergency shell is started by the emergency.service unit. If you want different behavior, you can override the ExecStart value for this unit by placing an override file in /etc/systemd/system/emergency.service.d. E.g. something like: mkdir -p /etc/systemd/system/emergency.service.d cat > /etc/systemd/system/emerge...
Force reboot if `fstab` mount fails instead of going to emergency mode
1,682,801,791,000
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 continue. In RHEL 8.8 I have that entry in /etc/fstab but I have that disk manually removed from the system. Redhat firsts ...
Yeah, add ,nofail to mount options.
RHEL 8 hangs on boot missing disk in fstab
1,682,801,791,000
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 to my system drive instead to the configured hard drive. I noticed it when my hard drive was full, while I just starte...
Unmount the filesystem in question (this one you make mistake with the type) and check under the mountpoint. With high probability the files are there (under the mountpoint). And they use diskspace and you can't find them (kind of hidden)
data occupying space but cannot be found
1,682,801,791,000
How should I configure fstab to mount a specific file only? The file is in a directory which contains other directories and files, besides the file I intend to mount.
you don't mount files, you mount filesystems on directories. So, what you want isn't possible. You can mount the whole filesystem containing the file somewhere else, and use e.g. a symbolic link (as created using ln -s) to "alias" it into the place you want to have it. (this still sounds like a bit of a "strange" prob...
How to configure fstab to mount a specific file only? [duplicate]
1,682,801,791,000
I just installed the newest version of Manjaro ARM on an sd-card for my Raspberry Pi 4. Now I am trying to mount two directories located on my Synology NAS permantly (via network of course) using the fstab. On all my other system (including older Manjaro-versions), this works with the very same two lines in my fstab (...
Somehow, NetworkManager and systemd-networkd were both running, so that they were blocking each other somehow, and therefore a two minute timeout of systemd-networkd had to end before the fstab was executed. This also explains why a network connection was there all the time. Turning off the networkd service and sticki...
fstab mount is delayed
1,682,801,791,000
I've been working through these two tutorials, in the hopes of setting up a Raspberry Pi to run Owncloud and Resilio Sync in tandem. First, I installed Owncloud and gave it access to a mounted external HDD as recommended in the guide, and it works, but trying to "merge" privileges for the external HDD so that both it ...
Change the fstab to ...gid=www-data,umask=0007,dmask=0007... to allow group access to the drive. Read man umask. Then, add user pi to the www-data group: sudo adduser pi www-data. Read man adduser. Logout and login - groups are set up at login time.
How to share an fstab'd external HDD between users "www-data" and "pi"?
1,682,801,791,000
Can multiple instances of Unit= exist in a systemd.path or systemd.timer unit? Or, must one instead specify multiple instances of the path or timer unit, each with a single instance of Unit=? I haven't been able to find or derive any guidance elsewhere. The former obviously is easier. The specific application is to ...
man systemd.timer says: Unit= The unit to activate when this timer elapses. The argument is a unit name, whose suffix is not ".timer". If not specified, this value defaults to a service that has the same name as the timer unit, except for the suffix. (See above.) It is recommended that the unit name that is activated...
Multiple Instances of Unit= in Path or Timer Unit?