Questions tagged [filesystems]

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

Filter by
Sorted by
Tagged with
2
votes
3answers
81 views

How to troubleshoot disk is full

My disk drive /dev/sdc is full (see below). Is there anyway to troubleshoot why it consumed all the disk space. I have tried running du -d -h 1 but I don't think it's the proper command. $ df -h ...
-3
votes
0answers
31 views

Is there anything that a directory can't able to contain? [on hold]

I want to know is there anything exists that a directory can't able to contain.
73
votes
6answers
87k views

Clear unused space with zeros (ext3,ext4)

How to clear unused space with zeros ? (ext3,ext4) I'm looking for something smarter than cat /dev/zero > /mnt/X/big_zero ; sync; rm /mnt/X/big_zero Like FSArchiver is looking for "used space" ...
21
votes
3answers
2k views

Is there still no Linux kernel interface to get file creation date?

For a long time, Linux hasn't bothered with file creation dates because none of the file systems it commonly used supported them. However now, 2 file systems commonly used (NTFS and ext4) both record ...
102
votes
2answers
244k views

timestamp, modification time, and created time of a file

I just know that ls -t and ls -f give different sorting of files and subdirectories under a directory. What are the differences between timestamp, modification time, and created time of a file? How ...
0
votes
0answers
24 views

File system cache with the lazy writes

Due to high write load SSD is a bottleneck. Is it possible to configure file system cache to write to SSD as less as possible? Data is not critical at all. Plenty of RAM but still files are too big to ...
0
votes
1answer
44 views

ZulipMobile cannot connect to zulip server

I have downloaded the Zulip App and Android App and tried to connect to my Zulip server. Unfortunately, I am getting "Cannot connect to server" I can connect by using desktop.
2
votes
2answers
4k views

How to stop auto mounting of devices in Ubuntu?

I have an Ubuntu 16.04 LTS desktop system that I use to rescue disk drives (using dd or ddrescue). Whenever I plug in a disk drive it is automatically mounted and shown in the file manager. I don't ...
1
vote
1answer
49 views

How do I create a temporary file in memory?

I need to create some (small) temporary files in my zsh scripts, and I want them to live on RAM so as to avoid disk IO. What are the idiomatic ways of doing this? I want it to work on Linux and macOS, ...
1
vote
1answer
2k views

How to set up ZFS with ZIL and L2ARC SSD?

I have been considering bcache and flashcache. However my friend suggested me something called ZFS. In fact it says that formating disk with ZFS can actually do the exact same thing without kernel ...
0
votes
0answers
12 views

Inconsistent number of blocks reported by different commands

I tried two methods to get the number of blocks of partitions. The results are similar but not exactly the same. Why does this happen?
1
vote
1answer
32 views

Changing filesystem

I need to change my filesystem to the NTFS filesystem from ext4, but the disks tool reports that the current disk is in use, which is obvious. How can I format my disk using terminal before booting? ...
0
votes
1answer
22 views

Difference between resize2fs and lvresize?

what is the difference between resize2fs and lvresize? I know that resize2fs is used for resizing partition and lvresize is used for resizing lvm, but what is the difference between these? resize2fs /...
-1
votes
0answers
21 views

Create an updatable directory of symlinks

Let me take a directory called DIR/ with the structure DIR/ |----> file1.txt |----> file2.txt |----> file3.txt |----> SUB_DIR/ |-----> file4.txt What I want to do is create ...
-2
votes
1answer
26 views

What is the difference between “dentry” and “inode table” in Linux FS? [duplicate]

Are dentries and inode table same thing? If not what is the purpose of each and where are they stored? How does the filesystem exactly work specifically "ext4" or "xfs"?
0
votes
1answer
17 views

Centos 7 minimal, installing tmux app manager and fluxbox styles

I'm having difficulty installing things like tmux app manager and fluxbox styles. In both cases i attempt to tar into their directories ~/.tmux/plugins/tpm & ~/.fluxbox/styles like this sudo tar ...
0
votes
1answer
42 views

Can I stop a system call before it is executed using Stackable Filesystems? [closed]

Let's assume that I have an application X. I only track system calls that X issues. For example in systems like "CS-STILo". The system detects anomalous sequences of system calls to detect code reuse ...
3
votes
2answers
2k views

CLI filesystem benchmark for random read/write with specified block size

I'm in search of a filesystem benchmark utility. I basically want to run a test which should be able to do random reads/writes on a specified drive with a given block size. e.g. a 4K random write on a ...
1
vote
0answers
31 views

Git - extract subfolders of repository into new repositories

I have a folder structure like this, with all folders and files within one git repository: ├── folder-01 │   └── script.sh ├── folder-02 │   └── script.sh ├── folder-03 │   └── script.sh ├── folder-...
318
votes
1answer
240k views

What is a bind mount?

What is a “bind mount”? How do I make one? What is it good for? I've been told to use a bind mount for something, but I don't understand what it is or how to use it.
1
vote
0answers
22 views

Can you set a file's ctime to min(ctime, mtime) [duplicate]

We know that the mtime of a file can be earlier than the ctime when you make copies of files (or, in my case, move files between file systems without successfully retaining timestamps). I see many ...
2
votes
1answer
20 views

How can I set up an external HDD that functions just like a shareable flash drive? [duplicate]

I have partitioned an external HDD on linux (gpt, ext4) and mounted it under /mnt and would like to use it as a storage device for the whole team, meaning everyone would have all permissions to all ...
1
vote
1answer
493 views

Bash - Find - move files bigger than certain size [duplicate]

How can I move all files bigger than lets say 10MB into a different folder? -rw-r--r-- 1 nath nath 4,3M Apr 21 2018 "file1.mp3" -rw-r--r-- 1 nath nath 1,7M Jun 10 2017 'file2.mp3' -rw-r--r-- 1 nath ...
0
votes
0answers
29 views

Backing up symbolic links and linked files content

I have a folder filled with symbolic links to some config files and want to backup this folder as well as config files it point to. So far I came to this ugly solution tar cf links.tar * tar cfh ...
0
votes
1answer
29 views

How can I find the documentation for “emergency mode” when attempting to boot into Linux (Mint in my case)?

I know that a lot of questions have already been asked about emergency mode when booting a Linux distro. (Seemingly Mint, Ubuntu, Redhat all have it.) Does it have documentation? What entity does it ...
0
votes
1answer
14 views

get number files and folders under a given folder [duplicate]

in Microsoft Windows you can right click on a folder for Properties and it will report Contains # files and # folders Is there a way to do this in linux on the command line? I want to know the total ...
7
votes
2answers
6k views

When we use mv command, what changes take place in HDD?

Under following conditions- mv within the same HDD partition mv to a different partition in the same HDD mv to a different device (e.g. USB HDD) Is the complete file moved or is it a very small ...
0
votes
0answers
12 views

How can I mount multiple nfs server that mapped on one internet IP?

I have 5 nfs server hosted in IDC, and IDC can only mapping my server's port to same internet IP. So I let IDC did these port mapping: Server A:192.168.0.1:111 -> 118.x.x.x:10001;192.168.0.1:...
1
vote
0answers
42 views

How to fix my partition after mistaken gpart bootcode?

I was trying to make my HDD bootable and did gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 ada0s1 and now I got "Invalid partition" message on boot. /boot was from USB drive, not from HDD (...
1
vote
0answers
1k views

Recovering files with directory structure

EDIT: I am using Debian 8.1.0 So I somehow deleted my /etc directory. While I have not been able to recover the complete /etc directory hierarchy with all files, I have received different parts from ...
9
votes
2answers
7k views

Is it ok to mkfs without partition number?

I have a pen drive and one partition: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk └─sda1 8:1 0 931.5G 0 part / sdb 8:16 1 7.5G 0 disk └─sdb1 8:17 ...
2
votes
1answer
41 views

How to Debootstrap specific version in Ubuntu or Debian?

i want to install a specific version of Ubuntu or Debian, In ubuntu i want to debootstrap the specific version 16.04.0, and i'm using this code: debootstrap --arch=amd64 --variant=buildd xenial "/...
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, ...
3
votes
1answer
985 views

How do I speed up recovering “stuck” cifs mount?

I have a cifs mounted like this: mount.cifs -o uid=myuser,user=...,dom=... //IP/Share /some/mountpoint/ When I try to access it after period of inactivity (or when the network is inaccessible), it ...
0
votes
1answer
979 views

How to do a full exfat format in Linux (RaspberryPi)

I want to do a full format as opposed to a quick format of a 500 GB exfat USB stick. mkfs.exfat seems to be just a quick format since it's immediately done. The reason I want a full format is that ...
5
votes
1answer
2k views

Wrong inode: corrupted f2fs, fsck.f2fs cannot repair

A f2fs partition on my Android phone has recently become corrupted. It will still mount fine; however, I completely lost access to one directory (/data/media/0), which now shows as empty. Yet the disk ...
5
votes
4answers
3k views

How do I move all the files with the same name scattered through the file system into one folder?

I have a file system tree and on different locations within it are files with the same name. I tried the following command on the command line: find / -name "HAHA" -exec mv {} /home \; It only ...
0
votes
1answer
71 views

Is it possible to trick a program into thinking it write successfully but don't write anything to disk?

I have a third party software that does deduplication of files, but I want it to think it copied the files to disk but without pulling it from the remote server because I already have the files on ...
19
votes
4answers
4k views

Does the Linux kernel need a file system to run?

My opinion is yes, it does, because all useful exposure to the outside world (non-privileged processor mode) would first require a process running in the outside world. That would require a file ...
0
votes
1answer
32 views

Do inode values have any effect on performance?

I recently saved 7 files to two separate directories (I will call A and B). Out of curiosity I used Ubuntu's ls -i command and found files in each directory had consecutive inodes. I then noticed that ...
1
vote
0answers
19 views

Serve view of directory's most recent files only

I have a directory with ~100k files that loads very slowly over the internet through most protocols (just listing the directory can time out). I'd like to speed things up by only showing files from ...
38
votes
4answers
21k views

(How) can I create a tmpfs as a regular (non-root) user?

The distribution is an Ubuntu server running the 2.6.35-30 Linux kernel. I would like to have a directory that sits completely in memory. Is this possible without root privileges?
22
votes
2answers
66k views

Mount device with r/w access to specific user

How can I mount some device with read-write access for a given user?
4
votes
1answer
162 views

Operation Not Supported Error Mounting NVME Drive on Arch Install

I'm trying to install Arch on a Dell XPS 15 9560. I've used nomodeset to make the text legible (otherwise it's tiny on the integrated 4k monitor) and pcie_aspm=off to stop the slew of pci bus errors ...
-1
votes
2answers
47 views

How can I find what uses the space in a LV(logical volume)?

The logical volume(aka LV), centos-home is created automatically when installing CentOS 7 by default, but I didn't use it manually. Now, I have mounted an empty directory, work to centos-home. /home/...
1
vote
4answers
1k views

How to delete unknown file that doesn't have proper permissions

My co-worker sent me a theme in a tar.gz file and I tried unzipping it using the archive manager GUI as I usually do for any kind of zipped file. However, it produced a corrupt file/directory that I ...
3
votes
2answers
114 views

Are there widespread filesystems which represent directories with structures optimized for fast lookup?

In "The Art of Unix Programming", on the topic of The Terminfo Database I read: If you look in the terminfo directory, you'll see subdirectories named by single printable characters. Under each ...
2
votes
2answers
50 views

Change filesystem without losing data

I've got 16 nodes of elasticsearch (RHEL 7) - 18TB each, every node has a ext4 filesystem. For better efficency I need to change to XFS filesystem. Is there any tool / way which help me change ...
0
votes
0answers
32 views

How to restore files with it's folder structure

Even the famous data rescue software photorec can only restore files without any folder structure, with so many rescued files listed, you are hard to know where the file was, compare to Windows ...
1
vote
1answer
49 views

system freezes, can't recover

I'm running Debian 10 with kde-plasma on Dell Latitude E6540. Sometimes my system just freezes, then there's nothing I can do other than reboot with the physical button. I don't know why it happens, ...