Hot answers tagged

9

Well, it really depends on how read-only you want the pool to be. And no, that's not a joke. First, a bit of terminology: in ZFS, you import a pool, and optionally mount the (any) file systems within it. You can import a pool without mounting any file systems by passing -N to zpool import and then later on mount any desired file systems using zfs mount. (...


3

You've misunderstood a little; the two mount points are equal in terms of permissions, flags, etc because the bind effectively redirects access from one path to another. But they are still distinct. If you look at /proc/self/mountinfo you'll see the kernel view of the mount world for this process (namespaces make things more complicated; there's not just ...


2

Look at live distributions with persistence for an example of this. Not all union mount methods work with the root directory. Amongst those that do are unionfs, aufs and overlayfs. Overlayfs is the way to go on modern Linux systems. In overlayfs, you get the union of the lower filesystem and the upper filesystem, with the upper filesystem taking precedence ...


2

Mounting another file system seems like a lot of work to me. Is there something wrong with using a symlink to elsewhere? As for moving the whole of /var off the SSD, if /var is "supposed to hold frequently changing junk", that would seem like an argument for keeping it on the SSD.


2

You can redirect the output to /dev/null. sudo mount /dev/"$PARTITION" /media/"$USER"/"$LABEL" &> /dev/null


2

Use the gui to mount the encrypted directory, then login to the synology as root over ssh and type mount. You will see a line like /volume1/@mycryptdir@ on /volume1/mycryptdir type ecryptfs (rw,relatime,ecryptfs_fnek_sig=88...,ecryptfs_sig=88...,ecryptfs_cipher=aes,ecryptfs_key_bytes=32) This shows your directory /volume1/mycryptdir is implemented on an ...


2

I too would be wary about using directories which are managed by automounters like that. I think /media/ used to be shared by all users, it wouldn't have been so much of a problem... but it seems ugly to use it now, at least on systems like yours. There is not one best practice. E.g. read: Preferred mount points for internal HDDs A subdirectory of /mnt ...


1

There isn't an equivalent for mount, and there is no default or standard way to do what you want. You'll have to write one. Here's a script fragment that shows one way of doing this: dev="/dev/$PARTITION" mp="/media/$USER/$LABEL" if [ $(mount | grep -c "^$dev \| $mp ") -eq 0 ] ; then sudo mount "$dev" "$mp" fi This uses grep -c to count how many ...


1

That is up to you, the system administrator, to determine those conventions but it is indeed a good idea to make sure the mounting points can not conflict with anything else. Considering that the mounting point is dynamic in this case, it would be even safer to do them in another level of sub-directory such as /mnt/usb or something similar.


1

In Unix everything is a file. These files are organized in a tree structure, beginning at the root /. Your filesystem or filesystems will then be mounted at the appropriate places in your / according your /etc/fstab file. This file contains information about your filesystems, which device they belong to and to which point they will get mounted to - the ...


1

Dolphin makes use of the Solid namespace to detect devices. As long as you have the correct drivers installed for your disks, they should still be discovered even after an upgrade to a new version of Fedora. You can use lscpi to check the drivers or have a look at this StackExchange answer for some other tips. Though as far as I know, drivers aren't ...


1

This is how I do with schroot command on Ubuntu version 10.04 upward: # list all sessions: schroot --list --all-sessions # if the above command does not work, just type `mount`. The bind mount # points with something like this in the mount path is the session name you want to get: precise-a4aac8e0-663c-4fec-8fb2-16e4b06557e3 (<chroot_name>-<id>) ...



Only top voted, non community-wiki answers of a minimum length are eligible