date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,346,289,248,000
While seeing the manual for swapon command the priorty option is described as -p, --priority priority Specify the priority of the swap device. priority is a value between -1 and 32767. Higher numbers indicate higher priority. See swapon(2) for a full description of swap ...
man 2 swapon describes priorities thus: Each swap area has a priority, either high or low. The default priority is low. Within the low-priority areas, newer areas are even lower priority than older areas. All priorities set with swapflags are high-priority, higher than default. They may have any nonnegative value ...
What is swap priority and why does it matter
1,346,289,248,000
On my Ubuntu system, I noticed that some file managers, when open, they can mount any drive that was connected via one of my USB ports (as non-root). In the attempt of preventing this from happening I configured my /etc/fstab like so: # <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/v...
The solution to question 1) is found here: https://askubuntu.com/questions/1062719/how-do-i-disable-the-auto-mounting-of-internal-drives-in-ubuntu-or-kubuntu-18-04 Basically, turn off udisks2. systemctl stop udisks2.service and then test, and do it permanently: systemctl mask udisks2 This will prevent "normal" users...
How do I whitelist drives / partitions that can be mounted to only those that have entries in /etc/fstab?
1,346,289,248,000
Adding /dev/sdb1 /home/[user]/external_drive ntfs defaults,noatime 0 2 to /etc/fstab auto-mounts external drive after machine start/reboot. However, if additional usb drive was plugged in during the reboot, sometimes it is /dev/sdb1 and it becomes accessible at /home/[user]/external_drive after the reboot. Is there a ...
Don't use /dev/sdb1 which is not a unique identifier (sdb1 will always be assigned to the first partition on second disk you plug in and during boot the order will be random with multiple plugged in external drives), use UUID instead (UUID is unique for every filesystem, so only the "right" device will be mounted to y...
Consistent auto-mount of external hard-drive
1,346,289,248,000
Is there something wrong with my mounting? //192.168.1.150/Drew /media/Cloud cifs auto,credentials=/home/drew/.credentials/smb,_netdev,uid=drew,gid=drew,rw 0 0 When I run sudo mount -a the drive is mounted, no issues. But, the drive will not automatically mount when the system boots up? uname -a Linux drew-desktop 4....
I had to enable the service that automounts network drives as @Ignacio Vazquez-Abrams said. The details are here. sudo systemctl enable systemd-networkd-wait-online
Fstab not automatically mounting SMB storage?
1,346,289,248,000
In my PC running Ubuntu 12.04 LTS I have installed three SATA hard drives. Two of them are installed near a cooler. I want to physically switch two drives (one that is not near the fan should be moved near the fan). How would Ubunutu deal with the switch? The device names in fstab, are they in any way relying on the s...
The UUIDs don't change when you reorder the drives. However, your sdc? entries might change. It's best practice not to rely on the sd? numbering. Better use UUIDs or LABELs to address your partitions. Find the UUID or LABEL as root: blkid -o list -c /dev/null Change the entries Change the entries that use the /dev/sd...
HDD allocation fstab
1,346,289,248,000
I'm looking to map my /home folder to a different location/drive on the machine. When I view the fstab file I see the following: /dev/mapper/cl-home /home xfs defaults 0 0 /dev/mapper/cl-swap swap swap defaults 0 0 /dev/sda1 /mnt/store/hd2 ntfs defaults,aut...
In /etc/fstab, the first column is a volume location and the second column is a directory. The directory is the mount point, i.e. where the files will be accessible. The volume location indicates where the files are stored; there are different types of locations depending on the filesystem type. For a “normal” filesys...
Mapping the home folder to a different location in fstab
1,346,289,248,000
In my current setup, I have a RAID0 array of 2x3TB HDDs with btrfs, two partitions: / /home Under the /home directory, there are two users, both admin, one of which is myself. So far, this setup is working out pretty nicely, although btrfs is fairly slow. I recently acquired a pretty nice 500 GB SATA HDD. I'm going...
Method #1 Try a line like this in /etc/fstab: UUID=XX /home/user/extradrive ext3 rw,noauto,user,sync 0 2 Method #2 Examples are also shown using UID/GID too: UUID=XX /home/user/extradrive ext3 rw,exec,uid=userX,gid=grpX 0 2 NOTE You can also override when doing the actual manual mounting like this...
How can I mount a drive under my home directory at boot?
1,346,289,248,000
I have an NFS mount in fstab: 10.0.12.10:/share1 /net/share1 nfs rw 0 0 which defaults to root as owner and group and 777 permissions. How do I specify another owner and different permissions? I can use chown and chmod, but it certainly should be possible straight from the mount command? The system OS ...
It isn't possible from the mount command, because mount has to handle a variety of different filesystem types - including ones that might not support 'classic' ugo unix style permissions. You are "stuck with" chown/chgrp/chmod. (Where applicable). Bear in mind the server has permissions on its own filesystem. It ma...
How to specify owner and permissions for an NFS mount?
1,346,289,248,000
I have a backup script that mounts and unmounts a USB drive. I just noticed that its warning me: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended My question: How can I get it to run e2fsck automatically when the mount command is run? This is how it looks in /etc/fsck UUID=c870ccb3-e472-4a3...
According to man fstab: The sixth field (fs_passno). This field is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time. The root filesystem should be specified with a fs_passno of 1, and other filesystems should have a fs_passno of 2. Filesystems within a drive...
Run fsck automatically when calling mount from command line
1,460,513,809,000
I am encountering a problem in which mounting a remote CIFS server without an fstab entry works, but mounting through fstab does not. The following command works: $ sudo mount -t cifs //w.x.y.z/Home$ /mnt/dir -o domain=A,username=B,password='C',sec=ntlmssp,file_mode=0700,dir_mode=0700 However, if I instead add the fo...
When you type the mount command, the part password='C' is first handled by the shell and becomes password=C before it gets to the mount command. This is not done with fstab entries, so you must remove the single quotes. If your password contains special characters you can replace them by their octal code, in particul...
mounting a CIFS filesystem directly or via fstab
1,460,513,809,000
I have a debian server where I need to auto-mount a Samba share during startup. I did the following: Added the following line to /etc/fstab: //192.168.1.1/FRITZ.NAS/WD-1600BEVExternal-01/share /srv/nas cifs credentials=/home/rlommers/.smbcredentials,rw,uid=rlommers,gid=rlommers 0 0 This works with...
You are hiting a known systemd "feature"; on top of it, the system might be trying to mount the remote SAMBA share before networking is operational. Modify your fstab to to add to the mounting options ,noauto,x-systemd.automount,_netdev //192.168.1.1/FRITZ.NAS/WD-1600BEVExternal-01/share /srv/nas cifs credentials...
Debian server, auto-mount Samba share
1,460,513,809,000
The man page for fstab has this to say about the pass value: Pass (fsck order) Fsck order is to tell fsck what order to check the file systems, if set to "0" file system is ignored. Often a source of confusion, there are only 3 options : 0 == do not check. 1 == check this partition first. 2 == check this partiti...
The answer is.. it depends, but probably not. TL;DR if you use systemd, non-zero pass numbers will be checked in the order in which they appear in fstab. If not systemd, pass numbers will be checked sequentially in ascending order and values higher than 2 can be used. On most distributions of linux, the fsck binary ...
Can I use a pass value higher than 2 in fstab?
1,460,513,809,000
I have this fstab entry : LABEL=cloudimg-rootfs / ext4 defaults,noatime,nobarrier,data=writeback,rw 0 0 I added rw to see if would fix my issue but it wont. After boot I get a read-only file system that I can't fix either using common results found on google. Useful output. There are no errors with dme...
Instead of setting it late in the fstab, why not use tune2fs to make it the default for that filesystem: tune2fs -o journal_data_writeback /dev/sdXY Do this once then reboot.
Adding data=writeback to a ext4 fstab entry, results in read-only filesystem
1,460,513,809,000
I'm using Pop!_OS (Based on Ubuntu/Elementary OS). I've got swaps that are mounting at boot that aren't present in fstab. Because I've deleted those partitions, the entire boot process has to wait an unnecessary minute and a half for it to find the swaps with those UUIDs. Any tips to remove it? EDIT: As per comment re...
Swap activation usually happens early in the boot process, while the system is still running on initramfs. If you haven't updated your initramfs after removing the swap partitions from your /etc/fstab, there might still be a copy of the old fstab embedded within the initramfs, and that probably triggers the unnecessar...
Why do swaps that aren't in fstab attempt to mount at boot
1,460,513,809,000
I have a Debian 11 that i was using LVM for data only, i did the following commands: mount /dev/srv-vg/lv-data /mnt/data vi /etc/fstab /dev/srv-vg/lv-data /mnt/data ext4 defaults 0 0 The mount command worked pretty well, the folder works just fine but after adding the fstab line when i reboot i get the following erro...
Boot from external hard disk or USB stick, change back /etc/fstab. Alternatively, take out hard disk, attach it to another computer, mount, edit /etc/fstab. And I second the comment to add nofail for non-essential mounts.
Cannot open access to console, the root account is locked
1,460,513,809,000
Currently using Debian 9.5 with this fstab file: # /etc/fstab: static file system information. # /dev/mmcblk1p1 / ext4 noatime,errors=remount-ro 0 1 tmpfs /var/volatile tmpfs defaults,x-mount.mkdir 0 0 Now, if the folder /var/volatile doesn't exist, it will be created (x-mount.m...
After exploring systemd, I stumbled upon a greet discovery. It turns out there is no need to create a custom service to deal with this as systemd already provides a solution for this purpose: systemd-tmpfiles. It is a structured and configurable method to manage temporary directories and files. https://www.freedeskto...
Mount a tmpfs folder on startup (volatile) with a created subfolder
1,460,513,809,000
I made a partition like /part on my machine with some important data... But I can't stand the name of it... I want a clear solution to resolve it and change the name of it to for example /test... As you see this is my /etc/fstab information: # /etc/fstab: static file system information. # # Use 'blkid' to print the un...
Unmount the partition: # umount /part Rename the directory after making sure it's not mounted: # mountpoint /part &>/dev/null || mv /part /best_name_ever Edit /etc/fstab to replace /part with /best_name_ever Remount the partition: mount /best_name_ever The # is of course meant to represent your root prompt, not a...
How to rename /dev/sdax(partitions) in Linux
1,460,513,809,000
Here you can see two devices are mounted as root: $ df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 29221788 18995764 8761244 69% / udev 10240 ...
This is a side effect of how the debian initramfs operates. Initially the kernel creates a tmpfs for the root, and unpacks the initramfs, which is a compressed cpio archive, there. The programs and scripts in the initramfs mount the real root device and then chroot there. Simply ignore the first entry that lists th...
Why rootfs is mounted multiple times?
1,460,513,809,000
This is a followup to another question. I figured out something is unmounting my device right after I mount it. This device is being used by a database (Vertica), which is down and not using the directory while I'm running the mount command. I'm trying to figure out: Is systemd the one which unmounts the device? How ...
Ok, that was in interesting debugging experience... Thanks Filipe Brandenburger for leading me to it! Is systemd the one which unmounts the device? Yes. journalctl -e shows a related message: Aug 01 16:55:19 mymachine systemd[1]: Unit vols-data5.mount is bound to inactive unit dev-xvdl.device. Stopping, too. Appa...
How to check whether systemd is unmounting my device? (and why?)
1,460,513,809,000
I have a desktop PC running Arch Linux that during inital installation only used a 120GB SSD for / and no other partitions. I have just recently added a 500GB HDD that I want to mount as /home to give me added storage, avoid future issues with compiling on an SSD, and help with easier upgrades in the future if I ever ...
Create a temporary Home folder blkid This will display the UID of all the partitions. Record the UUID of the dd Open a terminal and type the following: vi /etc/fstab and add the following line to the end of the file. UUID=xxx-xxxxx-xxxxx /media/home ext4 nodev,nosuid 0 2 save and exit Nex...
Adding new hard drive as /home after installation
1,460,513,809,000
I’m running jessie/sid with systemd 208 and try to convert the following wildcard autofs configuration to either an /etc/fstab or .mount/.automount definition. $ cat /etc/auto.master /home/* -fstype=nfs homeserver:/exp/home/& (homeserver runs a Solaris with each subdirectory in /exp/home/ being a separate share.) Is ...
I suppose no. The .mount/.automount unit name has to be equal to the mount path, escaped with systemd-escape --path. And the only way in systemd to instantiate units is "template syntax" of a form [email protected]. Hence it is at least not possible to have a dynamically instantiated mount unit. Just use autofs. syste...
Wildcard automounts with systemd
1,460,513,809,000
Due to some complex requirements, I had to put the following two lines in /etc/fstab: /dev/xvdg1 /srv/storage ext4 $OPTIONS1 0 2 /srv/storage/dir /var/opt/dir none bind,$OPTIONS2 0 0 Now my question is: Do I have to re-list all mount options $OPTIONS1 in $OPTIONS2, or will the second line (the bindmo...
The short answer is "maybe", because it depends on which option you're passing, and what it is enforced by. If the options you are passing are strictly superblock flags, you don't need to relist the options as part of the bind mount. If the options you are passing contain a vfsmount flag, then yes, you need to relist ...
mount options for bindmount
1,460,513,809,000
I am using archivemount to mount one of several tar.bz files in Ubuntu. It works very nicely for me. I mount and umount frequently (I'm in a testing phase). I want a solution that will allow me to umount without typing in my password. Here's my current script: ARCHIVE=$(zenity --file-selection --filename=/share/); arc...
archivemount is a fuse-based system (like sshfs, among others), so you can unmount it as a regular user (at least the one who mounted it) using fusermount -u /media/Archive
I need an fstab example for archivemount (want to umount without my password)
1,460,513,809,000
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 0 0 UUID=735cb76a-51b5-4e06-b6fb-3b9577e38dc5 /boot xfs defaults 0 0 /dev/mapper/VG100-l...
First tell sed to print lines which contain boot, then tell it to delete lines which contain UUID, separate expressions with ; sed -i '/boot/p;/UUID/d' /etc/fstab Since the print expression was given before delete expression, line which contains boot will be printed, before the lines with UUID are deleted, if you wou...
How to delete all UUID from fstab but not the UUID of boot filesystem
1,460,513,809,000
I have Windows and Arch Linux in dual with UEFI. I want to mount my another NTFS partition in Arch. I mounted the partition with mount /dev/sda5 /mnt/Apps command. Then added the output of genfstab -U /mnt/Apps in /etc/fstab file. The output is as follows: UUID=01D158CC7C2A61A0 /mnt/Apps ntfs rw,nosuid,nodev,user_id=...
As commented by muru from this answer, I have added the fmask and dmask permissions in /etc/fstab and now it shows correct permissions. I have change that line as follows: UUID=01D158CC7C2A61A0 /mnt/Apps ntfs rw,auto,user,fmask=133,dmask=022,uid=1000,gid=1000 0 0 This sets all files 0644 and directories 0755 permissi...
What is the correct permission in /etc/fstab to mount NTFS?
1,460,513,809,000
I am using Arch Linux. I have three functioning RAID arrays via MDADM: ~ cat /etc/mdadm.conf ARRAY /...
The UUID seen in mdadm.conf are related to the MD drivers. The UUID used in fstab are related to filesytems. What you need are the filesystem UUID numbers. You can get them with a command line sudo dumpe2fs /dev/md0 | grep UUID So in my case: $ grep md/0 /etc/mdadm/mdadm.conf ...
MDADM: automount only works with dev, not UUID
1,460,513,809,000
I have Linux Mint installed on and booting from an LVM drive with two physical disks in the volume group (1TB each). I have purchased a new hard drive (4TB) and I would like to clone the whole thing and get it booting from the new disk. I'm really struggling to find instructions for this procedure when the root file s...
I have been messing about with this for days now so I figured I should post my solution for anyone else that is having a similar problem. Here is how to clone your Mint installation to a new 4TB disk when installed on an LVM spanned across 2x 1TB disks: Useful links: Clone an LV Rename LV and VG Delete LV and VG LVM ...
Trying to move Linux installed on LVM over to new disk
1,460,513,809,000
For the project SamplerBox, up to now I was using /dev/sda1 /media auto nofail 0 0 to have USB flash drives automatically mounted when inserted on the headless computer, see also Auto-mount and auto-remount with /etc/fstab. But this seems not very reliable, for example, when an USB flash drive is removed, and then re-...
Based on @FelixJN's comment, I slightly modified this excellent guide by Andrea Fortuna according to my needs and here is the solution: Create a file /root/usb-mount.sh containing this (and add +x permission): #!/bin/bash ACTION=$1 DEVBASE=$2 DEVICE="/dev/${DEVBASE}" MOUNT_POINT=$(/bin/mount | /bin/grep ${DEVICE} | /...
USB flash drives automatically mounted (headless computer)
1,460,513,809,000
I have a filesystem on flash using jffs2. I would like to mount this filesystem read-only, except for a single folder that I would like to be writable. Is this possible without resorting to something like unionfs and the likes?
You can use a bind mount, although they are a bit finicky about permissions requiring you to mount and then remount the directory to get the correct permissions. The man page of mount suggests: mount --bind olddir newdir mount -o remount,rw newdir however on my Arch system I need to do mount --bind olddir newdir moun...
Make part of read-only filesystem writable
1,460,513,809,000
I am not able to mount the disk. It is showing error. Error mounting system-managed device /dev/sda3: Command-line `mount "/media/tusharmakkar08/Local"' exited with non-zero exit status 1: [mntent]: line 1 in /etc/fstab is bad mount: can't find /media/tusharmakkar08/Local in /etc/fstab or /etc/mtab Output of sudo b...
You can use \x20 for space. That is hex value for ASCII (and utf-8 encoded) space. Or you can use the octal variant \040. So that would be (in fstab): UUID=01CD72098BB21B70 /media/tusharmakkar08/Local\x20Disk1 # or UUID=01CD72098BB21B70 /media/tusharmakkar08/Local\040Disk1 If you are not to familiar with ASCII fun in...
Error mounting drives
1,460,513,809,000
I am trying to mount an exfat drive using fstab with read/write permission for both user and group. The line of etc/fstab for this drive is: UUID=5E98-37EA /home/ftagliacarne/data/media exfat defaults,rw,uid=1000,gid=1001,umask=002 0 1 Using these option the drive gets mounted to the correct location to the correct u...
chmod and chown will not work for mounted fat32, exfat and ntfs-3g, period. What you're looking for is dmask=0002,fmask=0113.
ExFat mount permission
1,460,513,809,000
The box is a HP microserver, running Ubuntu 16.04. I recently "upgraded" the boot device to a 64GB SSD. Additionally there is a 1TB SATA drive. usually it boots up with /dev/sda1 as the primary partition (on the SSD) and /dev/sda5 as swap, and /dev/sdb1 pointing to the partition on the 1Tb HDD, that is mounted to /mnt...
You could use the "disk/by-id" names in /etc/fstab, see ls -l /dev/disk/by-id Note that these device names may be also used in other files (initrd, grub configs). So you may update your grub config and re-recreate initrd too.
sda and sdb keep on swapping
1,460,513,809,000
The situation is as follows. I have a Linux partition on a primary drive (modestly-sized SSD, and sharing it with Windows). I have another Linux (ext4) partition on a hard drive. It is permanently mounted in /etc/fstab. I don't want to make a swap file on a root drive to save space. Thus I want to make a swap ...
In your case the /etc/fstab entry and preceding steps for a swap file looks like as follows. dd if=/dev/zero of=/mnt/<UUID>/swapfile bs=1M count=512 mkswap /mnt/<UUID>/swapfile chmod 600 /mnt/<UUID>/swapfile echo "/mnt/<UUID>/swapfile none swap defaults 0 0" >> /etc/fstab So the entry in the /etc/fstab should look li...
How should an entry to fstab be formulated for a swap file that is not situated on a primary drive?
1,460,513,809,000
I'm installing a system on SSD with LUKS and Btrfs, where should I enable discard option for TRIM support? Only /etc/crypttab, only /etc/fstab, everywhere, or nowhere since Btrfs detects SSDs and enables TRIM support? I also use LVM, shoud I somehow change configs to activate TRIM support for LVM too? P.S. I know abou...
For TRIM to work, it has to be enabled on all layers. The first step therefore is to enable it in LUKS as LUKS normally disables TRIM due to the security implications. For some distributions you do this in the crypttab, for others you need to edit the cmdline. Since LVM is the next layer on top of LUKS it needs to pas...
Where should I enable discard option?
1,460,513,809,000
so that it appears in Thunar's sidebar under the name 'Schijf-2'? I am running linux mint13 xfce and this has been a headache causer for the last couple of days. the UUID of this partition is: this is the output from blkid: /dev/sda2: UUID="913aedd1-9c06-46fa-a26e-32bf5ef0a150" TYPE="ext4" How should I enter this in f...
By default, if your fstab entry is: UUID=913aedd1... /media/Schijf-2 ext4 rw,relatime 0 2 your partition will not be shown as Schijf-2 in your sidebar, unless it is labelled Schijf-2. You have two options: Leave the fstab entry as is and label your partition (e.g. if sda2 is your partition): e2label /de...
how should I mount my ext4 partition in fstab
1,460,513,809,000
what is the best approach to check all mount point are mounted according to fstab file my target is to check that all mountpoint as defined in fstab are really mounted what is the command for this ?
mount --fake --verbose --all For currently mounted devices the output will contain "already mounted". Options explained (for exact details see man 8 mount): --fake: mount command will not actually mount anything --verbose: provide detailed output --all: mount all devices listed in fstab
check all mount point are mounted according to fstab file
1,460,513,809,000
Suppose I start with a non-btrfs system and then add a secondary drive that I format as btrfs. How would I mount /var/log on a subvolume of the new drive instead of on the original drive? Is this even possible? I've created the fs and the subvolume 'log' on it, but no syntax I try gets it to mount.
It turns out that you just have to specify the id of the subvolume. To find it, do # btrfs subvolume list <path to btrfs drive/fs> For fstab, the line will be very similar to the line for the btrfs drive in general, but with the subvolid option set. Mine looks like this since I'm using LVM: /dev/mapper/ubuntu--vg-vmd...
How do you mount a specific btrfs subvolume?
1,460,513,809,000
I need to create /dev/shm on an embedded ARM system. From "Installed The Latest Changes to Current and......". I see that it can be created with mkdir /lib/udev/devices/shm, but I'm wondering what is supposed to be at that location? The only directory I have at that location is /lib/modules/, there's no devices/ or ...
An embedded system may have a static /dev, rather than use udev to populate it. If you don't have /lib/udev, then presumably your system isn't running udev. In that case, you need to create /dev/shm on the root filesystem. If the root filesystem is an initramfs, rebuild your initramfs with an extra line in the initram...
can not create /dev/shm
1,593,417,547,000
I mount successively two points using fstab in my linux system # Mounting apps drive UUID=c54ca7da-117d-4cb2-8897-019ba4f6f12d /media/user/apps ext4 defaults 0 2 # Mounting opt based on apps mountpoint /media/user/apps/opt /opt none bind As you can see, the second mountpoint /opt is mounted on the previous mounted pa...
/media/user/apps/opt /opt none bind,x-systemd.requires=/media/user/apps Should do the trick. There are two more options that help doing a safe successive mounting, because when we need to specify order dependencies between mount commands and other units. x-systemd.after x-systemd.before So we can add /media/user/ap...
Mounting successively in fstab: wait for partition to be mounted?
1,593,417,547,000
I have a problem like this question How disk became suddenly write protected in spite configuration is read/write? And I used these commands to resolve that umount /dev/sdb1 e2fsck /dev/sdb1 mount /dev/sdb1 but ~# e2fsck /dev/sdb1 e2fsck 1.44.5 (15-Dec-2018) ext2fs_open2: Bad magic number in super-block e2fsck: Sup...
I resolved this problem $ dmesg|grep bsd [ 3.467958] sda1: Then: $ sudo mount -t ufs -r -o ufstype=ufs2 /dev/sdb1 ~/freebsd Of course, for another version of linux line ubuntu we need to know: Possible common types are: old old format of ufs default value, supported as read-only 44bsd used in FreeBSD, NetBSD, O...
How to resolve e2fsck Superblock problem?
1,593,417,547,000
Recently, I updated my Arch Linux install. I try to do that every two weeks. Once I did, I rebooted and received an error that a dependency failed for /home (my home partition.) The boot process immediately went into emergency mode. I found that my home partition was not being mounted at all. The weird thing is, I can...
Add the -netdev option to the fstab entry for '/home'. It appears the dependency for mounting is the network management stack.
systemd - Booting into Emergency Mode with Error - Dependency Failed for /home
1,593,417,547,000
I discovered that is not possible to run fsck on a loopback device at boot by the fsck flag inside the fstab file, nor is it possible to accomplish this by manually running fsck when the loop device is mounted. Is there an alternative to check the device at boot time?
I found an elegant and reliable solution. I have writteng a script for then"/etc/initramfs-tools/scripts/local-premount/" boot phase in order to process my loop disk just before the file system mounting. Below the details: Create the script into /etc/initramfs-tools/scripts/local-premount/. Update the initrd.img by t...
Fsck at boot time for loopback device
1,593,417,547,000
I have a HDD which I mount on /mnt/sda1 at startup (in /etc/fstab) Whenever I want to send a file to the trash in pcmanfm, I get the following message : Some files cannot be moved to trash can because the underlying file systems don't support this operation. Do you want to delete them instead? The owner of /mnt...
This is a bit late, but I ran into the same issue. As it turns out, you have to disable the 'Erase files on removable media instead of "trash can" creation' preference. Apparently PCManFM sees any drives with an unmount button as removable media. Once that's done, sending files to trash works as expected.
pcmanfm doesn't send files to trash on external drive
1,593,417,547,000
I have mounted several data drives and used noexec parameter. Thinking that since it's only data I wouldn't need exec. Now I am having some permission issues and would like to rule this out as the cause as well as to understand the option better. Does exec parameter in /etc/fstab have the same effect as giving execute...
Looking through the man pages If you look at the man page for mount.cifs which is what will be used to mount any shares listed in /etc/fstab there is a note that mentions noexec. excerpt - mount.cifs man page This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount ...
How does Fstab exec noexec parameter affects samba shares
1,593,417,547,000
I recently got an SSD for my computer. Therefore I reinstalled my system and mounted / on /dev/sda1 (which is a partition on the SSD). To protect the SSD, I managed to mount /tmp on the RAMdisk. However, I would also want some other folders to be outsourced, not on the SSD but on my RAID1. The following folders should...
Mount the raid partition to /mnt/var UUID=<raid uuid> /mnt/var ext4 defaults 0 0 Create mount point /mnt/var cd /mnt; mkdir var Reboot Copy content into /mnt/var cp -a /var/log /mnt/var cp -a /var/cache /mnt/var cp -a /var/games /mnt/var cp -a /var/tmp /mnt/var Modify fstab as follow to mount them to /var on next ...
How to mount some folders on a different partition
1,593,417,547,000
I'd like to make a temporary change to my fstab file so that my /home is on another drive. However, I don't want the whole partition to be mounted, but just a folder ("home") on that partition. I'm OK with the rest of the data being unavailable. What's the canonical way of expressing this in fstab? I can't think of a ...
I don't think you can perform moves from /etc/fstab. If you want to do that, add a mount --move command in /etc/rc.local. That leaves a time in the boot process during which the home directories are not available at their final location. Since these are the home directories, they shouldn't be used much if at all durin...
Mount a folder on a drive in fstab. Move?
1,593,417,547,000
I'm running Arch Linux on a Macbook. I want to automatically mount my Macintosh partition when booting Arch, so I added the following to /etc/fstab: /dev/sda2 /media/Machintosh hfsplus defaults 1 2 After rebooting, the partition was not mounted, but I could mount it with the following command: sudo mount /dev/sda2 ...
Creating the mount point fixed the issue: mkdir /mnt/Machintosh Also if you want to avoid warnings, mount the volume as read-only, because write is not supported on HFS+ journaled systems (or you can disable journaling, but it is not advised).
fstab not mounting a disk on boot
1,593,417,547,000
on my Raspberry Pi I have a SD card with noobs and an installed Raspbian. Everything went fine without any problems, it was booted directly into the raspbian. Now I made a wrong entry in the fstab and booting was no longer possible. "root locked unable to mount /mnt/server...". kind of like that, anyway. Now I put the...
I solved it: The problem was a corrupted file in the SETTINGS mount point. There is a file called: installed_os.json. This one was defective. For whatever reason. As a result, NOOB's could not find any installed Linux and so the selection window remained empty. The following content had to be in my case included: [ {...
edit fstab on another computer, no more bootable
1,593,417,547,000
During the installation I thought I had generated the correct fstab, but now, after cp complains that the filesystem is full, I discover that fstab is empty. I have this configuration: # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 232.9G 0 disk ├─sda1 8:1 0 238M 0 part ├─sda2 8:2 ...
Your files are in the sda3 partition, so changing fstab by itself won't move the files. You could (among several alternatives) mkdir /home.new mount /dev/sda4 /home.new cp -a /home/user /home.new umount /home.new rf -fr /home mv /home.new /home mount /dev/sda4 /home then edit fstab to include /home /dev/sda4
Archlinux, move files to a different partition
1,593,417,547,000
I am using Arch Linux. Is there a way to automount other NTFS or Ext partitions automatically without configuring them in /etc/fstab?
There is https://www.archlinux.org/packages/extra/x86_64/gnome-disk-utility/ which is a GUI application that will allow you to generate an fstab entry automatically.
Auto mounting other partitions in Arch Linux
1,593,417,547,000
I believe the question is clear. But will add some details and history. I have two systems Win10 and Manjaro Linux. After reboot from Windows to Linux, I try to mount NTFS file systems, and mount often fails with the message about unclean cache. The medicine is ntfsfix /dev/sdXX or better ntfsfix /dev/disk/by-label/my...
Create a bash file containing the following and set it to run at startup. #!/bin/bash #delay for 10 seconds sleep 10 #Check to see if Media has failed to mount and carry out the fix if ! mount | grep Media > /dev/null; then ntfsfix /dev/disk/by-label/my-ntfs-partition && mount -t ntfs /dev/path/to/ntfsdisk /me...
How to run script on fstab mount failed and try once more? Like handle exception
1,593,417,547,000
So there are a bunch of NICs and vlans on the server and after adding the last ones the auto mount of a network volume is not working. I can do it all right if I SSH in and use mount however it doesn't happen with fstab. What I'm speculating is the interfaces that are needed to reach the networked storage come up too...
OK I could work around that by putting the mount command in rc.local (also worked as @reboot root mount -a in /etc/crontab). But if someone has suggestions about fixing it by changing the services startup that'd be nice to know.
Debian: Mounting NFS Volume at boot with fstab not working, How to change when this is attempted on boot
1,593,417,547,000
I put UUID=fb2b6c2e-a8d7-4855-b109-c9717264da8a / ext4 auto,noatime,noload,data=ordered,commit=10,defaults 1 1 in fstab And now server fails to reboot. It can reboot but reject all kind of connections. This is what my provider said: Yeah, the noload option might be problematic... I can'...
noload doesn't turn off journaling. It suppresses the loading of the journal, without turning off journaling. As you can imagine, that's usually not a good thing. noload is mostly useful to mount a disk as read-only without changing it in the slightest way, not even replaying the journal. You can read most data this w...
What does the noload option do in fstab?
1,593,417,547,000
I want to start editing my /etc/fstab file more comfortably and not rely on random forums anymore. But wherever I go, I see very scarce info about it. I can nowhere find a webpage that, for example, explains all of the options available. So, who owns the fstab file, what program uses it, and where can I find the offic...
The documentation for system files such as fstab is (almost always) on your machine. In this instance man fstab will answer your question - up to a point: The first field (fs_spec). This field describes the block special device or remote filesystem to be mounted. [...] For filesystems with no storage, any stri...
Where is the official documentation for /etc/fstab?
1,593,417,547,000
To have /tmp on tmpfs, I know I can use an entry in /etc/fstab, but I do not understand the role of /etc/default/tmpfs mentioned sometimes, and in what case I need to create or modify it. Recently, I often see suggested to use systemd tmp.mount confuguration. For example, on Debian: $ sudo cp /usr/share/systemd/tmp.mo...
On some systems, /tmp is a tmpfs by default, and this is the configuration provided by systemd’s “API File Systems”. Fedora-based systems follow this pattern to various extents; Fedora itself ships /usr/lib/systemd/system/tmp.mount and enables it, but RHEL 8 ships it without enabling it. On such systems, masking and u...
tmp on tmpfs: fstab vs tmp.mount with systemd
1,593,417,547,000
My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive: (...boot.log...) A start job is running for dev-disk-by\x2duuid-6bbb4ed8\x2d53ea\x2d4603\x2db4f7\x2d1205c7d24e19.device (1min 29s / 1min 30s) Timed out waiting for device dev-disk-by\x2duuid-6bbb4ed8\x2d53...
The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile: cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64 Originally I had disabled this swap partition in...
Why does systemd wait for a disk not present in `fstab`?
1,593,417,547,000
The following lines are defined in my /etc/fstab file. My current fstab: /dev/sdb /lpo/sda ext4 defaults,noatime 0 0 /dev/sdc /lpo/sdb ext4 defaults,noatime 0 0 From blkid we get: /dev/sdb: UUID="14314872-abd5-24e7-a850-db36fab2c6a1" TYPE="ext4" /dev/sdc: UUID="6d439357-3d20-48de-9973-3afb2a325eee" TYPE="ext4" How t...
UUID="14314872-abd5-24e7-a850-db36fab2c6a1" /lpo/sda ext4 defaults,noatime 0 0 UUID="6d439357-3d20-48de-9973-3afb2a325eee" /lpo/sdb ext4 defaults,noatime 0 0 The format of entries in fstab are as follows: <file system> <dir> <type> <options> <dump> <pass> Where <file system> is the device you want to mount (...
How to update fstab file with UUID?
1,593,417,547,000
In my search for the ideal filesystem to share files between a lot of computer with a lot of different OS'es I accepted this answer and installed a UDF filesystem on my USB stick. First I blanked the disk, to make sure there are no leftovers to confuse a system that's reading the drive: dd if=/dev/zero of=/dev/sdb bs=...
Choose a blocksize of at least 2K (which is the default) and add --vid= to your mkudffs parameters. (The blkid from util-linux doesn't seem to cope with smaller blocksizes.) $ mkudffs --media-type=hd --vid=my-drive /dev/sdj $ blkid /dev/sdj /dev/sdj: LABEL="my-drive" TYPE="udf" Now you can use LABEL=my-drive in /et...
UDF and fstab (no UUID)
1,593,417,547,000
I am trying to understand what the precedence and combination of the permission options set in fstab when mounting a disk with those that are associated with each file on disk in the case of ext4 being the file-system in use. More specifically: exec and executable flag suid and suid flag dev defaults vs nothing at al...
Mount options don't affect the stored permissions bits, but they affect the effective permissions. For example, it's possible to have a file with execute permissions (i.e. chmod a+x myfile has succeeded, ls -l shows the file having execute permissions, etc.), but if the filesystem is mounted with the noexec option, th...
How fstab mount options work together with per file defined permissions in linux
1,593,417,547,000
I just mounted sda2 to /mnt. How can I force a refresh of fstab so it can pickup the changes and insert a new line for sda2-/mnt?
You need to manually edit the file fstab. To find out what to put in there, issue the mount command and look at its output.
How do I add newly created mount point to fstab?
1,593,417,547,000
My understanding is /proc/mounts should list all mount options for a filesystem, including kernel defaults, so I was surprised to see that exec (among others) is not listed here? For example, my root and home filesystems in fstab: /dev/mapper/vg0-xen_root / ext4 noatime,errors=remount-ro 0 1 /dev/mapper/vg1-x...
Files in /proc are generated by the kernel, not by the mount utility. The kernel omits options that are in their default kernel setting. The defaults of the mount utility don't always match the kernel defaults. You can check the defaults for your kernel version in the source code, in fs/proc_namespace.c. For example, ...
Why is the exec option not listed in /proc/mounts?
1,593,417,547,000
I have a 4TB external hard drive connected to an Linux server. The fstab permissions on this drive are set so that only one particular non-root user has access to it: /dev/disk/by-uuid/CEE0476DE0388DA9/ /mnt/USBexternal ntfs-3g defaults,auto,uid=51343,gid=50432,umask=077 0 0 From a remote location, this user has been...
You can setup an entry in the /etc/sudoers file for this user to be able to use the mount command. Add something like the following to the end of the /etc/sudoers file: username ALL=NOPASSWD: /usr/bin/mount, /sbin/mount.ntfs-3g, /usr/bin/umount Be sure that the exact path to each executable is correct for your syst...
Allow NonRoot User to Mount a Particular NTFS External Hard Drive
1,593,417,547,000
I have a basic understanding of fsck utility but what does "fsck" section in /etc/fstab denote? It has values 0, 1, 2 what are these values? Googling says 0- it wont be checked 1- will be checked on boot 2- Now what is it?
From the fstab(5) man page: The sixth field (fs_passno). This field is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time. The root filesystem should be specified with a fs_passno of 1, and other filesystems should have ...
What is in fsck section in fstab?
1,593,417,547,000
I'm trying to enable journaled usrquota on Debian 11 Kernel 5.10. All information I find uses external files which leads to the following deprecation warning: quotaon: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as ext...
To enable journaled quota tune2fs is used. No mount options in /etc/fstab are needed. I.E. assuming you want quotas for /home enabled which is on /dev/sda2 you do: umount /home tune2fs -O quota /dev/sda2 mount -a quotaon -va If you want to turn quota on for the root file system you need to boot from a live disk and u...
How to enable journaled quota on Debian 11
1,593,417,547,000
I noticed recently that is possible to allow normal user/s to mount a device through fstab, but apparently in any case umount can only be done by root. Even the man page of mount only talks about mounting: Even more than having an actual solution to this, I'm wondering what's the reason behind this?
The reason behind this, as with many Unix/Linux peculiarities, is of course historical. Unix, which itself evolved out of Unics (a pun on its predecessor Multics) was designed as a true multi user system. Users can log in either locally or remotely through getty and login, get a shell and and run their programs. These...
mount and fstab: why can they be configured to allow users to mount but not umount?
1,593,417,547,000
We are thinking about to change all Linux fstab configuration to work with UUID instead the current configuration Some of the disks are with non RAID and some of the disks are with RAID10 I searched in google and find complain about using UUID for RAID1 : " Unfortunately you MUST NOT use UUID in /etc/fstab if you use ...
Answer to your second question: an UUID allows you to uniquely identify a device. Devices are assigned as /dev/sda, /dev/sdb, etc. depending on the order the system discovers them. While the drive the system boots on is always the first, for the others their name assignment depends on the order of discovery and might...
in which cases it will be problematic to configure UUID in fstab
1,593,417,547,000
Is it possible to mount a single folder without the noexec option. I have a situation in which a web app in the users home folder on the server has to be mounted without noexec to run correctly, however, I don't want to remove the restriction for all users, just for that one. The fstab looks like this: # /dev/sda3 ...
Do you mean you want to remove the noexec restriction on a directory in /home without removing it on the entire partition? If so, bind mounting the directory and remounting it with default options might work. But please conduct your own tests. Below is a dirty hack that seemed to work using EXT4, but it'd probably ...
Mount a folder without noexec
1,593,417,547,000
I trying to deploy an rails application into /home/app/myapp, but when application tries to connect to Mysql, I get this error: ** [out :: 192.168.110.50] /home/app/myapp/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so: failed to map segment from shared object: Operation not permitted - /home/app/myap...
Looks like mprotect failed, but anyway, to remove the noexec flag, change /dev/mapper/VG00-LVhome /home ext4 defaults,noexec,nosuid To /dev/mapper/VG00-LVhome /home ext4 defaults,nosuid And remount /home with mount -o remount /home
Remove noexec from Home folder
1,477,101,611,000
Some background: I have installed Linux Mint 17 Cinnamon on my laptop SSD on a 10GB formatted partition and i have another HDD with 75GB, both ext4 formatted. The question part: I have two partitions lets call them System(sda1) and Data(sdb1). How do i move the folders: home, usr, var and tmp to the Data(sdb1) and mak...
It sounds to me like you are trying to mount directories which are already mounted (or part of a mount) to a different location. The way to do is is to mount -o bind. So you would have something like this: UUID=XXX-Data-drive-UUID-XXX /media/data ext4 defaults 0 1 /media/data/tmp /tmp ext4 defaults,bind 0 0 /media/...
Moving 4 system folders to 1 separated partition
1,477,101,611,000
I created a logical volume like the following. lvcreate -L 300G MyVolGroup -n homevol As for mounting this volume after initializing a filesystem on it, a few guides I read used /dev/MyVolGroup/homevol. However, I noticed the root partition (as part of the default OS install) was mounted using /dev/mapper/MyVolGroup-...
It doesn't matter, you can use either of them. As you found out these are just symlinks and both are created by udev (the /dev/mapper/<vg>-<lv> one is created by the 10-dm.rules rule and the /dev/<vg>/<lv> by the 11-dm-lvm.rules) so these will be created at the same time so there isn't really a reason to prefer one ov...
LVM entry for logical volume in /etc/fstab - /dev/mapper/group-volume or /dev/group/volume?
1,477,101,611,000
I have this in my /etc/fstab: tmpfs /home/user1/tmp tmpfs rw,nodev,nosuid,noexec,size=16G 0 0 user1 has tmpfs mounted as /home/user1/tmp. I would like to mount same tmpfs for user2 as well, so that they can share same tmpfs. How can I do this in fstab, so that user2 has same tmpfs mounted at /home/user1/tmp ?
Add another line with a bind mount: /home/user1/tmp /home/user2/tmp none bind,x-systemd.requires=/home/user1/tmp The systemd is just for ordering, but you may not need/want it.
mount same tmpfs on two mountpoints
1,477,101,611,000
I have recently reinstalled my Linux Mint 19.2 from a USB which went fine. Upon starting the system, though, it get's stuck at initramfs. The error messages above state Mount: mounting /dev on /root/dev failed: no such file or directory Mount: mounting /run on /root/run failed: no such file or directory run-init: open...
Mount: mounting /dev on /root/dev failed: no such file or directory Mount: mounting /run on /root/run failed: no such file or directory run-init: opening console: No such file or directory Target: filesystem doesn't have requested /sbin/init. Looks like whatever is being mounted as the root filesystem does not have t...
Boot problems with empty fstab in initramfs
1,477,101,611,000
I have a small number of removable hard drives. At any one time, one of them will be mounted to /backup except while changing drives. I swap the drive periodically. That is I have 4 hard drives and I rotate them. Currently I manually mount / unmount the drive. But there are times when this machine is turned off an...
After coming back to this question a long time later I've realised the solution is actually the same as optionally mounting a drive in /etc/fstab. This is discussed here https://wiki.archlinux.org/index.php/fstab#External_devices In short my solution is to simply have two almost identical entries mounting to the same...
How to mount one of multiple disks to a specific location in fstab
1,477,101,611,000
I'm currently trying to able the Trash feature in a NTFS partition mounted automatically on boot. To do that I'm using the permissions option in my fstab: UUID=1CACB8ABACB88136 /media/FILES ntfs defaults,permissions,relatime 0 0 then I changed the permissions: sudo chown :users -R /media/FILES/ sudo chmod g+rwx -R /m...
Hey guys I've found the solution, removing my old .Trash folder that was there but wasn't working: sudo rm -rf /media/FILES/.Trash-1000 worked like a charm, I'm now able to move to Trash from nautilus. And I'm pretty sure that If I create a new user he will be able to have its own trash too.
How can I enable Trash feature in a NTFS partition with permissions?
1,477,101,611,000
I have 3 encrypted partitions, one for /, one for /home, and one for swap. It seemed silly to me to type in my password 3 times, so I replaced the swap partition with a swap file on the encrypted drive. However, even though I removed the entry from fstab, I am still being prompted for my password for the old swap p...
Encrypted volumes are listed in /etc/crypttab. You need to update that file, to remove the volume that you no longer want mounted. After doing this, you need to rebuild the initramfs, by running sudo update-initramfs -u If you want to have three encrypted partitions on the same disk, then you should have a single enc...
Luks Partition Mounting After Removing From fstab
1,477,101,611,000
I just installed the latest Ubuntu 12.04 and obviously it screws something up. I'm not sure if this has anything to do with the fact that I have a Raid 1 but at the moment, I have sda and sdb which point to the same device: # blkid /dev/sda1: UUID="88aa922a-4304-406e-8abd-edc2e9064d79" TYPE="ext2" /dev/sda2: UUID="22...
I found a very easy solution to get my (obviously fake) hardware RAID working again. After I reinstalled Ubuntu 12.04 I didn't reboot but stayed in try mode. Then I mounted / and edited /usr/share/initramfs-tools/scripts/local-top/dmraid I added dmraid -ay after the last comment: # Activate any dmraid arrays that w...
sda and sdb block specials point to same device and get mixed up (hardware RAID doesn't work after new installation of 12.04)
1,477,101,611,000
I have the following in my /etc/fstab on a Red Hat 5 system: //share/folder /mnt/folder cifs username=<my username>,password=<my password>,ro,soft,nounix Can I replace this with something that will still mount //share/folder on my Linux box on startup without storing my plain text password in fstab?
You can make a separate file with the following lines, and make it readable by root only: username=<my username> password=<my password> Then in /etc/fstab, replace the username and password options with: credentials=/path/to/your/file
Mounting Windows share on startup without storing password in plain text
1,477,101,611,000
I am responsible for maintaining a Linux (Ubuntu) machine in my company. We mounted some NFS network drives. In irregular intervals (during holidays), the machine is forcefully restarted because the company turns off all electricity. After re-boot, the NFS network drives are gone and have to be mounted manually again ...
Assuming your system is running systemd, and your network file systems are listed in /etc/fstab with the _netdev option: The machine will boot, even if one or more of the network file systems are unavailable; if it doesn’t need the network file systems, then it will be usable. The boot will take longer however, since...
What happens when mounting network drives in fstab fails
1,477,101,611,000
is it possible to run xfs repair by re-edit the fstab file? /dev/mapper/vg-linux_root / xfs defaults 0 0 UUID=7de1dc5c-b605-4a6f-bdf1-f1e869f6ffb9 /boot xfs defaults 0 0 /dev/mapper/vg-linux_var /var xfs defaults 0 0 /dev/mapper/vg-linux_swap...
No, just editing /etc/fstab cannot cause xfs_repair to be executed. For other filesystem types, it would work. But XFS is special here. Changing the 6th field of /etc/fstab to a non-zero value on a XFS filesystem will cause the system to run fsck.xfs, whose man page says: NAME fsck.xfs - do nothing, successfull...
repair file system by edit the fstab file
1,477,101,611,000
I have added this entry to my /etc/fstab /dev/sdb1 /user_data xfs rw 0 0 Which works fine, the issue i am getting it sometime i remove this drive and when i do and reboot my machine it goes into emergency mode. I have tried adding /etc/systemd/system/local-fs.target.d/nofail.conf with OnFailure= in it but i s...
Add the nofail option to your /etc/fstab: /dev/sdb1 /user_data xfs rw,nofail 0 0
Emergency Mode and Local Disk
1,477,101,611,000
I am using Arch Linux and I have cleared the fstab file on accident. Of course I regenerate the fstab with genfstab -U -p /mnt >> /mnt/etc/fstab the thing is, I do not know what was in the beginning of the file and I know that using >> just adds to a file. So I am assuming that there might have been script before I ...
pacstrap is part of arch-install-scripts; you can read the script to understand how it works. As the help message notes: pacstrap installs packages to the specified new root directory. If no packages are given, pacstrap defaults to the "base" group. pkgfile is a utility that lets you query pacman's database: pkgfile /...
Reloading specific base files
1,477,101,611,000
Is it possible to setup ecryptfs mounts to prompt for password upon bootup? Say for example /home and /var are ecryptfs folders that need to be mounted; how do I force a prompt upon bootup to ask for mount passwords?
Solution is to use luks/dm-crypt and then modify /etc/crypttab file to do what I need.
Bootup prompt for ecryptfs password
1,477,101,611,000
Issue: I have a dual-boot PC, Ubuntu / Windows 10, that share access to a NTFS disk partition (mounted as /DATA/ in Ubuntu). I need to avoid the "Permission denied" error when a chmod command is executed on a file in such shared partition, regardless the user calling this command. This is because I chmod is called as ...
Does the program that calls chmod hard-code the path to /bin/chmod? If not, if it just runs whichever chmod program is first in the PATH, try creating a directory that contains only a symlink called 'chmod' to /bin/true. e.g. (as root): # mkdir /usr/local/dummy # ln -s /bin/true /usr/local/dummy/chmod Then set the PA...
Allow all users to use chmod on a NTFS file system
1,477,101,611,000
I manually created the partitions, copied a rootfs inside an appropriate one, chrooted into the rootfs, installed a kernel and Grub, just like I did million times before. I exactly use the same disk layout and boot process (without creating the rootfs from "scratch") as my current host. Current problem is that the boo...
It turns out that using the rootfs that is created with LXC is inappropriate for creating real installations. We should use multistrap instead. The steps to fully produce above problem is available at multistrap-helpers@2ada86fd. If you create the rootfs with multistrap, then install-to-disk instructions works perfect...
/etc/fstab contents seem to be wrong but they aren't
1,477,101,611,000
Sometimes I have an error ext4 and my disk becomes read-only. I can fix it with a reboot and fcsk /dev/sda2 but it keeps coming back... Here are some dmesg : [ 3160.692730] perf: interrupt took too long (2509 > 2500), lowering kernel.perf_event_max_sample_rate to 79500 ...
Can you check your disk for bad sectors or bad blocks? you can use badblocks or smartctl command to check in linux, I think bad disk is only reason for your issue.
Ext4 Error and disk remounted read-only
1,477,101,611,000
I wonder if there is something like "user specific /etc/fstab" for fusermount? ~/.fstab, ~/.config/fstab, something the like, which would work in cooperation with FUSE. I used sshfs foo.bar: foo.bar/ from the home dir to connect to the remote dir (there is foo.bar directory, and I have .ssh/config set accordingly). B...
There's no per-user equivalent of /etc/fstab. You can write a shell script that reads a file of your choice and calls the appropriate mounting command. Note that from the argument foo.bar, you have to deduce multiple pieces of information: the server location foo.bar, the directory on the server (here your home direct...
User specific fstab for fusermount
1,477,101,611,000
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 umask=0222, and specifying ntsf-3g never has a umask parameter. Trying to research umask, I came across numerous explanatio...
I do not know the difference between ntfs and ntfs-3g. Regarding the umask option, it specifies a bit mask such that the bits set in the umask are cleared in the file access permissions. These permission bits are RWXRWXRWX, where R is read access, W is write access, and X is execute access, with some higher bits used ...
mount command permissions: ntfs vs. ntfs-3g
1,477,101,611,000
I have two users: userA and userB. I have also NTFS formatted parition. Whole parition is only accessible to userA thanks to this in /etc/fstab: /dev/sda3 /home/userA/data ntfs-3g defaults,rw,nouser,uid=userA,umask=077,exec 0 0 . I want to allow ONE folder (for example /home/userA/data/movies) to be accessible for us...
I assume the client machine is running Linux. Linux has the ability to create multiple views of all or part of the same filesystem. You can use this to make only part of a filesystem accessible to a user (subject to further permission checks). /dev/sda3 /home/userA/data ntfs-3g defaults,rw,nouser,uid=userA,umask=077,e...
How to allow access to only one NTFS folder of already mounted partition for specific user?
1,477,101,611,000
I'm trying to mount USB thumb drive to my router. My USB thumb drive is 32GB,divided to two partitions : 16GB NTFS and 16GB ext4 . The 16GB NTFS partition will be automatically detected in router as sda1 and by default mounted to /mnt/sda1 and /tmp/ftp/Volume_A1. The 16GB ext4 automatically detected in router as sda...
On SystemD systems devices listed in /etc/fstab which are not present at boot time but appear later are mounted automatically. Other systems don't do that (at least not all of them). So you need something that triggers a mount /test call when the device has become available. This could be done with a udev rule (RUN=)....
Mount ext4 with UUID in /etc/fstab
1,477,101,611,000
I have a proc mount entry in my fstab on (Debian derived) Raspberry Pi OS. Is this one needed? On my pc (running Arch linux) I don't have this but (of course) proc gets mounted. fstab line: proc /proc proc defaults 0 0 uname -a: Linux website 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7...
Historically, /proc wasn’t automatically mounted, which is why some systems still list it in /etc/fstab. Nowadays systemd takes care of mounting a number of “API file systems” including /proc, so any system running systemd will have /proc mounted whether it’s listed in /etc/fstab or not. API file systems may still app...
Why is there a `proc` mount in fstab
1,477,101,611,000
it works fine mounting manually from the cli but when running sudo mount -a after editing the fstab im getting errors. It seems right to me, any one have a suggestion. my fstab is: # /etc/fstab: static file system information. # ...
//megaboxy/inetpub /mnt/megabo cifs username=admin, password=passwd 0 0 ^ this is a problem You can't put spaces between the options. Remove that and that error should go avay.
[mntent]: line 15 in /etc/fstab is bad
1,477,101,611,000
I followed instructions for sshfs "on demand" mounting, but it doesn't work. I added this to /etc/fstab: username@hostname:/ /mnt/remotes/hostname fuse.sshfs noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=/home/stanley/.ssh/my_rsa_key,allow_other,reconnect 0 0 Then I ran sudo mount -a which did noth...
The instructions say: Note: After editing /etc/fstab, (re)start the required service: systemctl daemon-reload && systemctl restart where <target> can be found by running systemctl list-unit-files --type automount You have a problem :-(. Mount options which are implemented by systemd, such as x-systemd.*, are not im...
sshfs with on-demand mounting
1,477,101,611,000
This is my fstab: # # /etc/fstab # Created by anaconda on Sat Jan 12 02:12:44 2013 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=fb2b6c2e-a8d7-4855-b109-c9717264da8a / ext4 auto,noat...
The UUID fb... is a partition. From the Information above, it is not possible to tell if it is /dev/sda or anything else. proc,sysfs,devpts are virtual file systems tmpfs is some ramdisk-like filesystem /usr/tmpDSK seems to be a file which is used as image to mount /tmp
How to understand this fstab?
1,477,101,611,000
I have added user_xattr in ext4 but when I remount it doesn't show xattr & I installed attr & attr_dev # <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/Anonymous--vg-root / ext4\040remount,user_xattr errors=remount-ro 0 1`
User extended attributes are supported by default on Ext4, you don’t need to do anything to enable them. To verify this, run cd touch xattr-test setfattr -n user.test -v "hello" xattr-test getfattr xattr-test This should show that the extended attribute was successfully stored.
how to enable xattr support in Debian 9 (Stretch)
1,477,101,611,000
Centos 7.1 64. This is what I have: Two raids, but not md0 and md1 [root@localhost]# cat /proc/mdstat Personalities : [raid1] md126 : active raid1 sdb2[1] sda2[0] 974711616 blocks super 1.0 [2/2] [UU] bitmap: 1/8 pages [4KB], 65536KB chunk md127 : active raid1 sdb1[1] sda1[0] 2048000 blocks super 1...
You can see the UUIDs for the various different components (physical disk, RAID, etc.) by running blkid Here is a sample from one of my systems: /dev/sda3: UUID="NAzDnw-zu08-iSt9-v76l-njNc-NElx-8RFzVg" TYPE="LVM2_member" /dev/sdc3: UUID="215b625b-8531-26ed-c610-01f443697250" UUID_SUB="087e72db-ff75-bcbe-5b41-8f79a6bb5...
Raid devices are mounted with different UUID
1,477,101,611,000
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 fstab files that have incorrect fstab configuration as unused UUID number/s or unused UUID number/s that are in Commen...
The reason it isn't working is because you are trying to match the wrong things. This is what your blkid variable contains: $ printf '%s\n' "$blkid_list_of_uuid" 49232c87-6c49-411d-b744-c6c847cfd8ec Y5MbyB-C5NN-hcPA-wd9R-jmdI-02ML-W9qIiu 0d5c6164-bb9b-43f4-aa9b-092069801a1b 81140364-4b8e-412c-b909-ef0432162a45 ...
linux + delete by bash script the unused/incorrect UUID number/s from fstab file
1,477,101,611,000
I have a new disk with one btrfs partition on it and want to mount it via fstab. The problem is, that all files are now owned by root but I want them to be owned by the user with ID 1000 (and group ID 1000). With the ntfs partition on my old disk the entry looked like this: UUID=AAAE86DAAE869E87 /media/disk ntfs auto,...
It sounds like you're thinking that uid and gid options in fstab are a generic way to override ownership on a filesystem. That's not really true. The NTFS driver, specifically, supports those options because NTFS doesn't store (Linux-compatible) ownership information on disk, so the driver has to fake them. Btrfs, o...
Ownership of btrfs partition via fstab
1,477,101,611,000
I have this fstab entry: machine.local:/srv/files /res/files nfs defaults 0 0 It was working great until machine.local dropped the connection momentarily. Now, the share isn't accessible. df, umount /res/files, ls /res all hang forever. What should I do, short of a reboot?
NFS really ought to reconnect once the NFS server is back up. It may take a few minutes (it needs to notice the timeout). The timeo option lets you change how long the timeout takes. umount -f /res/files will probably unmount the share (and kill all the processes waiting on it), if you try it a few times. On older ker...
NFS server dropped connection momentarily, now df, ls, and umount all hang
1,477,101,611,000
I have manually installed linux on a USB drive. It works and boots up when I plug the drive into the original computer. The problem comes when the drive is on a different computer or there are other drives plugged in and my USB is NOT /dev/sdb. I then get an error that the root drive can not be mounted because etc/fst...
You can also identify the partitions with their UUIDs The Unique Universal IDentifier is, as the name implies, unique and never changes. It even stays the same when using the media on a different computer. You can use UUIDs instead of /dev/sdx by editing /etc/fstab Note that you need to run the following commands as r...
How to make a "dynamic" etc/fstab
1,477,101,611,000
Im following along howtogeek: how to harmonize your dual boot, however I have ran in to an issue. I have added my storage drive to etc/fstab as followed: # storage mount UUID=748A56588A5616C8 /media/storage/ ntfs-3g auto,user,rw 0 0 based on my result from blkid sudo blkid | grep Storage /dev/nvme0n1p7: LAB...
Windows 10 by default does a fast startup that does not fully release the drives in use. Linux cannot then write to them, because that would lead to corruption. A temporary solution is to press Shift as you restart/reboot Windows 10. But that should be repeated every time. A more permanent solution can be found here. ...
Dual boot (Win10 & Mint) "storage drive": rw mount /etc/fstab loads as read-only