Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filesystems]

A filesystem is a way to organize and store computer files with their data.

2
votes
2answers
25 views

Debian btrfs filesystem shows a total of zero inodes total, zero used, zero free

This Debian server was running just fine until a week or so ago. Now it does not allow files to be allocated, despite there still being room. The root volume is configured with LVM. Kernel is Linux ...
0
votes
1answer
23 views

Why can't my webserver write (PERMISSIONS ISSUE)

I have this filesystem $ ls -la /var/www/myapp/api/project/files/ total 12 drwxrwxr-x 3 me me 4096 Jun 17 14:28 . drwxrwxr-x 10 me me 4096 Jun 17 14:27 .. drwxrwxr-x 2 me me 4096 Jun 17 14:28 cache ...
0
votes
2answers
30 views

Convenient way to cd into a frequently-used dir? [duplicate]

A dir I cd into a lot has a really long path. I'd like to reduce keystrokes. I have tried this... sudo ln -s /mnt/c/Users/me/ho/hum/bin /mybin It works, but something about it seems wrong. Is ...
1
vote
2answers
60 views

Low disk space on “Filesystem root” 0 bytes disk remaining

I am struggling against disk space, regarding root location. Seems like I have reach 100% usage, and cannot find a way to regain space. I have used apg-get autoremove, apt-get clean, removed old ...
1
vote
1answer
24 views

A simple way to update the access time of multiple files

I have a folder with several sub-folders and files. I work on a server where any files that are older than 60 days are automatically deleted. What are some simple commands to update the access time (...
1
vote
0answers
9 views

Does the Linux Page Cache (Buffer Cache) only cache the files' clusters (pages) or does it also cache the Inodes (metadata)?

The Linux-Kernel implements a Page Cache (often also called Buffer Cache) to speed up the file systems of the underlying storage devices. Does the Page Cache only cache the pages or clusters of files ...
2
votes
0answers
21 views

Annotating any files

I have had this problem for a very long time, had several discussions with friends, and tried searching relating info online. All efforts were in vain so I decide to give a shot here. I have lots of ...
0
votes
1answer
22 views

Is there a way to create a (compressed) squashfs that contains an uncompressed file

We have a large file that needs to be uncompressed inside a compressed squashfs. Is this possible without patching mksquashfs? Something like this would be nice: $ mksquashfs existing_squash.sqsh ...
1
vote
0answers
17 views

Is mounting an ext4fs (any fs for that matter) on subdirectory of a linux FUSE file system allowed?

I have a FUSE mount point at /home/abc/fuse/ and it has few a directories and files inside. /home/abc/fuse/foo.txt, /home/abc/fuse/bar.out, /home/abc/fuse/logs/ etc. Now I want to mount an ext4 fs on /...
0
votes
1answer
16 views

Why does a file's Inode number change and nothing else?

Today I noticed that tripwire thinks that some Apache configuration files changed yesterday. I know I did not make any changes to those files. Looking at the info, it shows that only the Inode number ...
1
vote
1answer
33 views

Good filesystem to manage space efficiently

Quick question: is there a filesystem that let me automatically "resize" (up or down) partitions, share one partition between several devices, and make sure that some content only go to one device ...
1
vote
2answers
44 views

Are file system such as ext3 stored in SSD sequentially?

There are superblock, group descriptor table, inode bitmap, data bitmap , inode table ,etc. As I understood. these are stored in virtual memory sequentially. Are these metadata(superblock, group ...
0
votes
1answer
25 views

Hard links with MergerFS

If someone uses the command "cp -alr" on a directory located in a non-path preserving merged pool will it always create a directory on the same disk with all of its contents as hard links? For ...
1
vote
0answers
36 views

Why was every .git folder on my system modified?

I ran my semi-regular rsync backup on my personal laptop to an external drive today, and I noticed many .git/ folders had their backups updated, presumably because they were all modified. However, ...
0
votes
0answers
22 views

docker engine - What is backing file system?

In the below command, $ docker info .... Server Version: 18.09.5 Storage Driver: overlay2 Backing Filesystem: extfs ... init version: v0.18.0 (expected: fec3683b971d9c3ef73f284f176672c44b448662) ......
0
votes
2answers
48 views

Command for getting path to mount point of current partition/drive?

Is there an alternative command that does the same thing as findmnt -T . -o TARGET |tail -n 1? Example: If my current working directory is /media/username/HDD/subdir1/subdir2, that command would ...
0
votes
1answer
25 views

Applications loading slightly more slowly after shrinking Debian 9 root partition

I have a 250 GB Samsung Pro SSD in my Lenovo desktop. Initially Debian 9 was using the whole disk. Recently I decided to shrink my Debian partition and create two more partitions, one a shared data ...
3
votes
1answer
48 views

Is mkdir -p safe to parallelize?

I'm writing Makefile rules like this: out/%.x: ... mkdir -p $(@D)/ ... I intend to parallelize this Makefile (-j), which will trigger many mkdir -p's to simultaneously. Is this safe? Or do ...
0
votes
1answer
38 views

What is the best way to read a file that is being modified using copy-on-write?

We have a file that contains data that always needs to be consistent. When it needs to be modified, Process 1 creates a new file, writes the new file with the modifications, and uses mv to rename the ...
0
votes
1answer
22 views

Partition table & filesystem for a USB flash drive

I've got a USB flash drive I want to use on printers, audio equipment, and other various devices. In my experience, most Linux is very forgiving about what partition table and FS type I use on my ...
1
vote
1answer
28 views

Where does tmpfs come from and how is it mounted

I am using a BeagleBone board with Linux. When i type command "df -h" , I see tmpfs is mounted a few times. Does this mean that all these entries get mounted at the same place, or at a different ...
0
votes
2answers
21 views

Duplicating SD Cards: file system

As a followup to Replicating an SD card: If using the commands dd or `cat' as prescribed in the responses, does this remove the need to format the SD card?
1
vote
0answers
38 views

NFS mount on client not matching what's exported on the server

I've managed to successfully network two home computers with a crossover Ethernet cable. My intention is to arrange a fast transfer of files from one to the other. This is the first time I'm pairing ...
5
votes
2answers
110 views

Is file creation totally ordered?

On Linux, the openat syscall can be used to create files and to test for their existence. Speaking in terms of the C/C++ memory model, creating a file and verifying its existence creates a ...
1
vote
3answers
79 views

Is /home directory in root partition mapped to /home partition [closed]

My /home partition is on /dev/sda1. My / partition is on /dev/sda2. Whenever I make a file in /home partition it shows up in / partition under the /home directory. The Windows equivalent is to make ...
2
votes
1answer
51 views

How to view contents of a sparse file?

The size of "file" is showing 15TB when i check the size with ls -l ls -l total 16 -rw-r--r-- 1 root root 15393162788865 May 30 13:41 file when i check the size of the "file" with du command, it ...
1
vote
1answer
26 views

How does an operating system deal with different types of storage devices [closed]

In Linux, it seems like the operating system knows what kind of storage device it is connected to. Eg. I see /dev/sda for SSD device and /dev/mmcblk for SD card. I was wondering how the operating ...
5
votes
1answer
66 views

Renaming a file while it is being written

I'm wondering if this is considered safe. I know the file handles work just fine as long as a link remains, and I know the identifier is the inode rather than the name, but I am not sure how it works ...
0
votes
0answers
17 views

moving a file from ntfs to btrfs while preserving the creation time

Both ntfs and btrfs support file creation times. When I copy a file however, only the modification time is preserved. Is there a way to preserve creation times too? For context I wish to migrate my ...
1
vote
1answer
15 views

i.MX28 SOC DMA timeout on reading NAND FLASH

I'm porting recent Linux kernel to older existing hardware like the i.MX28 EVK kit from Freescale, and Karo TX28 board. I want to use a part of the NAND FLASH in the file system ("userfs partition" in ...
0
votes
2answers
46 views

how to detect files rename, without snapshot

I am currently monitoring directories with subdirectories, and I need to detect file rename. what I do is making a md5sum of all files and a keep a file list on another place, and from time to time ...
4
votes
2answers
149 views

Making bit identical ext2 filesystems

I'm preparing an image file for a linux system. I need to be able to run my script that creates the image and have the output be bit-for-bit identical each time. I do the normal procedure, by making ...
0
votes
1answer
40 views

why do some directories have .uuid directory in a directory?

I have seen this quite a few times. In some random directories there is usually a .uuid file or directory therein. The directories are nothing special so as to speak. They are mostly random media ...
0
votes
1answer
36 views

Running an executable off of a usb drive

I have an executable on my usb drive. I cd to the directory, ./app yields permission denied. So I did chmod u+x app. Then, ./app. But still, permission denied.! Then I read something here: That ...
0
votes
0answers
9 views

share Google Drive File Stream folder from Windows partition, in dual-boot system

I am familiar with suggestions like the tools listed in https://askubuntu.com/questions/1099852/google-file-stream-functionality-on-ubuntu and myself use google-drive-ocamlfuse on a few servers. ...
2
votes
2answers
29 views

Does dd change any data if `if` and `of` already have the same contents

I was gonna copy a partition to another partition using dd (dd if=/dev/arch_data/root of=/dev/sdd3), and it worked. But then I accidentally re-ran the same command again, and it takes a while so I hit ...
1
vote
0answers
27 views

Suitable filesystem for heavily fragmented files

I often do data recovery jobs using ddrescue or similar programs. The disk image is written sparsely, because often only parts of the disk is being imaged (using ddrescue domain files and the like). ...
0
votes
0answers
27 views

Cannot delete a BTRFS subvolume “Operation not permitted”

I have a subvolume of BTRFS filesystem that I cannot delete. # btrfs subvolume delete /var/snap/lxd/common/lxd/storage-pools/default/containers-snapshots/ntp-backup/working Delete subvolume (no-...
2
votes
1answer
61 views

Why can't I access a symlinked directory

I want to (soft)link my .thunderbird dir onto the actual directory which is on a SD card. Thus, (xenial)florian@localhost:~$ ls -la /var/host/media/removable/SD\ Card/.thunderbird/ total 24 drwx-----...
0
votes
2answers
40 views

Filesystem show up in `/etc/fstab`, but not using `df -a`?

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 ...
2
votes
1answer
56 views

Is there a filesystem that keep track of all filesystem modification without snapshot? [duplicate]

I am interested in btrfs and I start understanding and loving it COW process. But what I understand is that I need to do snapshots to keep track of all modifications done on file. What happen when ...
2
votes
1answer
62 views

Repair possible file system corruption in virtual Linux guest OS (Virtualbox)

Background My power went out during some rain recently while I was away from home. When I got back the power was still out and when it came back on, my system seems to have suffered some issues. ...
0
votes
1answer
37 views

I would like to resize my /tmp partition but gparted doesn't want to change anything, nowhere

I use my computer with Debian 9 for Java Spark development. Spark is a Big Data API and these kind of works use more temporary space than the 2G that by default the Debian installation sat. marc@...
2
votes
0answers
37 views

Automatic symlink to latest folder

Is there a way in Linux to automatically maintain a symlink to the latest version of a file/folder in a certain location? My use case: I generate datasets with unique job names, then write them to a ...
0
votes
1answer
42 views

How can I unload a filesystem module in a RHEL 7 server in order to harden it?

I'm trying to harden my RHEL Linux server 7 according to the CIS guidelines, so I want to unload the cramfs. I typed the following command: modprobe -n -v cramfs and I got the following answer: ...
-1
votes
1answer
26 views

is it safe to run yum and install packages when the root file-system isn't that of the running system?

Example: I have a centos or debian X.Y installed on physical disks, with a 2.6 kernel. Now I put a "live distro" ISO (example archlinux) on one DVD and boot the system from the DVD, so now the ...
4
votes
0answers
23 views

How can I find what a process is trying to watch using strace, lsof, and fdinfo?

I have a process (the NewRelic infra agent) that is hung on a RHEL 7, xfs filesystem host. I'm thinking that it's trying to watch a file or maybe a socket that another process already has in use. ...
1
vote
1answer
38 views

Find hostname of Mac OS client for NFS /etc/exports (permission denied)

I'm trying to set up an NFS server to browse files from a remote Ubuntu server on a Mac client. I'm having trouble finding out what to put as my client hostname/address in the /etc/exports entry. I ...
4
votes
2answers
323 views

Size of a folder with du

I have copied a folder using rsync including symlinks, hard links, permissions, deleting files on destination et cetera. They should be pretty identical. One folder is on a USB drive and the other on ...
0
votes
0answers
26 views

Want Linux API which gives information about new file creation

Does Linux or UNIX have an API which gives information about new file creation? I want to make a file creation watcher, to watch for file creation inside a folder that has thousand of sub folders, ...