Questions tagged [filesystems]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
65 views

is stat(2) read-after-write consistent with write(2)?

man 2 write states: POSIX requires that a read(2) that can be proved to occur after a write() has returned will return the new data. Note that not all filesystems are POSIX conforming. In Linux, is ...
Shivaram Lingamneni's user avatar
0 votes
0 answers
11 views

Mount overlay and assign owner to myuser

I've an entry in /etc/fstab like this: overlay /etc/myfolder overlay defaults,x-systemd.requires-mounts-for=/var/data,lowerdir=/etc/myfolder,upperdir=/var/data/overlay/myfolder/upper,workdir=/var/...
Andrea Romano's user avatar
0 votes
1 answer
10 views

Failed to run init with error: jffs2: compression type 0x06 not available

I am working on an embedded Linux system (5.10.24), and I am using jffs2 as the rootfs. Now I changed the kernel configuration of jffs2 as follows, # CONFIG_JFFS2_FS_WBUF_VERIFY is not set # ...
wangt13's user avatar
  • 387
0 votes
0 answers
38 views

Is it possible for a filesystem type to be recognized differently or changed without reformatting a drive?

When running sudo fdisk -l my EXT4 formatted SamsungQVO USB SSD now identifies as APFS. Device Start End Sectors Size Type /dev/sda2 409640 3907029127 3906619488 1.8T Apple APFS The ...
XJMZX's user avatar
  • 35
0 votes
0 answers
14 views

"Applying Directory Permissions to Files in Linux: Ownership and Access Query"

I am currently learning about Linux file permissions and have a query related to permissions on directories and files. Suppose there is a file 'x' owned by a user 'user1' and belonging to a specific ...
Younes Lamhamedi Cherradi's user avatar
0 votes
0 answers
19 views

btrfs subvolume quota and free space for samba share

My btrfs filesystem is mounted under /mnt/btrfs. I then created a subvolume /mnt/btrfs/sv and enabled quotas. After that I set the quota to 10G with btrfs qgroup limit -e 10G /mnt/btrfs/sv and ...
std_unordered_map's user avatar
1 vote
0 answers
19 views

How to merge the content of multiple subdirectories into another directory where destination contains the same directory name using a mount / union?

In the example below, exdir is a directory containing many subdirectories. The contents of each subdirectory, which are directories themselves, should be merged with /su/destdir, which already contain ...
Dr. Barry's user avatar
0 votes
1 answer
28 views

Can mmap be used to create a file which references memory subset of another file?

I'm interested in writing a program that can create two files, second file would be a "view" of first file and if modified, the first file would also be modified. Is this possible to do with ...
trickingLethargy's user avatar
0 votes
0 answers
22 views

Yocto Project for a New Board

I am trying to hunt down specifics on Yocto in regards to how to set up the filesystem before the build of poky. I have a new board that I wanted to try Yocto on. I have this FS so far after source oe-...
De Funct's user avatar
  • 105
2 votes
1 answer
54 views

sshd: Authentication refused: bad ownership or modes for directory /data

I'm trying ssh-ing into a rooted Android phone, but it gives me an error Permission denied (publickey)., and the log says Authentication refused: bad ownership or modes for directory, despite of the ...
丶 Limeー来夢 丶's user avatar
1 vote
2 answers
185 views

SSD initially mounts correctly, but disappears from lsblk after a few days

I am a Linux beginner, and am having a problem with a drive which disappears from lsblk periodically, and am stuck with how to proceed. The drive is an 240GB external USB SSD. Mounting the Drive Works ...
teeeeee's user avatar
  • 147
-2 votes
0 answers
78 views

Increasing the size of the swap partition with free space partition

My hard drive has three partitions with free space that I would like to turn into swap, meaning I want to increase the size of the swap partition using the free space from these three partitions (2M + ...
Alexandre Loures's user avatar
1 vote
1 answer
108 views

Equivalent of `btrfs send` and `btrfs recv` for bcachefs

I'm using a setup I consider to be rather fragile and prone to failure involving LUKS, LVM, btrfs, and bcache. I have used btrfs for a long time, and have never experienced any significant issues with ...
Omnifarious's user avatar
  • 1,312
1 vote
1 answer
165 views

How to intentionally corrupt my file system or crash its driver?

I am doing a research that involves intentionally corrupting my file system. I shouldn't be able to read or write anything to the file system after that. Therefore I am ok with crashing the drivers to ...
ravindroid00's user avatar
0 votes
1 answer
81 views

none filesystem in WSL got large disk space

By running the following command, a path (/usr/lib/wsl/drivers) with none filesystem type appears: $ df -h Filesystem Size Used Avail Use% Mounted on none 16G 4.0K 16G 1% /mnt/...
Super Hornet's user avatar
10 votes
1 answer
2k views

Why does the dd command recover a file deleted using shred?

I found the inode of a file using ls -li. Then I found the file’s starting block on disk. I copied the contents of the block to another directory using the dd command. Then I shredded the file using ...
Vikas Dhankhar's user avatar
0 votes
1 answer
41 views

How can wildcard expansion create duplicates?

I have a directory with an absurd number of files, which makes this nigh impossible to understand by inspection. But here's the situation: cp giant_folder/pre* myfolder It's crunching along and ...
Mastiff's user avatar
  • 101
6 votes
2 answers
2k views

Why should I use `sudo` with the `passwd` command to change the password of another user?

If you look at the permission set of the passwd command, you will see this: user@apple:~$ ls -l /bin/passwd -rwsr-xr-x 1 root root 59976 Nov 24 2022 /bin/passwd /bin/passwd has the SUID bit set and ...
grassy's user avatar
  • 71
0 votes
0 answers
14 views

NFS dir permissions changed not visible

I have an nfs storage mounted at /mnt/data. This is mounted across several VMs in the same mountpoint. I changed the permissions of the dir from 775 to 770. The change is visible only in one VM. I did ...
pkaramol's user avatar
  • 2,669
35 votes
2 answers
3k views

Why is filesystem time always some msecs behind system time in Linux?

In Linux, it seems that filesystem time is always some milliseconds behind system time, leading to inconsistencies if you want to check if a file has been modified before or after a given time in very ...
Alberto Pianon's user avatar
0 votes
2 answers
79 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 ...
melonfsck's user avatar
0 votes
1 answer
15 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 ...
mon's user avatar
  • 180
0 votes
0 answers
17 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 ...
wangt13's user avatar
  • 387
0 votes
0 answers
49 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 ...
user2384330's user avatar
0 votes
1 answer
31 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 ...
heebiejeebies3's user avatar
0 votes
0 answers
30 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....
Pacopenguin's user avatar
1 vote
1 answer
83 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 ...
luddite478's user avatar
1 vote
1 answer
183 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 ...
mad_mosel's user avatar
0 votes
0 answers
40 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. ...
Hamaon Overdrive's user avatar
1 vote
1 answer
51 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 (...
wangt13's user avatar
  • 387
0 votes
0 answers
23 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 ...
philpem's user avatar
0 votes
1 answer
61 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 ...
wangt13's user avatar
  • 387
1 vote
1 answer
238 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 ...
jyoung's user avatar
  • 51
0 votes
1 answer
45 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 ...
Minuta18's user avatar
0 votes
0 answers
30 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 ...
pxeger's user avatar
  • 124
0 votes
3 answers
91 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.
kumar's user avatar
  • 201
0 votes
0 answers
23 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 ...
Matt Groth's user avatar
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/...
achhainsan's user avatar
0 votes
1 answer
73 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 ...
protoncookie's user avatar
0 votes
1 answer
49 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....
wangt13's user avatar
  • 387
0 votes
2 answers
74 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-...
ldrg's user avatar
  • 149
0 votes
0 answers
17 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) ...
TOK's user avatar
  • 1
1 vote
1 answer
30 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 ...
Behrooz's user avatar
  • 2,298
0 votes
2 answers
69 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 ...
bodqhrohro's user avatar
1 vote
1 answer
30 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. ...
J-Cake's user avatar
  • 155
0 votes
0 answers
24 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 ...
kiler129's user avatar
  • 119
3 votes
2 answers
666 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 ...
Andreas's user avatar
  • 511
0 votes
0 answers
26 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 ...
Eva4684's user avatar
0 votes
0 answers
211 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 ...
Jon's user avatar
  • 155
0 votes
0 answers
49 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 ...
Tristan Kosciuch's user avatar

1
2 3 4 5
81