As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [filesystems]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

Restrict write access of executable

I'm creating a file system manager that has extensions for automatic creation of projects, ... The filesystem executable should only be able to edit or remove files in /home/USER/00_Files I created a ...
Simon Van den Bossche's user avatar
2 votes
3 answers
91 views

Why is uncompressed tar much faster than rsync?

I'm currently looking for a way to improve my system backup performance and realized the following during some tests: Backing up my Ubuntu system from an SSD to an HDD (both ext4) using TAR without ...
suamikim's user avatar
  • 125
-2 votes
0 answers
35 views

Surface doesn't recognise ext4 ext3 etc

I have a pendrive with Linux installed and I can't boot it in surface pro 5. Whenever I try to do it it just 'skips' the pendrive and goes to Windows. Previously I installed Parrot Os and it worked ...
grandkahuna's user avatar
0 votes
0 answers
60 views

Check if Docker volume-mounted path is on HDD or SSD?

In Linux, it is relatively easy to determine whether a drive is an HDD or SSD. However, is there a method to achieve the same result when you only have a path? I need to check, from within a Docker ...
Maestro's user avatar
  • 179
-1 votes
1 answer
64 views

Which 'Linux-Only' filesystem is suitable for backup and resilience in 2023

I want to understand which filesystem (FS) will be most suitable for the purpose of data archival. Following are the usage parameters and requirements the FS should be able to meet: Backup medium is ...
BhaveshDiwan's user avatar
0 votes
0 answers
23 views

merging from 1022 files open Too many open files error?

I use samtools for coordinate sort a bam file. This command creates lots of files while running. I run the following command samtools sort -o sorted.bam genomic_dataset.bam But it gives the following ...
heyula's user avatar
  • 1
0 votes
0 answers
21 views

Is ext4 fast_commit really stable? (Linux 6.3)

It seems I've been too quick to enable fast_commit on most my ext4 file systems and since then I often experienced FS corruptions. I've never ever had this kind of issues with ext4 that has been rock ...
i7ic0's user avatar
  • 1
0 votes
1 answer
55 views

How to hide file and directory under /sys in Linux?

I am working on an embedded Linux system (with kernel 5.10.24). I am trying to disable sysfs from kernel, but I found some other stuffs relies on sysfs, so I have to enable sysfs in kernel build. Now ...
wangt13's user avatar
  • 289
0 votes
0 answers
29 views

How to find out unused that disk attached to a server (script)

I am trying to get unused disk from servers (Looking a script to collect this from multiple servers), It should list only unused disk that not part of any VG / shared disk / cluster (SBD) / oracle ASM ...
Vija200's user avatar
0 votes
1 answer
46 views

What is the max size limit for using split and cat combination?

I have backed up a file in zip format on Ubuntu whose size is 6.5GB. Trying to transfer it to a USB stick so needed to split since I got error “file size too large” while copying. (Ideally I want my ...
Gautam's user avatar
  • 111
0 votes
0 answers
43 views

changes to /dev/shm mount options revert after reboot, ubuntu 18.04

I use Ubuntu 18.04 on an embedded system. By default it has tmpfs mounted on /dev/shm with 3.8G (~half RAM size) and some mount options. I'm trying to change the /dev/shm size and mount options via ...
hutcruchi's user avatar
  • 161
1 vote
1 answer
44 views

Neofetch showing wrong size on MacOS

My neofetch on MacOS Ventura 13.1 shows the wrong disk size, as compared to Settings -> Storage: neofetch: Disk (/dev/disk1s1s1): 12G / 113G (45%) Storage GUI: It seems that neofetch is using df -...
lost_in_the_source's user avatar
0 votes
1 answer
18 views

How to give nextcloud server access to an account?

I operate a Nextcloud server. It is a bunch of docker containers running on Linux. It works as expected for synchronizing files across client machines. However, I would like the server to have easy ...
gomennathan's user avatar
0 votes
1 answer
27 views

Internal mechanisms of mounting an ext2 file system image and managing changes

For a OS project, I am creating a ext2 file system image and mounting it. This means that I am writing out a 1 MB file with block information and then using it as the mount target. For example, assume ...
user129393192's user avatar
-3 votes
2 answers
66 views

Where in Ubuntu . or .. is defined as current directory or parent directory and how I can add my own ...?

I was reading this question and started wondering what exactly .. and . that we can see in every directory means and how I could potentially add my own ... that could mean for example parent of my ...
Arek Kubiński's user avatar
3 votes
1 answer
306 views

how to access linux data from another machine physically?

My laptop is failing, but I know for sure the hard drive is okay and fine. I want to take the data inside it, I connect my laptop's hard drive (open suse tumbleweed with btrfs filesystem) to my ...
buncis's user avatar
  • 133
0 votes
1 answer
53 views

How do I put the XFS journal on another drive?

Trying to put the journal of a big hard drive on a smaller, but faster SSD. $ sudo mkfs.xfs -N -l logdev=/mnt/data-journal/journal /dev/sdc unable to get size of the log subvolume. $ sudo mkfs.xfs -N ...
martixy's user avatar
  • 111
-2 votes
1 answer
78 views

Which RAID levels and related are supported by bcachefs and how to configure?

How can I configure and use the different RAID levels supported by the filesystem bcachefs via software RAID? This question is about software RAID modes that bcachefs supports. Modes that are ...
Eddy763's user avatar
  • 54
-3 votes
1 answer
58 views

How to mount and unmount disks that use the bcachefs file system under Linux?

Bcachefs is a file system which has similar oak properties as e.g. Btrfs and ZFS. Among other things, the following non-mainstream kernel compilations are known: Kernel 6.1: https://web.archive.org/...
Eddy763's user avatar
  • 54
0 votes
3 answers
42 views

How can some executable automatically run as root

Why some executable as being launched, it's automatically run as root by requiring user to put in password (by its ls -l info below) ? -rwxr-xr-x 1 root root 975856 Feb 9 13:02 <filename> ...
user avatar
0 votes
1 answer
31 views

Why does 'mount' fails when trying to mount partitions of a virtual disk that has two parititons?

I am trying to make a virtual disk with two partitions. First a 100M FAT (type 0xC) and second a 2G Linux partition (type 83). I have a process that does this correctly with a real USB device. But I ...
Ryan Buton's user avatar
0 votes
0 answers
45 views

Why would bash pathname-expand files that don't exist?

I'm getting strange results when using bash pathname expansion, e.g: $ ls * ls: IMG_0289_heic_conv_rot.jpg: No such file or directory (output truncated) Furthermore, $ ls *0289* ls: ...
Peyton's user avatar
  • 101
0 votes
1 answer
36 views

best practice for types and locations of bin folders

What is a stable minimum set of Linux binary folders? Please refer to knowledge of operationally stable systems and consider FHS standards. I am starting with the following information: UseCases: to ...
dank8's user avatar
  • 105
0 votes
0 answers
17 views

capacity of filesystem with bad blocks

this is the number of bad blocks: sudo dumpe2fs -b /dev/sda dumpe2fs 1.46.5 (30-Dec-2021) 113223162 this is the number of total blocks: sudo tune2fs -l /dev/sda | grep -i 'block count' Block count: ...
iateadonut's user avatar
0 votes
0 answers
21 views

How can I resize my LUKS partitions on arch? [duplicate]

My Arch installation is on a nvme drive with three partitions: a boot partition, a root partition of 30GB, and a home partition of 1TB. Both the root and home partitions have LUKS encryption. However, ...
cypherpsycho's user avatar
0 votes
1 answer
89 views

What are the best practices for configuring durable IOT Linux devices? Should I use an Overlay File System?

In the past our company used raspberry pi's for our IOT application. The problem with that was that SD cards wear out and get corrupt. We now ordered Compulab SBC's with eMMC storage running Debian. ...
Matebo's user avatar
  • 19
0 votes
1 answer
33 views

Understanding the functionality of the "lsattr" command and its limitations on directories

Why does lsattr only work on files? When I try to use it on a directory, it doesn't work, except for its contents. For files, the attributes are shown properly, but for directories, nothing is ...
user avatar
0 votes
1 answer
28 views

Is it possible to break flash card programmatically?

I think I broke my flash card programmatically while was playing with automount configuration. Now I can't mount my card anuwhere. Was this possible? And if it was, then how to ensure and fix?
Dims's user avatar
  • 3,007
0 votes
0 answers
38 views

HD: Reformat - Device or resource busy (udisks-error-quark,0)

I am trying to reformat a Hard Drive from LiveOS. I am using the partitioning GUI tool. I am stuck on this error: Error formatting volume Error erasing device. Error opening device /dev/loop2 for ...
powerhousemethod's user avatar
0 votes
1 answer
61 views

List of systems that are sensitive to file permissions

I ran into an issue on my NAS where I mistakenly reset the permissions on the root file tree to 664. This ended up disrupting many of the NAS functions, like ssh and, after much debugging, logrotate. ...
infojunkie's user avatar
1 vote
1 answer
78 views

Discrepancies between /etc/fstab options and mounted options in Linux

I have this line in /etc/fstab: UUID=9818D4D618D4B48A /mnt/Seriale ntfs3 defaults,noatime,nodiratime,nofail,async 0 0 And after mounting it and reading its options, I get: rw,noatime,nodiratime,uid=0,...
Marus Gradinaru's user avatar
0 votes
0 answers
28 views

How to make data to be sequential data

On ext4 linux partition how can we make maximum data exists there to be sequential data or at least compact enough so the partition can be shrunk more easily readily
user avatar
0 votes
0 answers
18 views

Is there a way to monitor the progress of removing files on Linux? [duplicate]

I have a directory with millions of files, and I'm deleting it by rm -rf diretory_with_millions_of_files. I can see the change in the usage of inode counts on the filesystem. But is there a more ...
beatak's user avatar
  • 101
1 vote
0 answers
32 views

Is there a seamless way to cache the file table of an HDD to prevent unnecessary spin ups?

I'd like to be able to browse the file system of my external HDD without having it spin up. Is there an easy way to cache its file table in a way that allows me to use normal tools like Caja/Gnome ...
Dan's user avatar
  • 11
0 votes
1 answer
48 views

Extend Swap partition

I have a system with 125G ram available and a swap partition with 4G, which is constantly full. On a disk with 223 GiB available, I would like to increase the swap partition. Is it safe to just ...
Grigorios's user avatar
15 votes
4 answers
1k views

Why doesn't read permission on directories reveal inode numbers?

As far as I understand, the "read" permission on directories allows one to list all names under that directory, and no more than that. Based on common understanding of FS design, if a ...
iBug's user avatar
  • 3,369
0 votes
0 answers
36 views

What is the "best" filesystem for Timemachine (Samba fruit) on a Linux host (Debian)

Question Looking for a canonical, fact-based answer to the question what filesystem is the "best" (if any) in terms of operational performance to serve an OSX Timemachine service from Samba ...
agtoever's user avatar
  • 150
2 votes
1 answer
31 views

How to set up a bunch of linux servers with shared file system without using job scheduler?

I am managing multiple GPU servers in our lab, which are mainly used for deep learning tasks. We would like these machines to share the same file system, so it is easier to switch between them. ...
x.y.z liu's user avatar
2 votes
1 answer
31 views

Can I clean up orphaned inodes before they cause my file system to be unbootable?

Running an HTPC on Linux Mint 20. Every 3 months or so the htpc will become unresponsive and when I reboot it it turns out there are some orphaned inodes. I run fsck and the process cleans them up. Is ...
jcollum's user avatar
  • 1,127
1 vote
1 answer
68 views

RAID6 unable to mount EXT4-fs: bad geometry: block count exceeds size of device

On my server, I had an SSD as the boot drive with 11 6TB HDDs in a RAID6 setup as additional storage. However, after running into some issues with the motherboard, I switched the motherboard to one ...
jameszp's user avatar
  • 13
1 vote
0 answers
23 views

Command “W” shows that my TTY and FROM are both “tty2”

I use dual boot windows and Ubuntu on a thinkpad T14 and in my terminal (in the Ubuntu graphical interface) command w shows that my TTY and FROM are both tty2 not sure how this is possible I ...
Owen's user avatar
  • 11
1 vote
2 answers
58 views

In bash, how do I create an array of committed files that still exist on my file system?

I'm using a bash script to create a Git hook. I want to run a process (linting) against files I'm committing. I only want to run the process if the files actually exist (in other words, not consider ...
Dave's user avatar
  • 2,226
3 votes
1 answer
136 views

mkfs ext2 ignore number-of-inodes

I want to make ext2 file system. I want to set "number-of-inodes" option to some number. I tried several values: if -N 99000 then Inode count: 99552 if -N 3500 then Inode count: 3904 if -N ...
Андрей Тернити's user avatar
1 vote
2 answers
71 views

Does splitting a file in more files necessarily mean that some/all of the overall content will not be where it was?

I guess that given a file of a certain size, not all of its bytes will be contiguous on disk (or will they? Just for existence of the phrase "defragmenting a disk" I assume they will not). ...
Enlico's user avatar
  • 1,297
2 votes
1 answer
145 views

Recovery of a broken Hard Disk's filesystem using ddrescue and testdisk

After working on a partially rescued partition, I was told to use ddrescue to save a failing external hard drive and then apply testdisk over it to complete the rescue operation. Although the drive ...
Ulderico's user avatar
0 votes
0 answers
46 views

Proper way to design filesystems structure for a cluster of diskless nodes

I'm trying to learn the basics of Linux clustering so I started designing a really humble cluster: 6 worker nodes (Libre Computer La Frite | Cortex-A53 @ 1.2 GHz | 1GB RAM) 1 master node (Raspberry ...
phreq's user avatar
  • 1
-1 votes
1 answer
50 views

Empty directory with specific size

How to create an empty directory /tmp/empty that is at least 20MiB in the filesystem. I tried to create a file and delete it, but the size of the directory was not saved. i think that might help i ...
jano's user avatar
  • 1
2 votes
0 answers
33 views

Is there a filesystem that can maintain extra ECC data like raid5, but in the filesystem to make a fault-tolerant single external drive?

Normally to make a fault-tolerant or corruption-repairing filesystem, you use multiple drives and raid 5, or anything but raid 0. There are also many ways to make a fault-tolerant archive file like ...
Brian White's user avatar
2 votes
1 answer
69 views

Why is atime updating when equal to mtime and ctime?

I'm trying to understand how inode access time is handled with the default "relatime" mount option in Linux, but the behavior documented in mount(8) doesn't quite match what I see. It says: ...
epiii2's user avatar
  • 23
0 votes
0 answers
22 views

Flatpak data paths: Overlay to /usr/lib?

I want to package an app which ships with plugins which are installed using CMake GNUInstallDirs so eventually it ends up in ~/.local/share/flatpak/app/<appid>/current/active/files/lib/<...
ManuelSchneid3r's user avatar

1
2 3 4 5
79