Questions tagged [filesystems]
A file system is the specification of how files in a computer should be stored, named and organized. This tag should be used for generic file system questions. For specific file system questions (FAT, NTFS, ext4, ...) use the appropriate tag instead.
3,270
questions
0
votes
1
answer
140
views
Linux (Fedora) folders disappear from 'ls -al' and 'nautilus' view, but I can 'cd' into them on the command line when i know the folder name
I am experiencing an issue with Fedora Linux where folders are disappearing from a specific directory, the folders are not shown when viewed with ‘nautilus’ or ‘ls -al’, but if I know the folder name, ...
1
vote
0
answers
38
views
Leading zeros in the Cluster Chain Run of an NTFS MFT record?
I have an example pulled from a hard disk at my house where the NTFS $MFT file contains zeros in the least-significant places of the Cluster Chain Run. Interpreted little-endian, this doesn't make any ...
1
vote
2
answers
145
views
How do you output the ACTUAL filesystem type on a Linux terminal, based on the mountpoint?
I thought that I had the right command:
findmnt -no FSTYPE -T /media/a/abc123
Sadly, it does not output "NTFS" as expected and desired, but instead just returns fuseblk
What filesystem type ...
3
votes
1
answer
634
views
How do you interpret the Cluster Chain Run in an NTFS MFT record?
For mostly academic reasons, I've been learning how to interpret the Cluster Chain Run from the Data Attribute Block from an MFT Record from a NTFS volume.
I watched a video that walks through an ...
0
votes
1
answer
110
views
Is there a way access the "\" directory in Windows?
I've asked this question before but worded it weirdly. So, I'm asking it again.
I've seen the C:\ drive in Windows be described as \Devices\Harddiskvolume1\.
Is there a way to access the \ directory?
...
4
votes
1
answer
431
views
Can Synology Hidrid RAID (SHR) be composed of 2 disks with different file-systems?
I did search a lot and found nothing on this exact matter.
I have a Synology DS2018J NAS with 2 disks 4GB each and EXT4 file system on both.
I want to change the file system on both to BTRFS, and I ...
0
votes
1
answer
195
views
Mysterious file corruption issues after several hours of use
I built a desktop computer a few days ago and have noticed multiple instances of file corruption. A video game crashed twice, reporting file corruption after several hours of use, though it verified ...
0
votes
1
answer
25
views
how can web/database servers access shared storage at the same time since it isn't possible?
having seen this post
Can a SAN allow concurrent write access to the same file from several servers?
I would like to ask how can web/database servers access shared storage at the same time since it ...
4
votes
1
answer
818
views
Missing Filesize in FAT32
I have a .fat32 file and from the Master Boot Record I read the following things:
512 Bytes per Sector
8 Sectors per Cluster
800 Sectors total
root Clusternumber is 2
32 reserved Sectors
2 FATs
1 ...
0
votes
0
answers
406
views
How to avoid duplicate mount that was happened by mistake in Linux?
I want to share all our lesson learning about mistake that happened on our production very critical server (RHE 7.6 version).
The story is about some mistake in our code that performed by mistake. ...
1
vote
0
answers
138
views
Why is the filesystem larger than logical volume?
On the machine, there is a logical volume /dev/lvm/tmp of size 500MiB with the same size partition /dev/mapper/tmp that is mounted on /tmp.
Checking the logical volume:
# lvdisplay /dev/lvm/tmp
--- ...
0
votes
1
answer
605
views
VHD file size is less than the size of its contents
I have made a dynamic VHD file with Windows Disk Management, and populated it by copying a folder on my main disk into the VHD volume.
When I view the properties of the mounted virtual disk in ...
0
votes
1
answer
581
views
How do I determine the current blocksize of an APFS filesystem and is it possible to change?
Documentation for APFS is sparse and unhelpful. I'm on a MacBook Pro and trying to make IO requests more efficient in VMs, currently qemu disk image is using a block size of 16k, and the xfs ...
0
votes
4
answers
171
views
What happens (how to control what happens) to the unused part (unused tail) of a block when writing a small file to a larger block?
When I write a new, small file (a few hundreds of bytes) to my ext4 filesystem, if I understand well (I am not a specialist of filesystems):
i) a 4KiB block (with my present filesystem and filesystem ...
1
vote
1
answer
335
views
Grant user access to create snapshots in btrfs
I am trying to allow my backup program to take a snapshot of my filesystem. The goal is to create a snapshot for the duration of the backup to ensure a consistent view then the snapshot can be deleted....
-3
votes
1
answer
56
views
Backing up Google Photos collection to an external microSDXC card (with a exFAT filesystem)
SWIM has a Motorola moto e5 play with Android 8 as the OS. This individual wants to backup their entire photo (& video) collection stored on Google Photos, and move it entirely onto a 128GB ...
0
votes
0
answers
332
views
WinFSP and SSHFS Multi-layer SSH issue
So I am trying to use WinFSP and SSHFS on Windows 11 to get a local copy of a remote system. I have successfully gotten the file explorer tool "Map Network Drive".
I use: \\sshfs.kr\'address'...
0
votes
2
answers
4k
views
Does the events log have a record of when a file was created and permanently deleted?
I permanently deleted a file from my computer. Although I have the data in a later version of the file, I now realize I needed the timestamp on that file to calculate how long it took to generate the ...
2
votes
2
answers
169
views
Swapping partitions in openbsd
After a regular openbsd installation I have this partition scheme:
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 986M 111M 826M 12% /
/dev/sd0k 46.4G ...
0
votes
1
answer
83
views
Is it guaranteed that a file descriptor will be created when a process accesses a file? Specifically in /proc/pid/fd
I am creating an ebpf program that has a tracepoint on the syscall read().
The purpose of the program is to count how many times a file is read.
My current method to trace this is as follows:
When ...
2
votes
1
answer
55
views
How to name files to easily insert something in the middle?
I have a directory of files that are consequent scenes of a complete video.
└── 01-feat
├── 00-home-scroll.mp4
├── 01-page-home.mp4
├── 02-page-about.mp4
├── 03-page-contact.mp4
├──...
0
votes
0
answers
103
views
Numerous world-writable Directories in /proc/
I have searched for world-writable files and directories using the find / -perm -2 ! -type l -ls command on a Linux Mint system and have found a very large amount of world-writable files under /proc/ ...
13
votes
4
answers
3k
views
Why do bigger clusters yield less capacity?
I was playing around with a thumb drive and I noticed a counter-intuitive trend.
The bigger I make the cluster size (allocation unit size in windows, block size in linux), the less capacity gets ...
4
votes
1
answer
1k
views
How to set file permission for multiple users in linux
I have a file format.sh in linux os.
There are five users a, b, c, d & e.
How can I set the file permission for different users:
a -> Read, Write & Execute
b -> Read & Execute
c -&...
0
votes
0
answers
61
views
How can I setup RPC using a file system to sync and transfer data instead of a network?
I have two separate networks, and due to network security policies the only bridge between the two is a SMB network share.
How can I setup an RPC system (targeting Python but casting a wider net here) ...
1
vote
0
answers
112
views
How does dependency uninstalls occur while uninstalling a software in OS?
I installed mono and using homebrew and its dependencies is installed with it as a prerequisite. After uninstalling the mono again I realized it does not uninstall dependencies it installed initially ...
2
votes
0
answers
2k
views
Repairing partition table with wrong sector size messed by usb-adapter and with possible block errors
I have a 4TB WD hdd (with sector size of 512e/4096) that was first formatted as GPT/ext4 with an usb-sata enclosure/adapter on a Raspberry Pi 3. Apparently the load was too much for Rpi3, and ...
17
votes
7
answers
3k
views
Configuring a system to persist deleted files
I'm building a new system with Linux installed for a specific purpose that involving a third party to interact with it. Apart from applying necessary firewall rules to isolate the machine from the ...
0
votes
1
answer
731
views
How to read Linux text files in Windows system?
For example, I run the top command and store it to a file in Linux, after that I open that file in Windows it contains some gibberish. Here is the file viewed in Notepad++:
The option to convert to ...
0
votes
0
answers
217
views
How to instruct the linux kernel to resolve all symbolic links in a mounted directory relatively to another root?
I have mounted an ISO at /mnt. The ISO is android's system.img. At the root it has a folder etc that is linked to /system/etc:
lrw-r--r-- 1 root root 11 Dec 31 2008 etc -> /system/etc
But it ...
0
votes
1
answer
984
views
How to mount .img file as read-only ext4, but give users read permissions to the whole fs?
I have a system.img android's image file that has ext4 filesystem in it.
I mount it as
sudo mount -o ro system.img /mnt
I have two questions:
Why do I need root access to mount the image file?
...
-2
votes
1
answer
59
views
How Does Duplicating Files To Reduce Read Time On Disks Work?
i recently looked into game files of a Sega Dreamcast game called "Tokyo Bus Guide", and i found a odd thing, there were tons of duplicate files!
when i researched on it and an Quora Comment ...
1
vote
1
answer
400
views
How to automatically format an SD card or a USB flash drive with one FAT32 partition that uses the entire storage space?
I have some SD cards with some existing partitions that I want to format to one FAT32 partition and I want to do it as automatically as possible. Best just using one command.
When I connect them their ...
0
votes
2
answers
134
views
Nginx autoindex is blocking IO on listing files
I recently encountered this issue where,
I served a data path using auto-index, within it there is a directory with a LOT of files (I have a directory with 1228240 files on btrfs). Accessing an ...
1
vote
0
answers
166
views
Is recursive bind mounting possible in Linux, preferrably without extra tools?
Here is a test with both mount --bind and mount --rbind options, neither of which goes full-recursion:
$ tree
.
├── adir
│ ├── afile
│ └── bbind
└── bdir
├── abind
└── bfile
$ sudo mount -...
0
votes
0
answers
46
views
Windows get error UNMOUNTABLE_BOOT_VOLUME after reinstal Fedora Linux
I recently reinstalled Linux (Fedora).
I mistakenly formatted the volume with efi. Naturally, I lost access to Windows boot.
Firstly, I booted into a flash drive and tried to restore the bootloader ...
1
vote
0
answers
707
views
How to repair a XFS filesystem with a dirty log?
I had a server crash while its RAID array was running in a degraded state and now the XFS file system is corrupted. I have read up on how to repair the filesystem but most things I have tried have ...
1
vote
0
answers
3k
views
How do I mount an f2fs partitioned SD card on Windows?
Similar to this question, I tried mounting my SD card using wsl. First I installed wsl:
wsl --install
This installed ubuntu, and after a restart I ran wsl and executed the following:
sudo apt update
...
0
votes
0
answers
24
views
Linux fs permissions issue
I have a folder like:
/home/<username>/storage/apps/<name>/f/<filename>
all folders and files under "storage" directory has owner: 1000:1000
I'm running by binary which ...
0
votes
1
answer
58
views
Does the batch command "ren" cause write operations on disk?
Problem statement
We are using a batch-script, part of which is using the ren command to rename a file. This script is ran once per second, possibly even at a higher frequency than that in the future.
...
0
votes
0
answers
95
views
Why are not all my files included when I gzip a directory?
I know this is a question that has been asked before, for example here Recursively count all the files in a directory,
but this is driving me crazy. Let me explain:
I have a directory called "...
0
votes
1
answer
540
views
How does Logical Cluster Number to LBA translation happen in NTFS?
I'm reading about NTFS, and I found out that NTFS uses LCN (Logical Cluster Number) addresses for files. The information about data blocks are stored in the FCB of the file which is located in MFT.
As ...
5
votes
2
answers
820
views
When upgrading from Win10 Home to Pro will any files/apps/user-folders/environment-vars/Win10-Settings be deleted or modified in anyway?
Aside from the new features being added and minor changes here and there, will any files/apps/user-folders/environment-vars/Win10-Settings be deleted or modified in anyway?
I don't think it will based ...
0
votes
0
answers
36
views
Noticed very large space utilisation in linux LVs, how to find which file or what is responsible here?
I have two disks in my server with a LVs created and issue is on the one mounted on /.
I am aware of using find and sort to output the largest for some given number of lines.
like:
find / -type f -...
0
votes
2
answers
640
views
What happens if I dont resize filesystem after increasing storage
My question is built on top of this post:
why df vs lsblk command have different results?
The command, df and lsblk, yielded different result since I increased the storage. From the above post, it ...
1
vote
0
answers
96
views
Does copying many files in the same directory on an SSD result in increased wear of the blocks that store the concerned filesystem area?
Assume several 1000's of files are copied in the same directory on an SSD. In such cases, the concerned part of the filesystem area must be updated after each newly created file, and it is highly ...
3
votes
1
answer
112
views
How to shorten Dropbox path on a business Dropbox plan shared by other co-workers?
I'm a member of a business Dropbox plan along with colleagues. I want to shorten the directory structure for my machine only. Can anyone recommend a way to map a subdirectory as a drive or just force ...
0
votes
1
answer
142
views
My folders turned into files on my FAT32 usb
I have some very important archives in folders on my USB. I needed to use a program on a computer in my school because i did not have it in my laptop, but when i plugged and checked my USB in the ...
0
votes
1
answer
590
views
How to delete a line based on a regex string in Powershell?
I want to validate if the line above a certain line is there, then ok. if else, then delete that line and remove the empty space ? Can this be done in powershell? please help
If before all lines ...
2
votes
0
answers
165
views
Does anyone have a way of Exporting File 'Creation Date' and 'Modified Date' in order to restore this data onto files from a backup
I am able to get the data I want using PowerShell:
gci -path .\ -recurse | sort name | select name, LastWriteTime, creationtime
The issue here is, I have an online backup solution. When you restore ...