date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,502,919,320,000
When I ssh into my computer, files I create on the main hard drive are owned by me: $ touch test $ ls -l test -rw-r--r-- 1 smithty domain users 0 Aug 16 17:26 test But when I move into a folder that's on a second hard drive, everything I create is owned by root as default: $ cd data $ touch test $ ls -l tes...
NTFS doesn't know what a Linux user id is. It doesn't store such metadata. So everything gets to be root. ext4/xfs (which is what your main hard drive likely is) does know it. You might want to mount using the "uid=xxx option, see man page"
files created on internal hard drive are always owned by root
1,502,919,320,000
I'm trying to speed up a project which uses a folder for cache by mounting the cache folder on tmpfs. But whenever I mount it I get this error message: mount: special device tmpfs does not exist this is the entry on /etc/fstab: tmpfs /home/rkmax/Projects/webapp/app/cache rw,size=500M,nosuid,uid=1000,gid=100 0 0 My d...
You didn't specify the filesystem type - this is required. This is what you need: tmpfs /home/rkmax/Projects/webapp/app/cache tmpfs rw,size=500M,nosuid,uid=1000,gid=100 0 0
special device tmpfs does not exist
1,502,919,320,000
On Cinnamon 5.0.7 (Linux Mint 20.2), how do I prevent mounted devices, specifically device created in fstab, from showing up on the desktop and Nemo sidebar. Until recently, this was the default behavior. But after today's update/reboot, pretty much every mounted device is populating the desktop and sidebar. Majorit...
To disable on the Desktop: Right click the Desktop, click Customize, then click the hyperlink-looking Desktop Settings Button, and slide the Mounted Drives slider off. To hide specific partitions from appearing in the user interface, you can open the Disks utility (gnome-disks). Then select the devices you want to hid...
Blocking mounted devices from showing on Cinnamon desktop
1,502,919,320,000
I am trying to connect to sshfs with fstab on Ubuntu, but the files are not loading. In the fstab I put the following : [email protected]:/home/ssh2/SSHserver /home/asir3/Escritorio/SSHclient fuse.sshfs noauto,x systemd.automount,_netdev,user,idmap=user,follow_symlinks,identityfile=/home/ssh2/.ssh/id_rsa,allowother,...
noauto means "no automatic mounting", so that this file system is neither mounted at boot nor when doing mount -a. You can, however, as normal user mount it.
Mount with sshfs in /etc/fstab file
1,502,919,320,000
One of my attached disks had xfs filesystem. I formatted the disk to ext4 using: sudo mkfs.ext4 /dev/sdc1 Now when I run sudo -i blkid, I get this output: /dev/sdc1: UUID="df722345-7e80-4a08-8da1-e6046cc2b0e1" TYPE="ext4" PARTLABEL="xfspart" PARTUUID="1df243b5-2b64-4c39-bd45-4cb31d7ff58e" I can see that the PARTLABE...
The PARTLABEL is a property of the partition table (GPT), unrelated to partition content (any filesystem or lvm, luks, raid, etc.). Thus it's not overwritten when you mkfs partition content. If you are not using this value for anything, you can ignore it since it means nothing. Or, to avoid confusion, you can change i...
Does "PARTLABEL" affects fstab behavior in Ubuntu16.04?
1,502,919,320,000
I recently installed Debian 10 on my laptop and for the first time I decided to give file encryption a go. But I've found something interesting in the /etc/fstab file, and it's that it doesn't use UUID and instead it uses absolute paths. This is my /etc/fstab: # <file system> <mount point> <type> <options> <dump> ...
These absolute device paths are perfectly fine, since their names are stable and prescribed by the first fields in the lines of /etc/crypttab. Actually, they are symlinks to the numbered (thus unstable) device mapper device node names. If /etc/crypttab refers to their source devices (in the second fields) by stable na...
Mount points in /etc/fstab on Debian system for an encrypted partition
1,502,919,320,000
I use the following awk in order to remove duplicate lines from the /etc/fstab file on Linux. The problem that it also removes the lines that start with #. How can I change the awk syntax in order to ignore lines starting with # in the file? awk '!a[$0]++' /etc/fstab > /etc/fstab.new cp /etc/fstab.new /etc/fstab
Tell AWK to accept lines starting with # as well as non-duplicate lines: awk '/^#/ || !a[$0]++' /etc/fstab > /etc/fstab.new If you want to avoid doing this if there are no duplicate lines (per your comments), you can use something like if awk '!/#^/ && a[$0]++ { dup = 1 }; END { exit !dup }' /etc/fstab; then awk ...
awk + remove duplicate lines but ignore lines that begin with #
1,502,919,320,000
Can you help me find UUID of my SSD which is partitioned already? The goal is I want to mount this SSD under my home dir. To do so, I need to add a line to my /etc/fstab file. To do so, I need to put its UUID in the line. To do so, I need to determine its UUID. Nothing is output by command blkid, which baffles me. The...
Edit: As it turns out, the OP actually had a filesystem made on the unpartitioned SSD. You probably don't want to mount the SSD. Probably you want to mount a partition on the SSD. To list the UUIDs of partitions: sudo lsblk -o name,mountpoint,size,type,ro,label,uuid Example result: $ sudo lsblk -o name,mountpoint,siz...
Find UUID of SSD which is already partitioned
1,502,919,320,000
I have a large, frequently read, ext3 file system mounted read-only on a system that is generally always hard power cycled about 2-3 times per day. Because the device is usually powered off by cutting the power, fsck runs on boot on that file system, but for this application fast boot times are important (to the secon...
From the mount manpage, -r, --read-only Mount the filesystem read-only. A synonym is -o ro. Note that, depending on the filesystem type, state and kernel behavior, the system may still write to the device. For example, Ext3 or ext4 will replay its journal if the filesyste...
Safe to disable boot fsck on read-only ext3 file system?
1,502,919,320,000
I have an NTFS partition that I want to mount using /etc/fstab. I don't want any files to have executable permissions on this drive, so I wrote the following rule: /dev/sda2 /media/sharedfolder ntfs auto,user,noatime,noexec,rw,async 0 0 However, I don't believe this will prevent files from being created with executab...
Wikipedia isn't as good a reference as the man page. Both the the traditional ntfs driver and the now-preferred ntfs-3g support the umask option. You shouldn't set umask to exclude executable permissions on directories, though, since you can't access files inside a non-executable directory. Instead, use separate value...
How do I mount an NTFS partition in /etc/fstab and prevent files/directories from receiving exec permissions when they're created?
1,502,919,320,000
How use pmount that it omit fstab rules? For example # fstab: /dev/sr0 /media/cdrom ... (etc.) # in terminal pmount /dev/sr0 /media/xxx # it will omit /media/xxx mount point and it will mount in /media/cdrom Is there any easily solution to mount other mount point that is in fstab. In this case I must use pmount bea...
pmount is generally to be used for mounting custom external devices that are not in fstab. What you experience is a feature of pmount - a part of its policy (see man pmount, search for fstab). If you want to permit normal users to mount cdrom, you can either comment it out in /etc/fstab and use pmount or set up the cd...
pmount - omit rules in fstab
1,502,919,320,000
I'm running Fedora 14 with the 2.6.35.13-92.fc14.i686 kernel and Gnome 2.32.0. I have a few NTFS drives that are mounted when I start up. However, there is no entry for them in fstab and nothing in mtab. (EDIT: The NTFS drives aren't in /proc/mounts either) Furthermore there is no mention of any NTFS filesystems in /e...
You are probably using the ntfs-3g driver, which is a user mode filesystem. It will show up in /proc/mounts and /etc/mtab as fuse.
How are NTFS drives handled by Linux? Nothing is in fstab yet it's automounted. Nothing in mtab yet it's currently mounted
1,502,919,320,000
I want to create systemd mount-unit equivalent for next fstab line /dev/sdc1 /жышы ext4 defaults 1 2 Something as жышы.mount [Unit] Description= /dev/sdc1 to /жышы [Mount] What=/dev/sdc1 Where=/жышы Type=ext4 [Install] WantedBy=multi-user.target Yes, I tried to use systemd-escape for unit file name and for Where, ...
From man systemd.mount: Mount units must be named after the mount point directories they control. Example: the mount point /home/lennart must be configured in a unit file home-lennart.mount. For details about the escaping logic used to convert a file system path to a unit name, see systemd.unit(5). OK, so from man s...
How to mount folder with nonASCII (cyrillic) letters by systemd mount-unit?
1,502,919,320,000
I'm working on a script that is supposed to execute on startup, but the problem is that the script requires some files that are on a shared drive that is automatically mounted via fstab and at the time of it's execution the drive isn't mounted yet. I've tried using cron @reboot and init.d route but they both execute t...
For that you have to run your script as a systemd unit (assuming you have systemd) where you could define dependency... If you want to stick with cron @reboot (what sounds the simple choice) you have to make your script a bit smarter (or start cron after fs mounts... what change I wouldn't suggest). Instead of a simpl...
fstab mounting time
1,502,919,320,000
I have a FreeBSD 10.2 server that I mount iSCSI drives to. I would like to have those drives mounted automatically in fstab so that they are persistent across reboots. If I execute the command mount /dev/da0p1 /mnt It works perfectly. mount /dev/ada0p2 on / (ufs, local, journaled soft-updates) devfs on /dev (devfs, ...
Disclaimer: I don't know if this is the right thing to do, but it worked for me. So, I essentially needed the startup process to take a little extra time so that networking services could finish loading and the iSCSI mounts could be created so there would be something to mount to. What I did was add sleep 5 to the /e...
Mount iSCSI Partitions Automatically at Boot on FreeBSD 10
1,502,919,320,000
I'm running RHEL 7.2 in Amazon Web Services and am trying to make my /tmp use an attached 10 GB volume /dev/xvdh. Data does not need to persist, but I have to have a bigger volume just for tmp, because of a customer requirement. Here's the entry in my fstab. /dev/xvdh /tmp xfs defaults,nofail 0 2 When...
You might want to try using the UUID instead. As in changing the fstab to UUID=xxxxxxxxxxxx /tmp xfs defaults,nofail 0 2
Mounting /tmp in another drive on RHEL 7.2 in AWS
1,502,919,320,000
I would like to mount a filesystem permanently. If I understand this correctly, it can be done by adding a line to /etc/fstab. If my mount syntax is like this: mount -t cifs -o username=USERNAME,password=PASSWD //192.168.1.88/shares /mnt/share Then, what must I add to fstab to make it work properly?
See man fstab for the details on the fields. In short your line will be: //192.168.1.88/shares /mnt/share cifs username=USERNAME,password=PASSWD 0 0 See also man mount.cifs, especially the credentials= directive to keep the credentials apart from the fstab file.
Is fstab syntax the same as mount?
1,502,919,320,000
I have three EBS RAID 10 volumes in my /etc/fstab on an Amazon AMI hosted with AWS/EC2... Everytime I reboot the instance, the volumes get mounted to the wrong mount points. Any ideas on how I can get these RAID volumes to mount to the correct mount points? Correct Example Filesystem Size Used Avail Use% M...
blkid Instead of the device handles you might want to try using the UUID for each of the devices. You can get the devices UUID's using the command blkid. $ blkid /dev/lvm-raid2/lvm0: UUID="2123d4567-1234-1238-adf2-687a3c237f56" TYPE="ext3" Then add this to your /etc/fstab: UUID=2123d4567-1234-1238-adf2-687a3c237f56 ...
EBS Volumes Mounted On Wrong Directory After Reboot
1,502,919,320,000
I read on the man page defaults Use default options: rw, suid, dev, exec, auto, nouser, async, and relatime. Do the options set depend on a mounted filesystem or not?
In the man page, defaults is listed under Filesystem Independent Mount Options, which means it doesn't depend on the filesystem type.
mount defaults and various filesystems
1,502,919,320,000
I have two USB Drives, I created partitions, and formatted it to ext4. Running fdisk -l shows that I have /dev/sda1 and /dev/sdb1 Device Boot Start End Sectors Size Id Type /dev/sda1 /dev/sdb1 Then I mounted both on boot by running sudo nano /etc/fstab I use Samba to access it from the different computer a...
I have no idea why it happened the convention /dev/sda {for example} is a mount by-name. If all you had was 1 disk, i.e. your operating system disk, that would always be /dev/sda. So no problem. Add more disks, you get sdb and sdc and so on. Mount by-name does not care or respect order or sequence all the time. ...
USB Drive sometimes changes the Drive name
1,502,919,320,000
My computer has 3 disk drives: 256GB ssd (root and swap partitions) 60GB ssd (ext4) 2TB hdd (ext4) I want to automatically mount the two extra drives at boot and I want all users to be able to read/write/execute on them. To this end, I added the following lines to fstab: /dev/sdb1 /mnt/vertex ext4 defaults,user...
The two partitions are formatted as ext4, which by default sets the owner and group of the root dir of that volume to root, and permissions to rwxrwxr-x (IIRC). You can check that with $ ls -la /mnt/<mountpoint> In order to make them writable for normal users, you can either change the group of that root dir to a co...
How to have hdd's auto-mounted and usable by all users?
1,502,919,320,000
Can we set the size in the following syntax as percentage instead of static size? example from /etc/fstab tmpfs /var/work tmpfs size=100g 0 0 lets say we have ram memory with 120g , we can set the size to used 100g from the ram as mentioned above but is it possible to set for example 80% in size instead of sta...
From the kernel docs for tmpfs: tmpfs has three mount options for sizing: size: The limit of allocated bytes for this tmpfs instance. The default is half of your physical RAM without swap. If you oversize your tmpfs instances the machine will deadlock since the OOM handler will ...
Can we set the size in tmpfs syntax as percentage instead of static size
1,502,919,320,000
This question has surely been answered somewhere else but I'm having trouble finding it. I'm in a situation where I'm moving my root file system from a Debian install off of a hardware RAID and onto an internal USB. I want to keep the partition small and relatively secure. The goal is to keep frequent read/writes off...
Today, you have to adapt to SystemD; 90% of the traditional and complicated "rules" for partitioning are obsolete. The usr-bin "split" problem is also "normalized", thanks to systemd: Poettering explains why it has "always been broken" to have /usr split off and have a "minimal" /bin; the initrd is that "minimal root"...
Which directories can be on a different partition outside of root?
1,502,919,320,000
I need to use an alternative fstab file for mounting a folder in another folder, like the command mount --bind /folder1 /folder2 I tried the command mount --fstab /pathToFile.fstab as stated in the man: -T, --fstab path Specifies an alternative fstab file. If path is a directory then the files in the directory a...
The command mount --fstab /pathToFile.fstab is the same as mount with no options when using the standard fstab file, i.e. "list mounted filesystems". To actually mount all automountable filesystems specified in a custom fstab file similar to using mount -a with the standard fstab files, you'll need to use the --fsta...
Mounting using alternate fstab file
1,502,919,320,000
I tried googling it and just found this https://ubuntuforums.org/showthread.php?t=2234886 and this https://bugs.launchpad.net/ubuntu/+source/gnome-disk-utility/+bug/1165437. But it is not so clear. So I thought the star icon represent a boot drive. And check my first drive the partition is 1.1GB ext4 bootable and the ...
I was hoping that reading manual will be enough, but the manual is very limited as well as the other documentation. So the source code had to come for help. Grepping through the code for "icon" keyword showed few occasions which sound like these icons: src/disks/gduvolumegrid.c: g_ptr_array_add (icons_to_render, (g...
What is the start icon on the partition on the gnome disk utility?
1,502,919,320,000
I recently did a fresh reinstall of Ubuntu 16.04 on my laptop. It has an ntfs partition with all my documents and stuff that I might want to use on Windows as well. When I did the reinstall I forgot to backup the fstab entry that automatically mounted the ntfs partition. In /etc/fstab I set the uid and guid. I checked...
/dev/sda7 on /media/user/files /dev/sda7 on /media/user/Files files and Files are two different paths. Because the directory /media/user is in a native *nix filesystem. Filenames here are not interpreted e.g. as case-insensitive. They are simply strings of octets which do not contain NUL (0) or ASCII /.
Firefox doesn't recognize profile when mounting using fstab
1,502,919,320,000
I'm trying to mount /etc/folder and /var/folder to the same external volume UUID=xyz. This external volume already has subdirectories etc_folder and var_folder and has been formatted and available to mount. I want to change fstab and achieve something like the following, before doing "mount -a": UUID=xyz:/etc_folder /...
The following works in /etc/fstab: UUID=xyz /mnt ext4 defaults,nofail 0 2 /mnt/var_folder /var/folder none bind 0 0 /mnt/etc_folder /etc/folder none bind 0 0 I just need to mount the whole volume to one location e.g. /mnt, keep...
Mounting two folders to corresponding directories within external volume?
1,502,919,320,000
I've got two devices on my LAN: a Raspbian jessie and an Ubuntu 14.04. The latter has some nfs shared folders, which are available from Raspbian at startup, set up in its /etc/fstab file as: 192.168.1.10:/mnt/nfs/HDD /mnt nfs defaults,nofail,noatime 0 0 The problem is coming up when Ubuntu is offl...
The automounter was designed exactly for this kind of problem. It automatically mounts drives (local or remote) only when they are needed, and unmounted them when they are no longer being used. Install autofs on your NFS client and comment out (or remove) the entries in /etc/fstab. Edit /etc/auto.master and ensure tha...
Ignore unmounted file systems
1,502,919,320,000
I have an Ubuntu micro instance running on amazon EC2. Recently after logging in I was alerted: *** /dev/xvda1 will be checked for errors at next reboot *** I've rebooted a couple times using init 6, however when I log on I am still getting the same notice, so apparently fsck is not running at startup. I read this bl...
Why would it be set to 0? I can see a few possible reasons for this. Because you are running on EC2, your hardware (storage and compute instance) is virtualized. It is much less likely for such a configuration to encounter failures of any sort causing filesystem corruption, and an actual physical defect in the storag...
Should I run fsck on boot for an amazon ec2 image?
1,502,919,320,000
I have been trying to mount a simple share. All domain users should have read permissions. Kubuntu was configured for domain, I can see domain and log in with domain user. When I access shares with Dolphin file manager I can successfully open and browse them (Network -> Shared Folders (SMB) -> Add the folder). I have ...
Ok, so I figured out what the problem is. Shares are behind DFS and this caused problems. https://www.geeksforgeeks.org/what-is-dfsdistributed-file-system/ A Distributed File System (DFS) as the name suggests, is a file system that is distributed on multiple file servers or multiple locations. It allows programs to a...
Kubuntu 20.04.4 LTS cannot mount domain samba shares (either from terminal or fstab)
1,502,919,320,000
As SSD drives have limited writes, I would like to know whether disabling access time logging still plays a significant role in 2021. Most websites I see on the subject are from 2015 and before, and SSD might be more robust nowadays. I don't really realise how SSD writes are managed on Linux systems with respect to ca...
There are a number of optimizations in the kernel and ext4 to reduce the overhead of atime updates, such as relatime (only update atime when it is older than mtime or more than a day old) and lazytime (delay atime updates and aggregate writes of multiple inodes in a single block only when needed or if more than a day ...
How useful is it to disable access time logging on SSD and are there disadvantages doing so?
1,502,919,320,000
related to thread How to edit /etc/fstab properly for network drive? i have added the following line to /etc/fstab //192.168.0.52/public /mnt/PC52/public cifs username=guest,password="" 0 0 if i call sudo mount -a the directory mounts and all works fine, but if i reboot the computer it fails to add at boot, i feel li...
sorted it. as its an open directory it doesn't matter what password i send, as long as i add the password field setting the password to something it works. changing the line in fstab to the following, it works fine //192.168.0.52/public /mnt/PC52/public cifs username=guest,password=123 0 0
mounting smb at boot with /etc/fstab
1,589,564,789,000
I am trying to set up a virtual drive from a file. This file will then be written to a flash device (not relevant). Because creating and manipulating the virtual drive will be in a script, I need to do it in user space, i.e., not as root. The script is for building and creating an image for a flash device; so, running...
The step you haven't mentioned is how you created the ext4 filesystem, which is the source of the problem. Using mkfs.ext4 /home/user/drive.img will create a root inode owned by root, so when you mount it, it will still belong to root. The solution is to add option -E root_owner to make it belong to the user running ...
Mounting as <user>, a loop still assigns root ownership
1,589,564,789,000
I recently started using systemd in linux. On systemd mount, I have some observations: mount unit file is generated with mount point name when there is an entry in /etc/fstab. I also observed the two scenarios listed below: Precondition: I have below entry in fstab: /dev/sda3 /test_mount ext4 rw,acl,nobarrier,node...
systemd-fstab-generator creates the mount units under /run, because that filesystem is a tmpfs (in-memory filesystem), which is not preserved across reboots, so it's expected to be replaced with an empty volume on every boot. (/var/run is supposed to be a symlink to /run, which is the tmpfs mount. That name exists for...
Systemd generated mount file is not deleted when the mount point entry in fstab is deleted or modified
1,589,564,789,000
I have an nfs device mounted. I am trying to set it with nosuid through /etc/fstab, but I am having trouble. I have set /etc/fstab correctly (I think), but here's the issue. When I reboot the system and run mount | grep nfs, I can see that it's not mounted with nosuid. Then, when I run umount -l sunrpc, and then m...
I guess you are mixing rpc_pipefs with nfs. rpc_pipefs is helper necessary for nfs operation but it is not actual mount of remote nfs server. Most of the time it can be safely omitted from /etc/fstab (usually proper defaults for rpc_pipefs are hardcoded in nfs startup script which ignores /etc/fstab). For example the ...
Why is /etc/fstab not being used on boot?
1,589,564,789,000
I'm trying to create an appropriate /etc/fstab file for my LFS partition, as in LFS part 8.2. How do I find out the file systems for my / mount-point and my swap mount point ( and )? And how do I find out the type of my / mount-point? I'm using a Ubuntu 17.04 host, and this is what I'm using as a model (pasted belo...
as per lfs book description: Replace <xxx>, <yyy>, and <fff> with the values appropriate for the system, for example, sda2, sda5, and ext4. your root partition described by: /dev/<xxx> / <fff> defaults 1 1 is the same partition you set up in chapter "2.4. Creating a New Partition"...
How do I create a proper /etc/fstab file for my LFS partition?
1,589,564,789,000
I have a kubernetes cluster running on baremetal ubuntu server 16.04 with glusterfs and heketi. Heketi will automatically add volume groups and add those to fstab. Due to $reasons, that volume group might not exist on boot. If the initramfs encounters a non-existant volume group in the fstab, it will cease to boot and...
If your ubuntu has systemd, you can edit /lib/systemd/system/local-fs.target and comment out the last two lines: #OnFailure=emergency.target #OnFailureJobMode=replace-irreversibly I haven't tested this extensively and don't know if there are any risks or side effects involved, but so far it works like a charm. It mou...
boot server despite wrong fstab
1,589,564,789,000
From systemd/fstab-generator.c it follows that systemd treats root= as required kernel parameter, the only configuration source for /sysroot mount. However from kernel/init/main.c and kernel/init/do_mounts.c it is not clear if that is so. Question: how can one do kernel init without 'root=' parameter (and tell systemd...
In do_mounts.c, the variable saved_root_name is set to the value of the root= command line parameter, if present. This value is a path-like string passed by the kernel, it typically looks like /dev/something (though the /dev/ prefix is optional) but it doesn't actually correspond to any on-disk path. If the root= para...
kernel init without 'root=' parameter
1,589,564,789,000
Fresh Arch Linux install on (hardware) RAID0 under 64-bit UEFI system with GPT partitions. Had to add MODULES="ext4 dm_mod raid0" HOOKS="base udev autodetect modconf block mdadm_udev filesystems keyboard fsck" into /etc/mkinitcpio.conf so that partitions on RAID0 are recognized properly on boot. Otherwise, ERROR: ...
Since it's now clear you're running software raid ("fake raid", where the firmware/BIOS also has a software RAID implementation to make booting Windows off of it easier—in this case, Intel Matrix Storage), you're probably seeing some bug in Arch's initramfs w/r/t partitioning md arrays. True hardware raid is almost en...
'PARTUUID' in '/etc/fstab' and (hardware) RAID0 don't play well together, do they?
1,589,564,789,000
Everything has been going fine for 6 months now until my swap suddenly vanished today. Now that I look into it, I find that my disk partitioning is a bit weird. What happened to it, and what should I do to recover it quickly without having to reinstall everything? (I need to finish a job before I do a fresh install ag...
To enable the swap device you can swapon /dev/mapper/ubuntu--vg-swap_1 If there is an error with that swap space, because it was destroyed somehow, you can reformat the swap device with mkswap /dev/mapper/ubuntu--vg-swap_1 Check the related manual pages swapon(1) and mkswap(1) for more information.
Swap suddenly vanished from Debian?
1,589,564,789,000
SETUP Im running Debian 8 (jessie/testing) amd64 with systemd. On my system partition containing a btrfs filesystem, I do have the following layout: /dev/sda1 |-root |-root_snapshots/ |-snapshot#1 |-snapshot#2 In order to fully boot from a snapshot, I currenty have to change the subvolume: in /etc/fstab ...
I think it might be helpful. There is a list of kernel command line params which systemd understands: http://www.freedesktop.org/software/systemd/man/kernel-command-line.html There is an option fstab=, and rd.fstab Takes a boolean argument. Defaults to "yes". If "no", causes the generator to ignore any mounts or sw...
systemd mount 'rootfs' according to '/proc/cmdline'
1,589,564,789,000
I have an small server in my house with an external usb 2TB hard drive: /dev/sdb1: LABEL="Data" UUID="eedc3098-221d-4800-b8b4-efa4fef23f5f" TYPE="ext4" I have the next line in /etc/fstab: UUID=eedc3098-221d-4800-b8b4-efa4fef23f5f /home/data ext4 defaults 0 2 When I boot the system I get the ...
The problem might be that the drive needs to be initialized by the USB driver and this initialization takes time, so that when the partitions in fstab are mounted, the drive isn't ready yet, but by the time you log in, the drive is ready and mounting or fsck works. If this is the problem, try adding the option noauto ...
Error mounting drive with fstab
1,589,564,789,000
I made a separate partition for /home, but during installation process I forgot to mount it and hence no entry was made in fstab. I had everything in partition under the root ( well not the swap and efi system partition). I realised what I did, very late and by that time I had already installed packages and wrote data...
Because you already have an home partition, we should be able to do this with out a live OS. mount the new home on /mnt move files from old-home (/home), to new home (/mnt). (/home should now be empty). remount new-home to /home (bind mount sudo mkdir -p /home && sudo mount --bind /mnt /home (you can also use --move,...
Add (already created) partition for /home after OS installation
1,589,564,789,000
I have installed rust by curl https://sh.rustup.rs -sSf | sh and followed instructions thereof. Installation was successful and the PATH was added to the .bash_profile as follows: export PATH=$HOME/.cargo/bin:$PATH echo ing $PATH shows variable has been set properly, as follows: rust@rusty:~$ echo $PATH /home/rust/.c...
The issue was the /etc/fstab entry that I had. It worked after I changed the way I was mounting. Here is my new fstab entry: /dev/sda4 /home/rusty ext4 defaults 0 2 I changed the owner & group of /home/rusty to be rusty and it worked.
cargo execution - permission denied [PREVIOUSLY]rust installation - permission denied
1,589,564,789,000
discussion - we have redhat linux machines and my question is about the UUID configuration in /etc/fstab file , and in which cases UUID risk the OS as I understand we MUST NOT use UUID in /etc/fstab if using software RAID1. Why? Because the RAID volume itself and the first element of the mirror will appear to h...
We'll just go ahead and test this on ArchLinux and mdadm. But first of all this shouldn't matter for partition based arrays because then the member partitions have their own UUIDs so this would in theory only appply to whole disk members. TL;DR: This isn't a real problem even with old metadata blocks. It might have be...
UUID in fstab + in which cases we must not configured UUID in fstab
1,642,003,952,000
I wish to make the following mount permanent: [michael@devserver ~]$ findmnt | grep public └─/home/jail/home/public/repo /dev/mapper/centos-root[/home/michael/testing/gateway/repo] xfs ro,relatime,attr2,inode64,noquota [michael@devserver ~]$ I created this mount using the following: sudo mkdir /home/ja...
Well, your /etc/fstab file does not seem to have bind mount-point configured. Be so kind and add the following line: /home/michael/testing/gateway/repo /home/jail/home/public/repo none bind,ro 0 0. Then, I would type the following command to verify, if mountpount is persistent and works. mount /home/jail/home/publ...
Editing /etc/fstab to permanently bind mount directory
1,642,003,952,000
We want to comment the specific line in fstab file that contained the relevant UUID number Example: Disk=sde UUID_STRING=` blkid | grep $Disk | awk '{print $2}' ` echo $UUID_STRING UUID="86d58af9-801b-4c25-b59d-80b52b4acc61" sed -e "/$UUID_STRING/ s/^#*/#/" -i /etc/fstab but from /etc/fstab , the line - UUID=86d58...
The only issue with your code is that your variable contains the UUID in double quotes, while the UUID in /etc/fstab is not in quotes. Suggestion: Use the export output format of blkid which exists to allow you to eval the output, which would set the relevant shell variables, for example UUID. Then use $UUID in your ...
comment the specific line in fstab file that contained the relevant UUID number
1,642,003,952,000
I have a network drive hosted on a Windows10 Machine, it mounts fine to my CentOS7 machine through the command: sudo mount -t cifs //ipaddress/sharedfoldername /mountpoint --verbose -o credentials:/credential/file/location,file_mode=0666,dir_mode=0777 The file and dir modes are for the permissions on the mount. Anywa...
The tmpfs: Bad mount option huge turns out to be a kernel bug: see this link. The "Error connecting to a socket" means the system is trying to mount the Windows share before network interfaces have been fully enabled. It should not be happening, but you could add a new systemd-style mount option to be explicit about i...
Permanent network drive mount in fstab not working (due to network not being online whilst attempting to mount)
1,642,003,952,000
I don't understand why the following filesystem shows up in /etc/fstab, but not using df -a: /dev/sdb1 /var/log/apache_logs reiserfs user,noauto,rw,exec,suid,user_xattr 0 2 I've verified that the folder /var/log/apache_logs does indeed exist and can be accessed. Shouldn't the df -a command li...
Note that the filesystem mount options in /etc/fstab include the noauto option. As a result it will not be mounted automatically at boot time, nor with mount -a. It will only be mounted with a specific mount /dev/sdb1 or mount /var/log/apache_logs command. Apparently this command has not been issued yet. df -a will l...
Filesystem show up in `/etc/fstab`, but not using `df -a`?
1,642,003,952,000
I only recently realised that you can specify multiple swap partition, spreading them across drives. Well that's great for me as my desktop system often uses swap space and I have three different drives spread across two controllers. One of which is a dedicated raid5.If your curious, it's a retired server. :) If you s...
The options field in fstab is comma-delimited (note every other (non-swap) line). You have spaces. Fix that and it should work as intended.
LinuxMint, unable to set swap partitions to equal priority
1,642,003,952,000
edit: I think I solved my own problem -- see bottom of question for details I have a copy of all the files under / on an external usb-connected harddrive. To test whether this backup works, i'm trying to boot from it. However, this is proving a bit more difficult than I expected. In what I assume is the BIOS, I selec...
your problem is root=/dev/sda2 because that is doing a mount by device name which is not unique. If you have only one drive installed, then that will typically always show up as /dev/sda so no problem. But install a second disk or any other thing in addition that shows up as /dev/sd? then there is no guarantee of th...
Using grub to properly boot from an external backup drive
1,642,003,952,000
I have a question about mount in Linux Fedora. I have a mount point inside my home directory. The mount point is at /home/user/project and in fstab I have added the line: /dev/mapper/fedora-proj /home/user/project ext4 defaults 1 2 The directory /home/user/project has the file permissions 0755 and it is owned by user...
The permissions for the root of a mountpoint are stored on the mounted filesystem (it actually makes sense this way; otherwise, where would the permissions for the root directory / be stored?). You change them the normal way: chmod, chown, etc. Before mounting, you're seeing the permissions for the mountpoint director...
Mount permissions on Linux
1,642,003,952,000
I placed an entry in my fstab file to add a swap partition. I used output of a bash command to get the UUID of vdb1 partition(I can't copy paste). Like this: UUID=$(blkid -o value -s UUID /dev/vdb1) swap swap defaults 0 0 I'm getting a parse error when I run 'mount -a'. How can I do this correctly?
As Kusalananda comments, fstab cannot interpret embedded shell commands, resulting in your fstab causing this error. With regards to your comment about cut/paste - I understand that typing in a uuid is daunting and likely error prone, but you could simply append the uuid to the end of your fstab by executing: blkid -o...
/etc/fstab - using bash command output to get UUID?
1,642,003,952,000
I am trying to create an automated mount for an external hard drive, but it keeps failing. I am a little newbiew at linux. I have googled and searched in StackExchange and I tried a lot of things, but I did not find a solution for my problem. OS: Raspbian Stretch Those are the steps I did: Format external drive to ext...
You're overcomplicating things. The fact that the command sudo mount /dev/sda1 /mnt/hdd_moc works correctly shows you that your system is able to mount a ext4 filesystem without specific options. In fact, ext4 is one of the most common fs for Linux (if not the most one). The mount options you're trying to use don't e...
Wrong fs type, bad option, bad superblock on /dev/sdaX
1,642,003,952,000
I am trying to find the correct syntax for mounting a file share of nfs. On the host I have the /etc/export file set like so: /mnt/externalHD 192.168.0.8(ro,sync) and the client fstab like so: 192.168.0.2/mnt/externalHD /home/Plex nfs auto 0 0 I have also installed nfs-common and nfs-kernel-server but have had no luck...
In the /etc/fstab file you are missing a ":", it should be: 192.168.0.2:/mnt/externalHD /home/Plex nfs ro,sync 0 0 19.2.1. Mounting NFS File Systems using /etc/fstab The file is also /etc/exports and not /etc/export. You should start/restart the nfs service after changing /etc/exports. I will also leave the link abou...
NFS Debian Jessie server and client
1,642,003,952,000
I was given a HDD that was encrypted using dm-crypt and I'd like to mount it as /disk2 preferably having the decryption password stored in a file, so I won't have to enter the passphrase when booting, but it's not that important. When I try to open the disk in the file manager providing the encryption passsword, I get...
This sequence allowed me to access the data cryptsetup luksOpen /dev/sdb1 disk2 modprobe dm-mod vgchange -ay mount /dev/disk2/disk2 /disk2 So I offer the reward to the one who'll tell me how to make this change permanent.
Mount encrypted volume in Debian
1,642,003,952,000
If I want to mount a file system at /myname is it possible by just editing fstab file? Or should I do more to be safer? Is any other way to do it, or its not a good idea to do?
This is the way to do it. By editing the fstab file, you'll have options to maintain the mount across reboot. Also, you'll be able to ask mount to simply mount /myname and it'll work out. So to answer your question, definitely yes.
creating custom mount point in / for a file system
1,642,003,952,000
I have accidentally fstab on my Ubuntu 16.04 LTS and now it loads in read-only mode. After the accident there was line: /dev/disk/by-uuid/556d8ecf-44cd-402b-8fd0-d120ccd61491 /mnt/556d8ecf-44cd-402b-8fd0-d120ccd61491 auto nosuid,nodev,nofail,x-gvfs-show 0 0 I changed it to /dev/sda1 / auto nosuid,nodev,nofail,x-gvfs-s...
For Ubuntu the default line generally looks like this: # <file system> <mount point> <type> <options> <dump> <pass> UUID=eafe03c8-55fd-4f2c-b1eb-ed8e174f55e9 / ext4 errors=remount-ro 0 1 The file system UUID will be specfic to your system. Get it with sudo lsblk -o "NAME,FSTYPE,LABEL,UUID" e...
What is correct fstab line for root file system in Ubuntu 16.04?
1,642,003,952,000
Silly me obliterated the contents of /etc/fstab via this: echo xxxx xxxx xxxx xxx > /etc/fstab Now the server is still up and running. How can I recover the contents of /etc/fstab before it fails upon the next reboot? I remember something about anaconda which generated the file? Can it still be used to regenerate the...
Making this community wiki to invite contribution from someone familiar with CentOS/RHEL 7.2 The UUIDs come from your blkid output. The paths come from the other output, and the filesystem type and options from /etc/mtab. The dump and fsck order fields are guesses. (I used the same fsck pass because it's two different...
Accidentally erased contents of /etc/fstab in Centos 7.2
1,642,003,952,000
I'm not sure if this will make sense but I'm having a problem. I have an external hard disk drive that I'm using for my torrent files. It is mounted using fstab. Now here's a problem, some times maybe because of power interruptions, my HDD is unmounted and (rarely) failed to remount. When this failure of remount happe...
You could make /home/user/Downloads be a link to a directory deeper in on the mount, which is mounted elsewhere. That would probably cause the torrent download to fail. E.g., if the target directory is /user/Downloads on the HDD, which is mounted on /HDD, then /home/user/Downloads should be a link to /HDD/user/Downloa...
read only mount point
1,642,003,952,000
Yesterday I moved my home directory from the root partition to another partition following the steps here. Basically copied all files to the new partition and added a new fstab entry with the partition UUID and /home mount point, and restarted the system. Everything worked as expected, but my question is, what happen ...
If you copied the files to the new partition but didn't delete them from the root partition, the old ones are masked or hidden by mounting the new partition on top of them. In that case, you should still have the same amount of root partition being in use, no space being freed. Unless we both missed that part, deletin...
Fate of home folder after reallocation to other partition
1,642,003,952,000
Highlighted in orange is the swap location. But it isn't relative to any path, where is it located?
The orange text isn't the location, that's identifying the entry as swap. It's located on the logical volume listed before it. You can get more information on that using lvdisplay.
Where is the location of this swapfile in /etc/fstab
1,642,003,952,000
I got 2 partition I want to mount sdb1 which uses ext2 file system sdc1 which uses ext4 file system I added this 2 line on fstab /dev/sdb1 /home2 auto auto,noatime,default 0 0 /dev/sdc1 /home3 auto auto,noatime,noload,data=ordered,commit=10,default 0 0 Looks like it's not correct because I fail to mount. How to corr...
I wonder if I should delete this question. The problem is I use default while I should have written defaults. It's too localized I guess.
How should I fix my fstab
1,642,003,952,000
When is the right time to mount /tmp (on Debian)? For /home I would not feel bad just to echo "/dev/foo /home type defaults 0 0" >>/etc/fstab - but can I be sure that /tmp is not used by any programs when the fstab is applied? I am using either Ubuntu or plain Debian or Debian/Grml - this would not make much differen...
This doesn't appear to be explicitly specified by the Debian policy, but Debian does support making /tmp a separate filesystem (as well as /home, /var and /usr). This is traditionally supported by unix systems. And I can confirm that making /tmp a tmpfs filesystem, and mounting it automatically via /etc/fstab, does wo...
When to mount /tmp (and other temporary directories)
1,642,003,952,000
I'm trying to mount an SMB-share after a wireguard connection has been established. Therefore I did the following things: created a wireguard config made systemd start the connection on startup systemctl enable [email protected] added the following entry to fstab //192.168.0.10/home /mnt/smb cifs [email protected],c...
I suspect the interface setup by wireguard isn't ready just because the service started. Your issue may be related to this in which case the solution is to wait for the virtual device. After=network.target [email protected] Requires=sys-devices-virtual-net-wg0.device
mount smb share after wireguard with fstab or systemd
1,642,003,952,000
I am trying to follow the example partition scheme in https://www.debian.org/doc/manuals/securing-debian-manual/ch04s10.en.html Somehow, the fstab file doesn't specify a root partition. Why?
Nowadays, on Linux, the root partition is not strictly needed in /etc/fstab because it is mounted on / at boot time owing to the root= boot parameter. To know your current boot parameters, just cat /proc/cmdline (details on the output with man kernel-command-line). If you don't have a line for / in /etc/fstab, you can...
No root partition in the Debian example partition scheme
1,642,003,952,000
I'm working on a Linux-like operating system for aarch64, based on a 5.6.4-v8+ kernel for Raspberry Pi 3 (Model B+). The Kernel configuration options include: CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y It is possible to verify that the system is effectively mounted. dmesg | grep devtmpfs [0.071] devtmpfs: initialized ...
To my knowledge, the kernel does not automatically mount devtmpfs. It has to be done from userspace, either "manually" (one of the start scripts contains something like: mount -t devtmpfs none /dev), or via fstab. On my custom linux systems (raspberry zero/4, and 86_64), I do not rely on a mounting mechanism based on ...
Is it necessary to mount devtmpfs with /etc/fstab?
1,642,003,952,000
we have rhel server version 7.5 and from lsblk we can see only the following disks , and all disks are with ext4 filesystem lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 278.9G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 0 278.4G 0 part...
Perhaps your /etc/fstab specifies some mounts by either UUID= or LABEL= (causing mount to loop through all block devices it finds) and you have some garbage files as /dev/sdf and /dev/sdg that are not actual device nodes? Run ls -l /dev/sdf /dev/sdg. If it displays anything, and the letter in the very first column of ...
mount + mount: special device /dev/sdX does not exist
1,642,003,952,000
Fresh install Ubuntu Server 20.04. cat /proc/filesystems shows exfat in the output. Not installed any other packages for exFAT as it should work from kernel. Mounted 2 internal HDDs on in fstab as below #INT-1TB-4K Internal HDD mount to /mnt/INT-1TB-4K UUID=0E7E-6579 /mnt/INT-1TB-4K exfat defaults, permissions 0 0 #I...
exfat behaves just like vfat and since it has no concept of permissions, chown and chmod both won't work. You have to specify mount options such as uid, fmask and dmask, e.g. defaults,noatime,nofail,uid=1000,fmask=0133,dmask=0022 (run id to find out what your ID is).
Native exFAT support in 5.4 kernel - issues?
1,642,003,952,000
we need to do e2fsck on all our disks ( redhat linux - 7.2 ). Since on each machines we have 22 disks ( ext4 file-system ) it will take time to do it on each disk as all know when doing e2fsck need to umount the mount point folder and then use the e2fsck on the disk. Example: umount /grid/sdb fsck /dev/sdb mount /gri...
That’s nearly right; you should use a pass number of 2 (since these aren’t the root file system), and it really has to be the sixth field, so UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 2 UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 2 UUID=941546ac-2168-41...
short way to perform efsck when we have huge number of disks
1,642,003,952,000
I don't have permission to chown the mounted directory /mnt/hdd. I am currently logged in as root. The ls -l output is: rwxrwxrwx 1 root root 131072 Jan 1 1970 hdd I am mounting it via fstab config: /dev/sda1 /mnt/hdd exfat-fuse defaults 0 0 I am trying to assign the owner of that drive to www-data via that comman...
/mnt/hdd is an ExFAT filesystem, which does not actually have a concept of Unix-style file ownerships nor permissions, and so cannot store them. This is why your chown command is failing. The ownerships and permissions displayed by ls -l are actually created on-the-fly by the exfat-fuse driver according to the mount o...
No permission to chown /mnt/hdd
1,642,003,952,000
I installed Arch Linux from arch linux evolution-image to a virtual device. I tested the installation with GRUB MBR and GRUB efi. Inside virtualbox, I can see the grub menu, but when I select Arch Linux it gives me a Kernel panic - not syncing: VFS: unable to mount root fs on unknown block(0,0) What is going wrong?
I had a wrong fstab generated by genfstab (as pointed out here). So the kernel (please correct me, if this is wrong) didn't find my root-partition. I generated fstab with labels and had a partition with a space in it. In fstab this must be written with \040. genfstab wrote garbage for the space. Other answeres suggest...
Arch Linux in virutalbox: kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0)
1,642,003,952,000
I have following line in /etc/fstab 192.168.1.10:/data /mnt/data fuse.sshfs rw,noauto,nosuid,nodev,noexec,_netdev and following line in /etc/rc.local: mount /mnt/data During boot process, the share is mounted automatically from a remote server via sshfs. Sometimes the server is offline and the connection times o...
sshfs allows ssh client options to be used. You want to use the ssh option ConnectTimeout=5. So in the 4th field of your fstab line, append ,ConnectTimeout=5.
timeout when initiating a sshfs connection
1,642,003,952,000
I installed an additional Linux installation into a separate partition set the /home directory into that partition as well and afterwards I modified /etc/fstab to point to the old partition. How can I access the contents of the initial /home directory? # initial configuration UUID=001 /disks/disk1part1 ext2 auto,us...
After a mount --bind / /mnt you can access the /home directory of your root partition as /mnt/home, even if /home is already mounted over.
How do you access the contents of a previous mount after switching to a different the partition?
1,642,003,952,000
I'm trying to execute a script located on an NTFS partition that I own. I own the mount point, which is ~/Migration. ls -l in the directory where the mount point is contained shows me drwxrwxrwx 1 technomage technomage 4096 Sep 30 18:04 Migration Despite being the owner of the entire structure, from the mount po...
You have your options right in /etc/fstab, but the order matters; exec has to come after user because user imposes noexec (among others). So your /etc/fstab entry should look like this: UUID=6F537BB96F6E0CBC /home/technomage/Migration ntfs-3g rw,umask=000,uid=1000,gid=1000,user,exec 0 0 After the change to /etc/fstab...
NTFS Partition Not Mounting Properly, Cannot Execute Despite Ownership
1,642,003,952,000
The following line: /path1 /path2 posixovl none 0 0 fails with the error: /sbin/mount.posixovl: invalid option -- 'o' Usage: /sbin/mount.posixovl [-F] [-S source] mountpoint [-- fuseoptions] This is because mount.posixovl uses a non standard mount syntax, and fstab will call it assuming default mount synta...
I wrote a wrapper for mount.posixovl that enables it to be used with fstab First, rename /sbin/mount.posixovl to something else, like /sbin/mount.posixovl.orig Finally, create a new file /sbin/mount.posixovl whith the following contents: #!/bin/bash # wrapper for mount.posixovl to conform with common mount syntax # wi...
Mount posixovl using fstab
1,642,003,952,000
I had a Slack 13.1 machine with 2.6.36 kernel. Then, I updated the kernel to 3.12.1. This machine has connected: a bootable disk with three partions (/dev/sda1 --> Linux OS files..., /dev/sda2 --> data, /dev/sda3 --> more data), a "dummy" SSD just to store things (/dev/sdb1) and USB ports. The fact is that whenever I ...
The problem is that the disk names are created sequentially; the first disk to be detected by the kernel becomes /dev/sda, the second is /dev/sdb etc. The solution to your problem would be to disable use (i.e. detection) of USB disks (including USB drives) until after your system has completed booting. This could be d...
Boot process - Dev sdX name changes
1,642,003,952,000
What is the best way to point a folder in one of my websites directory to a folder in a second HDD I just had installed? I see things about fstab and symlink but am lost at what is the best way to do it. My main HDD (sda) has almost filled up so I would like to move the uploads folder of one of my sites, which contain...
In the following, LABEL can be anything you want, /dev/sdb1 is the partition you create and choose to use on your new HDD and /var/www/myfiles is where your files are currently located. Alter these to suint your scenario. Partition the new HDD. You can have one partition that takes up the whole disk, or make a smal...
Point folder on main HDD to newly mounted 2nd HDD
1,642,003,952,000
I want to enable quotas. My fstab currently has: # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation UUID=97439827-cdb6-4406-8403-76ab1de7a3b0 / ext4 errors=remount-ro 0 ...
As per man page of mount We can define only three option in errors i.e continue|remount-ro|panic errors={continue|remount-ro|panic} Define the behaviour when an error is encountered. (Either ignore errors and just mark the filesystem erroneous and continue, or remount the filesystem read-only, or panic...
How to enable quotas in the fstab file?
1,642,003,952,000
I have an external USB drive which my system recognizes as /dev/sdb1. I want to have it automounted with 755 permissions on boot and shared over the network with samba. I created the mount point /mnt/mybook for it, and I've mounted it manually with no problems. If I do mount /dev/sdb1 /mnt/mybook, it mounts correctly ...
You could try an alternate approach, which is to recognize your device at the udev level and use /dev/mybook-partition in /etc/fstab. Put something like the following in /etc/udev/rules.d/dwilliams.rules: KERNEL=="sd*", PROGRAM=="/sbin/blkid %N", RESULT=="C252-9CA3", SYMLINK+="mybook-partition" The section on Auto mo...
Why is my fstab entry for an external USB drive not working?
1,642,003,952,000
I need to read and write to an usb ntfs pendrive through www-data group (that has uid 33) so I have added UUID=34A0456D004536A0 /home/mypath ntfs-3g rw,defaults,uid=1000,gid=33,dmode=770,fmode=660,dmask=007,fmask=117,auto 0 0 the disk is mounted but with generic permissions applied to all USB drivers ignoring everyth...
Edit udisk2 mount options with: sudo nano /etc/udisks2/mount_options.conf and add [defaults] ntfs_defaults=uid=$UID,gid=$GID,windows_names ntfs_allow=uid=$UID,gid=$GID,umask,dmask,fmask,locale,norecover,ignore_case,windows_names,compression,nocompression,big_writes if still doesn't work: sudo nano /etc/udev/rules.d/9...
Permissions and groups in fstab ignored
1,642,003,952,000
This is a CentOS 7 system This actually starts with the kafka service. Kafka is failing to start due to a dependency on remote-fs.target When I try to manually run remote-fs.target: sudo systemctl start remote-fs.target A dependency job for remote-fs.target failed. See 'journalctl -xe' for details. So I run journalc...
If you are running systemd, it will create mount units from your /etc/fstab on boot. If your fstab changes, you need to run sudo systemctl daemon-reload to refresh these units. The command mount -a will actually show a warning about this if it's run after a change to fstab without reloading the daemon.
systemd remote-fs.target trying to mount remote filesystem that has been removed from fstab
1,642,003,952,000
I'm seeing apparently conflicting information on the proper way to auto-mount USB flash drives at boot. Most instructions on how to do it say to use an entry in fstab. Gnome Disks has a built-in feature to automate this entry. It seems to recognize a flash drive as a flash drive and know how to properly make an ent...
Eduardo Trápani's comments pointed me in the right direction to research the gist of the issue. I'll close the loop with this self-answer for anyone else landing here. Problems preventing a successful boot can leave the computer in a state that requires jumping through hoops to get it operational again since you don'...
Which is the correct mechanism for auto-mounting a USB flash drive at boot?
1,642,003,952,000
I have encrypted my external harddrives using cryptsetup and a key file. My goal is now to automatically decrypt and mount them upon plugin. I used to do so using this blog post (unfortunately in German). This used to work on my old Ubuntu 16.04 machine, but since I upgraded to Focal this does not work anymore. What I...
mount won't work in UDev rules because UDev runs with its own mount namespace. You need to use systemd-mount instead, see this arch wiki article for details. From udev manpage: Note that running programs that access the network or mount/unmount filesystems is not allowed inside of udev rules, due to the default sandb...
Automatic mount of encrypted external harddrives
1,611,052,742,000
I currently have mounts that look like this: Filesystem Size Used Avail Use% Mounted on /dev/sda1 16G 7.7G 7.3G 52% / /dev/sdb2 237G 20G 207G 9% /var/www /dev/sdb1 16G 7.5G 7.4G 51% /var/lib/jenkins Unfortunately, I don't have enough room on /dev/sdb1. I'd like to move things aro...
Your handling of /var/www and /var/lib/jenkins seems OK, but you’ve missed one important part of the exercise: you need to move anything in /var, stored on /, into the new /var. To do that reliably, you’ll need to stop anything currently using /var. I suspect the easiest way to do that will be to reboot to a live envi...
Safe-way to remount partitions
1,611,052,742,000
I'm running on Debian. When I run mount | grep -i cgroup, I see, tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755) cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexe...
On systems using systemd, the cgroup mountpoints are mounted by systemd itself, based on its configuration. If the systemd.unified_cgroup_hierarchy option is specified, its value (true or false) determines whether a unified cgroup v2 hierarchy is used (true) or a hybrid or legacy cgroup hierarchy (false). If no option...
What specifies the version of cgroups (cgroups or cgroups2) used by the distro?
1,611,052,742,000
I have a Debian 10 machine which has a nfs mountpoint specified in fstab. This is the line 10.0.0.2:/mnt/md0 /mnt/md0 nfs4 _netdev,auto,nofail 0 0 I thought nofail would prevent my boot sequence hanging for (precicely) 1:32 while a time out takes place while the system is looking for the nfs drive. How...
For automatically mounting NFS when present, autofs can be used (autofs) As mentioned in man fstab(5) nofail do not report errors for this device if it does not exist. AFAIK nobootwait was only for ubuntu-based distros (which is not a valid option anymore) You can use x-systemd.device-timeout= (more info systemd.mo...
Debian 10 fstab - Is there an option to prevent boot sequence hanging when device does not exist?
1,611,052,742,000
I'm running archlinux and have an ext3 10Tb internal harddrive that is failing to mount on boot through the fstab entry. If I use mount /dev/sdc1 /media, the mount succeeds however attempting to do a mount -a gives the result mount: /media: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or he...
The permissions option in your /etc/fstab isn't valid for an ext3 filesystem
mount /dev/sdc1 /media works but fstab fails to mount
1,611,052,742,000
Right now a system uses LVM on LUKS, with only 2 lvm partitions / and /home. If I now want to make use of tmpfs for /tmp and /var/tmp, can I just add the necessary changes to /etc/fstab and it will work without breaking anything? Or could this cause any problems? tmpfs /tmp tmpfs size=16...
Yes, it should work - assuming you have enough RAM for that 16GiB ramdisk and all your running applications! If you only have 16GiB RAM total, it doesn't really make sense to allocate so much memory to a ramdisk that it could push running applications - or itself - partially into swap space, because that would slow yo...
Enabling tmpfs on an already installed system
1,611,052,742,000
I mounted /usr from the nvidia TX1 dev board to an external SSD connected to the board. I am wondering how I can restore it original state without re-flashing? If I power down,and disconnect the SSD, and start, there will be no /usr directory. I was thinking of making a copy to /root/usr and updating fstab to point ...
Use a bind mount of / to make the original /usr (which should probably be empty there if /usr was mounted over it before /usr was ever populated) available and copy the mounted /usr over it. # mkdir /root/underlyingroot # mount --bind --make-private / /root/underlyingroot # cp -ax /usr /root/underlyingroot # umount /r...
Unmounting /usr from an external drive [closed]
1,611,052,742,000
Why does a copy operation to a directory that serves as a mountpoint not copy the data to the mounted drive? I bought a 2 terabyte drive and mounted it in a subdirectory within my home directory. Where /dev/sdb is my 500GB system drive and /dev/sda is my 2TB data drive: Partition Mountpoint /dev/sdb1 -> / /...
You mention that your copy command is cp -r /mnt/music data/ when you're in ~. This means that you're copying your data into /home/<username>/data, since ~ would expand to /home/username. However, your external drive is mounted as /home/data, according to the mount output you supplied. To finish your goal, you need t...
Why does a copy operation to a directory that serves as a mountpoint not copy the data to the mounted drive?
1,611,052,742,000
#include <fstab.h> struct fstab *getfsent(void); http://man7.org/linux/man-pages/man3/getfsent.3.html getfsent reads a line from /etc/fstab file and return a variable of type struct fstab*. Do I need to free it? Or it's managed by someone else? If it's managed by someone else, why isn't the return type const struct ...
At least for glibc, you shouldn't. The source indicates that the pointer is to a member of an internal state struct, so it's not something you can directly free. The docs also hint at this: To read the entire content of the of the fstab file the GNU C Library contains a set of three functions which are designed in ...
Should I free the fstab pointer returned by getfsent?
1,611,052,742,000
We have the following disks and there mount point: /dev/sdb /appTdb/sdc ext4 defaults,noatime 0 0 /dev/sdc /appTdb/sdd ext4 defaults,noatime 0 0 /dev/sdd /appTdb/sde ext4 defaults,noatime 0 0 /dev/sde /appTdb/sdb ext4 defaults,noatime 0 0 We want to enable fsck on disks - sdb - sde , ( I mean to run fsck during boot ...
IIRC, the numbers are just the order which disks get scanned before others. So, if 1 is used for all disks, then all the disks have the same priority for scanning. If one disk fails, then the boot fails, but it could be any of the disks that causes the failure. Using, say, 2 on some of the disks will cause those di...
How to Force fsck for all other non-root partitions
1,611,052,742,000
I have a system that used to have 3 different Linux flavours running. I no longer wanted one of them so I moved and expanded with gparted and all is well, except I now have /sda3, /sda4, /sda7, /sda8 - I deleted /sda5 and /sda6 - so I have a gap in the sequence. I've seen that gdisk offers a 'sort' function, which loo...
To confirm, using 'sudo gdisk' and performing the (s)ort option works brilliantly with UUID disks under GPT disk type. Running 'sudo grub-install /dev/sda' and then 'sudo update-grub' took care of all the tiresome '/etc/fstab' and '/boot/grub/grub.cfg' editing automatically. Very easy overall.
How to re-order partitions safely? Safe to use gdisk 'sort' option? Edit fstab + grub.cfg necessary?
1,611,052,742,000
I have set several folders to mount at startup into fstab. This works fine. However, I would like to be able to bypass the mounting process in some occasions. Typically, when I know the remote folders are not available. Is there a mean to bypass the auto mounting process at boot time? I thank you for your help.
If you like to make a partition or network share optional, you can define the mount option nofail comma-separated to the other options you have defined. What will happen is, the system will still attempt to mount the partition/share, but if it is not available or not accessible for whatever reason, it will silently fa...
Bypassing auto mount at boot time
1,611,052,742,000
TL;DR: custom partitions and trash is not showing on Thunar via AwesomeVM. XFCE: Awesome: My fstab is: # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a device; this may # be used with UUID= as a more robust way to name devices that works even if # disks a...
Finally I found the reason. This bug is related to lightDM starting awesome without dbus-launch. I fixed the whole problem described here by editing by hand the file /usr/share/xsessions/awesome.desktop as: [Desktop Entry] Name=awesome Comment=Highly configurable framework window manager TryExec=awesome Exec=dbus-laun...
How to get the trash and x-gvfs-show partitions on Thunar via AwesomeVM?
1,611,052,742,000
I encountered an issue where my Ubuntu 17.04 VM would enter maintenance mode on every boot. However, if I pressed Ctrl-D, or exited the maintenance shell and continued the boot, the system would start up fine, with no failed jobs. I eventually narrowed it down to a my 9pfs Virtual filesystem mount. The job was hanging...
The solution is to edit the /etc/fstab mount options for the 9pfs mount, and append noauto,x-systemd.automount. This will delay mounting long enough to avoid whatever race condition causes the error. Example fstab entry 4tb /mnt/4tb 9p trans=virtio,rw,noauto,x-systemd.automount 0 0 https://forums.freenas...
SystemD fails to mount a Plan9 Filesysem (9pfs) when starting a VM
1,611,052,742,000
Context: I want to enable a normal user to mount a certain cifs mount on his system (Debian Strech). I therefore added the following entry in /etc/fstab (note the added ,user in the options): //server/share/ /home/user/mountpoint cifs defaults,user,uid=user,credentials=/home/user/.cifs-creds 0 0 Also the credential-...
The manual page describes defaults as refering to the defaults used for axes like ro/rw, suid/nosuid, when a value is not specified explicitly. But the reason for using defaults, is when you don't have any option you want to explicitly specify. You still need some value to put in the options field, so that you can pu...
How to prevent: `CIFS: Unknown mount option "defaults"`? [duplicate]
1,611,052,742,000
Is there a method for a process (without root) to hide or mount over a path of the filesystem for itself? It shouldn't affect the actual filesystem, only the process itself and perhaps its children? Bit of an odd use case, but I need to build something on an OSX build server as if it were a vanilla OSX machine. Howeve...
No, there's no direct way to do this. You can use chflags hidden to hide things from the Finder, but that doesn't affect the command-line. The solution would depend on the configure script. It may simply look along PATH to notice the /usr/local, but more likely it will have a hardcoded list of directories to look at...
Hide or mask directory for a process on OS-X
1,611,052,742,000
My /etc/fstab doesn't include the disk the system booted from, basically because I made some changes and forgot to include this. The initial /boot and / directories are on different drives. I noticed this because when I upgrade the system and grub and kernel get updated the changes are made to the /boot directory unde...
The root filesystem is passed to the kernel upon boot using the root argument. So you should be able to: cat /proc/cmdline and then look for root=/some/path, or perhaps root=UUID=longstring. For instance, I get: BOOT_IMAGE=/boot/kernel-genkernel-x86_64-4.4.0-sabayon root=UUID=18f3b5a1-3994-43ef-ad6d-cb4c86ff5f95 ro q...
How to work out which drive and directory your system booted from if it is not mounted in /etc/fstab?