Questions tagged [filesystems]
A filesystem is a way to organize and store computer files with their data.
4,083
questions
0
votes
2
answers
119
views
Is using the SysRQ Emergency Remount an acceptable way to clone hard disk?
I'm using Linux (Ubuntu) and I was told that I can use the method described below to clone the system's hard drive to another one - to plug into a new machine. (Without booting from a Live CD)
It ...
0
votes
1
answer
19
views
Does iowaitnotify close_wait guarantee the file is written completely?
Please clarify if close_write event of ionotifywait will guarantee that the file has been completely written.
The situation is a file transfer program will send a file X to a remote server Z and need ...
0
votes
0
answers
42
views
Surprise in measuring UBIFS on NAND performance in Linux
I am working on an embedded Linux system (Linux-5.10.24), and there is a raw NAND FLASH as storage device on which UBI/UBIFS is used as file system.
Now I am trying to measure and compare the UBIFS ...
0
votes
0
answers
76
views
Remove write permission but keep delete permission
This is an odd one, a file in my server is written to once every boot by one of the services in it. I found out that another process (that I have no control of) keeps changing the contents, so I made ...
0
votes
1
answer
53
views
BTRFS partition will not mount after power off
I'm running Fedora 38 on a BTRFS partition and just had to do a hard power off due to system hang. Now the system goes into emergency mode on bootup. I'm currently running the fedora live CD but the ...
0
votes
0
answers
44
views
Data Replication Approaches for Hot Standby Architecture
I'm relatively new to the world of storage & filesystems (please forgive me if I'm not using the correct language), and I'm currently researching ways to achieve a hot standby configuration -- i.e....
1
vote
1
answer
133
views
resize disk partition which is used by RAID
I need to shrink the sdb4 partition, which currently occupies the entire 7TB of my sdb drive, in order to create an sdb5 partition for my application. The challenge lies in the fact that there is a ...
3
votes
1
answer
643
views
Set default system filedialog on open and save in KDE Plasma 5
I use dolphin as my file manager. I have this behavior of my system: Whenever I open or save something using a KDE app, the dialog used is kdialog. (If you use Plasma you can trigger one using kdialog ...
0
votes
0
answers
42
views
HDD keeps locking to read-only; Cannot isolate cause of disk errors
The problem: After running with no issues for several months, one of my HDDs will lock into read-only mode seemingly at-random when in use. This can often be fixed by cycling power to the hard drives.
...
1
vote
1
answer
140
views
How to generate a raw UBI image with 2 UBI volumes?
I am working on an embedded Linux (kernel-5.24), where UBIFS is used as filesystem for both rootfs and user configuration data.
Now I am trying to generate one single UBI image to burn the NAND FLASH (...
0
votes
0
answers
62
views
Big Maildir mailspool - looking for ways to improve performance
I have an extremely large Maildir which contains emails going back many years. I need to rebuild the server and would like to improve the mail storage setup.
My main problem is that backups of the ...
0
votes
1
answer
191
views
How to build a UBIFS image to make use of the remaining space of MTD?
I am working on an embedded Linux system (kernel-5.24) and the development host is running WSL2 in Windows.
There is a NAND FLASH of 128MB in the embedded system (PEB is 128KiB, page size is 4096 ...
1
vote
1
answer
761
views
"structure needs cleaning", hardware failure?
The drive that my /home folder lives on is showing signs of failing,
and I'm trying to migrate to a new drive.
I purchased a 4TB SSD, formatted it with ext4, mounted it as an external drive with a ...
0
votes
1
answer
55
views
Any operations with file system takes forever
I'm using Ubuntu 22.04 LTS. Unexpectedly for me all operations with the file system stopped working. I tried ls /, df and nautilus - all of this command takes forever to execute. What happened to my ...
0
votes
0
answers
79
views
EOVERFLOW when opening any file for writing
I'm writing a custom container engine. When I attempt to open any file for writing somewhere in the container (as long as that place is writeable, permissions-wise), I get an EOVERFLOW error (Value ...
0
votes
3
answers
258
views
In Linux how to find if a file was read and at what time
Is there a tool or command where we can see if a file was read and at what time? I would only find for last modified.
0
votes
0
answers
29
views
How do I get the number of hardlinks of a folder?
I am on Mac. However, I use gstat (GNU stat) so my understanding is that behavior should match linux.
I cd to a folder. Then I use gstat --format=%h .. The output is 65.
Next, I use gfind . -maxdepth ...
9
votes
5
answers
4k
views
Why can't hard links reference files on other filesystems?
I'm aware that this article exists:
Why are hard links only valid within the same filesystem?
But it unfortunately didn't click with me.
https://www.kernel.org/doc/html/latest/filesystems/ext4/...
0
votes
1
answer
162
views
"Bad Jump in FAT partition" and "Bad number of sectors per cluster" right before ext4 offset
TL;DR partition table (?) potentially messed up by windows disk management on drive containing both NTFS data partition and EXT4 filesystem. Fairly certain zero or almost zero data was lost. testdisk ...
0
votes
1
answer
77
views
Question on tuning file system cache in Linux UBIFS on MTD
I am working on an embedded Linux system, where kernel is 5.10.24, and UBIFS on MTD is used.
The testing team had a test, which writes a disk file (open, write, close in order), then powers system off....
0
votes
2
answers
131
views
Is there a "reverse COW" filesystem or LVM feature for Linux?
Is there any sort of filesystem or volume manager on Linux that supports COW snapshots, but instead of writing out new blocks for a new snapshot, it copies the old, unchanged blocks and does an in-...
0
votes
0
answers
19
views
Issue with open syscall in /tmp folder with uid 0 [duplicate]
I have conducted a small test which raised an issue i could not figure out.
Create file in /tmp named what as shell user (uid 1000), then make it 0666 (rw-rw-rw-)
Try to call open with uid 0 (root) ...
1
vote
1
answer
33
views
Is there a standard way of making a copy of file/folder permissions to apply/compare later?
I'm copying a bunch of files to a filesystem that doesn't support permissions. however, I will need to copy them to another filesystem which does support permissions a few years from now. at that ...
0
votes
2
answers
109
views
Are there any filesystems with builtin data repairing via checksums?
I've read that ZFS/BtrFS have a checksum check, but they don't use it for data recovery, only for recovering data from a full local copy or a mirror copy.
On the other hand, RAR archives support data ...
1
vote
1
answer
41
views
Unix-esque partial-file-locking mechanism
Linux and AFAIK most unixes expose the flock syscall for mandatory file-locking. My experience is admittedly limited with this, however am informed that it is kernel-enforced on the entire resource. ...
0
votes
0
answers
28
views
Splitting disk writes between two filesystems based on file extension
Background
I am running a proprietary video & audio management application. It reads & writes large multimedia files but also uses a home-grown "database" for metadata. The database ...
3
votes
2
answers
962
views
Why does this use of `cp -a` not preserve creation time?
I copy some directories with -a in order to preserve=all which I understood would include creation times:
cp -a ./* /mnt/destination/
When inspecting the resulting directories in the destination they ...
0
votes
0
answers
36
views
How to reclaim SSD space during formating
I've got a "1000GB SSD"
after creating partition (aligned to 2048) I'm down to
sdd 8:48 0 931.5G 0 disk
└─sdd1 8:49 0 931.5G 0 part
which is fine, because 1GB means 1000bytes ...
0
votes
0
answers
693
views
How to free memory in root file system
I have a lap top that has had Arch Linux installed for approximately two years. Yesterday, when conducting a daily update via the command sudo pacman -Syu I recieved the warning the volume Filesystem ...
0
votes
0
answers
83
views
Unmount root from /boot partition? trying to fstransform /dev/mapper/VolGroup-lv_root
I am trying to transform /dev/mapper/VolGroup-lv_root from xfs to ext4 using fstransform on my CentOS 7 VM. This is needed for a migration from another Centos 7 VM. The issue I am facing is the root ...
2
votes
1
answer
528
views
How can I solve my strange no space left on device on fedora?
I run a fedora 38 system on virtual box (7.0). Now I have a "no space left on device" problem.
# dnf list *docker*
Fedora 38 - x86_64 - Updates ...
0
votes
0
answers
22
views
Linux Filesystem: Automatic/Continuous disk usage accounting
I am interested in having a Linux filesystem which does automatic/continuous accounting of disk usage (e.g. tracks the size of all files and directories so that tools like du return quickly).
The ...
0
votes
1
answer
161
views
How can I know if a file system was cleanly unmounted?
I know, fsck.ext4 -p /dev/whatever, right? That seemed to be the answer, but then I read that journaling covers a multitude of sins, and the result from fsck will just tell you that there isn't a ...
0
votes
0
answers
451
views
the relation of /opt /etc/opt and /var/opt
I am reading the Linux Filesystem Hierarchy Standard, and I am wondering about the relation of /opt, /etc/opt and /var/opt.
I can read in 2 places that static configuration and variable data for an ...
0
votes
0
answers
89
views
Not Enough Space in /ROOT Partition [duplicate]
I need help locating the specific file that has filled my root partition and the cause of inconsistent file storage usage.
this is the output of my df -h
Filesystem Size Used Avail Use% Mounted ...
0
votes
0
answers
24
views
Examine disk usage of file tree, accounting for reflinks on Btrfs [duplicate]
Calculation of disk usage through du entails maintaining a set of all inodes represented by files under the tree, such that hard links will be counted only once with respect to total disk usage.
...
0
votes
0
answers
32
views
How to run mkfs on a BD-RE in linux
~ # mkfs.btrfs /dev/sr0
btrfs-progs v6.3.3
See https://btrfs.readthedocs.io for more information.
ERROR: '/dev/sr0' is too small to make a usable filesystem
ERROR: minimum size for each btrfs device ...
1
vote
1
answer
411
views
Does `wipefs` require --force to erase the partition table on a disk?
The wipefs man page says that:
-f, --force
Force erasure, even if the filesystem is mounted. This is required in order to erase a partition-table signature on a block device.
So this means that ...
0
votes
1
answer
56
views
Why GNOME doesn't unmount a directory that I manually unmounted in the terminal
Background
I'm trying to manually unmount a file system that has been automatically mounted by the system. I don't get any error messages when umount /dev/user/myusbstick, but when I go and check the ...
0
votes
0
answers
40
views
Is btrfs balance recursive?
I run btrfs balance on a daily basis thanks to a systemd service+timer to try to keep my filesystem healthy over time (is it even a good idea?). The command I use is as follow:
btrfs balance start -...
0
votes
3
answers
76
views
btrfs receive to <mount-point>/?
Suppose I have a BTRFS filesystem A with a read-only subvolume at <mount-point-A>/snaps/good-one. I want to create a BTRFS filesystem B (could be on the same or another machine) which will ...
1
vote
0
answers
170
views
Safest way to clone OS disk besides dd and Clonezilla
I would like to clone my OS drive, to a same/larger disk. And I will do this periodically.
On Windows I use AOEMI Partition Assistant to clone disks. The GUI is very good and idiot-proof. However, ...
2
votes
2
answers
790
views
How to create ramfs on Arch Linux
I have 24 GB RAM and a 8 GB swapfile. I know that under Arch Linux there's /dev/shm that uses tmpfs but I want to create a ramfs mount point because I want a place where I can temporary store ...
0
votes
0
answers
21
views
Invisible Directory [duplicate]
My system is a MacOS Monterey. I have accidentally created an invisible directory in my conda environments folder. The directory is not visible even with ls -a. I can list the directory with the ...
1
vote
2
answers
664
views
Linux Mint File Manager Not Recognizing USB Drive After Formatting
I reformatted a USB disk that I used to install Linux Mint 21 XFCE. After reformatting, the disk does not appear in Nemo or Nautilus. It does appear in the disks manager software, in lsusb, and in ...
0
votes
0
answers
79
views
HDD not mounting
I had a small PC which was booting via USB, OS was on the USB, plus a data SATA SSD and an external USB HDD. Debian 11 is the OS.
I recently installed an M.2 drive and cloned, using Clonezilla, the ...
0
votes
1
answer
130
views
Reading directory contents without "x" execute bit set
I have removed "x" execute permission and write permission for others on a directory
/u/permtst/test/bits/. This directory details are user: permtst and group: permtst.
permtst@localhost(nyc)...
0
votes
0
answers
53
views
How create isolated ext4 filesystem on file
There is a 25G /dev/sda6 ext4 partition mounted on /data. I'm trying to make a fixed size filesystem on a file using fallocate, mkfs.ext4, mount:
fallocate -l 5G /data/new_storage
mkfs.ext4 -E ...
1
vote
0
answers
22
views
What happens behind the file system when moving the source of a loop drive into its mountpoint?
I moved the source of a loop drive into its mountpoint and umount it. Then the source disappeared.
Note that after moving the source to its mountpoint (or other location), the source was shown as ...
4
votes
2
answers
193
views
Why does LVM not provide the function of recursive creation?
I tries to recursively create LVM on LVM but it seemed unable to provide this function. The way I did is like:
Firstly, I created a physical volume and a volume group on a physical device by
$ ...