All Questions

Tagged with
Filter by
Sorted by
Tagged with
5
votes
1answer
2k views

unmount sys/fs/cgroup/systemd after chroot, without rebooting

Background: I am exploring how to copy an ordinary LVM-on-LUKS Debian 9 ("Stretch") installation from a thumb drive (the "source drive") onto a ZFS-formatted drive (the "target drive") in order to ...
2
votes
0answers
129 views

How to hidepid on Arch Linux manually?

I have reinstalled Arch Linux to find that the package which used to be available called hidepid no longer exists, so I have to do this manually, but as I am still relatively new to Arch, I am not ...
0
votes
2answers
581 views

bind mounts get removed with network namespaces?

Strongswan daemon puts its .pid and .ctl files in /var/run to detect if it is already running. I want to run multiple of these daemons on the same machine within different network namespaces. I am ...
6
votes
1answer
729 views

How to Run Tunefs on Root Filesystem in FreeBSD?

I want to enable ACLs for a FreeBSD 11 system. According to the FreeBSD Handbook this can be done in two ways: By using a mount option -- mount -o acls By modifying a superblock -- tunefs -a enable ...
2
votes
2answers
1k views

How do I configure an Arch Linux system to automatic mount an external harddisk when it is plugged in?

I am wondering how I can configure an Arch Linux system to mount an external hard disk when it is plugged in (as opposed to have it plugged in at startup). In order to to that, I added /dev/sdb1 /...
7
votes
1answer
666 views

du results on filesystem inconsistent with df

What explains the discrepancy in usage (82 GB vs 13 GB) that I see below? Using df: $ df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda2 96G 82G 9.9G 90% / ...
4
votes
2answers
4k views

Disk usage on a specific filesystem

I need to find out what's contributing to the disk usage on a specific filesystem (/dev/sda2): $ df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda2 96G 82G 9.9G ...
1
vote
1answer
2k views

Ownership of btrfs partition via fstab

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 ...
9
votes
1answer
447 views

How to format & mount a large partition with 4k sector size in Freebsd?

gpart show -l: => 6 146239733 da0 GPT (558G) 6 10 - free - (40K) 16 128 1 (null) (512K) 144 262144 2 efi (1.0G) ...
1
vote
0answers
921 views

How to create and mount a loop-device with guestmount?

The goal is to test the out of disk space condition. Creating an image: dd if=/dev/zero of=test bs=1024 count=10000 Mountpoint: mkdir mountpoint Mounting fails: guestmount -a test -m/dev/sda ...
1
vote
1answer
222 views

Device major/minor number for remote filesystem

This answer states: A mounted network share will have a deviceId which is why you can create a symlink to a mounted location. So, if "a mounted network share will have a deviceId", files mounted ...
2
votes
0answers
345 views

create “virtual directory” with mounted device

I need some help with my file system. I have an debian server running, which have an Nextcloud instance installed. The server is running by an external provider as a virtual server. On this server, I ...
2
votes
2answers
290 views

Read only file system, which allows also temporary write to other destination

Is there any file system which allows reading from an existing network share, but also writing to the "mount", but those writes are only temporary? To let you know the background: We have around 4TB ...
2
votes
2answers
2k views

How To Create a Bootable EBS Volume for Amazon Linux

Background My objective is to use Packer to create an Amazon Machine Image (AMI) with several different paths mounted to different filesystems to improve security. E.g. /tmp should be mounted to a ...
1
vote
1answer
162 views

Backing up an unmounted device to a tar file

Although my overall objectives is to do something on Amazon Web Services (AWS), my specific question is agnostic to AWS. Background My objective is to use Packer to create an Amazon Machine Image (...
0
votes
1answer
381 views

creating a mount helper

I want to create a mount helper to be able to mount a filesystem not currently supported by mount. I'm not sure about what the helper should put in the mount folder, what happen after the mount when ...
1
vote
2answers
4k views

Not able to mount drive formatted as NTFS in Windows 10 on LinuxMint

I installed Linux mint alogside windows 10. I was able to mount drives formatted in windows 10. However now I am not able to mount these drives. It generates the following error: Error mounting /...
2
votes
2answers
1k views

getting contents from a .dmg or .img file

I have a .dmg file meant for Mac, I'm trying to get the contents from it (it's Microsoft Project Manager, if that matters) but I can't figure out what to do. I've made a .img copy using dmg2img, and I'...
0
votes
1answer
1k views

mounting /var as overlayfs

I'm running a read only filesystem on a raspberry pi so far everything works fine until i tried to mount /var as overlayfs for nginx and other services to work using this: VAROVRL="-o lowerdir=/var,...
4
votes
2answers
1k views

How does the Linux or Unix “ / ” get mounted during bootup?

Devices can be mounted to a path. For example "/dev/sda1" can be mounted to "/home/user". What I don't understand is how and where the " / " is mounted during boot. Any help explaining?
0
votes
2answers
353 views

How to recover data after lvremove in centos 7.0?

I did a stupid thing by removing a Logic volume by issuing the below command. lvremove -f /dev/cl_dhcppc4/home However, immediately I restored the lvm from the backup file. vgcfgrestore --file /etc/...
1
vote
0answers
112 views

mhddfs filesystem hangs after a while with large directory

I have 2 RAID1 of 4TB each which are joined together with mhddfs. There is one directory that exists on both disks that contains hundreds of thousands of files. There is a lot of read/write happening ...
1
vote
0answers
298 views

Encrypted (luks) + LVM Ubuntu installation where /home is encrypted as well (ecryptfs): How to make a new partition for /home?

I've installed Ubuntu 16.04, encrypted and with LVM. I also chose the option to encrypt /home (which encrypts the directory with eCryptfs). The default settings make an unencrypted /boot and an ...
2
votes
2answers
341 views

Permissions change from mkdir to mount

I am working with LVM and filesystems and I am confused why when I do a mkdir /mntpt and then a mount /mntpt that I am seeing permissions change. It is still a directory is it not? What is ...
0
votes
1answer
694 views

Use rsync copy multiple directories to the same location; keep tree

I'm using a Time Machine like backup script, that creates a partial backup to an external drive using hard links: #!/bin/bash date=`date "+%Y-%m-%dT%H-%M-%S"` backup=/mnt/backup targets="/ /data/...
1
vote
0answers
88 views

Can you mount an ext2 image with FUSE as the middleground?

Normally I would mount this image directly to /mnt/foo, but I want to do some specific actions if a specific process does read/write/etc on the mount directory. So I'd like to use FUSE, but I'm not ...
0
votes
1answer
102 views

Locked out of ssh after mounting bind /dev /run /proc and reboot

I've added the following commands in my /etc/rc.local file to automatically mount kernel's virtual file system, as said on Linux From Scratch (LFS). And rebooted... Sections 6.2.2 Mounting and ...
1
vote
1answer
1k views

mount: mount point none does not exist

I am having problems trying to mount a swap file for use. Every time I use this command to mount (with /var/swap being the file): $ sudo mount /var/swap I keep getting this message: mount: mount ...
1
vote
1answer
749 views

How to resize and label Raid devices

I am asked to Create a RAID 0 array using the two spare drives on (5GB) on this Machine with the following specs Size=2048MB Label=RAID_0 Mount it persistently by Label at /storage Here is what I ...
6
votes
3answers
2k views

How can a file manager mount a drive without root?

I've been reading this question about why mount must be run as root (with some exceptions), and I was wondering, if mounting a drive requires root (generally), how does a graphical file manager (...
1
vote
1answer
615 views

The atime of a NFS directory does not get updated

I have been trying to stat a directory in my file share that got mounted from NFS Server [which is VM Debian 8.11], After i've touched a file in the directory and read the directory content by ls ,...
2
votes
1answer
165 views

Default permission when mounting usb-drive

I have an USB-Stick that has two partitions: boot (vfat) rootfs (ext4) When I plug this stick into my computer the partitions are displayed in the file viewer. (Debian Jessie with Mate). when I ...
1
vote
0answers
307 views

BTRFS Mounting 2 subvolumes

I've got a BTRFS volume setup with this subvolume structure. ThePool | | Media | |--------Movies | |--------TV Shows Basically I'm setting up my computer to be a ...
1
vote
4answers
71 views

Hide or mask directory for a process on OS-X

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? ...
3
votes
2answers
551 views

How to limit the total size of all mounted tmpfs?

Is there any trick to limit only the total size of all mounted tmpfs file systems (without limiting them individually)? I consider using tmpfs for /tmp, /var/lock, and /var/run, and I only care about ...
2
votes
0answers
2k views

btrfs error unknown - root fs will not mount

I am running Arch Linux on a system with full disk encryption and the storage is a Samsung 950 Pro NVMe drive (512 GB). The computer is a couple months old. No bad behavior until now. (I'm only using ...
1
vote
1answer
985 views

How do I mount this .img file in Debian 7 properly?

I have an unusual .img file that I wish to mount on my Debian 7 system. I tried mount but that does not work: sudo mount -t udf overlay1.img /mnt/vehicle/ -o loop mount: wrong fs type, bad option, ...
2
votes
1answer
924 views

Can I safely run badblocks in read-only mode on a mounted drive?

I have /dev/sda mounted on /, as the root partition. Can I safely run badblocks in read-only mode on this device? Will it show false positives/negatives because it's mounted?
1
vote
0answers
1k views

Recover overwritten CCTV footage from hard drive

I am trying to recover deleted footage from a DVR. I pulled the hdd(Toshiba DT01ABA100v) from the DVR to look at the data in the drive and run carving tools(foremost and scalpel). My problem is that I ...
2
votes
1answer
5k views

Understanding file systems and mount points as seen from df and Nautilus

Let's say we run df command to show something about file system in my CentOS. I can see a LVM /dev/mapper/vg_centos64-lv_root mount to /. or a partition /dev/sda1 mount to /boot, and a device CDROM /...
4
votes
1answer
2k views

set umask for sshfs-mounted filesystem

I have a remote sshfs filesystem mounted on /mnt/data. Following is the relevant line in /etc/fstab: www-data@192.168.1.10:/var/www/ /mnt/data fuse.sshfs rw,noauto,nodev,nosuid,noexec,_netdev,...
-1
votes
1answer
111 views

RHEL 6 filesystem

I'm reading about RHEL 6 and getting confused about a knowledge check. It tells me that not to use a computer to give an answer for this but the question is on a RHEL 6 system, mount /dev/sda12 /...
1
vote
2answers
245 views

Mount(8) with mount(2)

I have a software that will unmount a partition programatically (if it's not busy) and mount it again after all of the work is done. If I run this in the terminal: sudo mount /dev/sdb1 /mnt/fat32 -o ...
3
votes
1answer
1k views

mount: Unrecognised segment type thin

So my Fedora Linux machine crashed during an update, and now refuses to start properly. I'm using SystemRescueCD to try to recover the contents of the hard drive. Following the steps in this post, I ...
0
votes
3answers
79 views

Why is /dev a subdirectory of / (the root)? [closed]

Why is /dev a subdirectory of / (the root)? I ask because isn't everything in the file system also mounted from the computer's hard disk which show up in /dev? Then why isn't dev the root directory ...
1
vote
0answers
74 views

Is there a way to mount two folders into one mounting point, so that folders are mirrored?

I want some tool like $ mirroring_mount ~/first_location ~/second_location ~/mount_point So, when I edit file in ~/mount_point, it is edited in both locations, and if ~/first_location and ~/...
0
votes
2answers
3k views

Cannot cleanup ghost mount points

'mount' command shows several mount points across several disk devices that I had previously setup: $ mount ... /dev/sdf1 on /mnt/<mp1> type xfs (rw) ... /dev/sdd1 on /mnt/<mp2> type ...
1
vote
1answer
3k views

How to discover unknown file system type from disk

I pulled the hard drive from a *nix-based CCTV DVR so I could look at the contents and mount points, with the explicit intention of mounting a separate drive at the folder wherever the video is stored....
21
votes
7answers
5k views

Why does Linux need to have both `/dev/cdrom` and `/media/cdrom`? [duplicate]

Inspired by this question. Why does Linux need both /dev/cdrom and /media/cdrom? Why not just access files on the cdrom through /dev/cdrom?
2
votes
1answer
34 views

How to make sure files are present when usb mounts?

When my computer mounts a USB, the files don't show up immediately, which is throwing off my script (which is quite quick). How do I make sure that the folder doesn't appear in my mounting directory (/...