Questions tagged [filesystems]
A filesystem is a way to organize and store computer files with their data.
4,227 questions
4
votes
2
answers
582
views
how to check if the path from where the script is started stored on a hdd or ssd drive?
how to check if the path from where the script is started stored on a hdd or ssd drive?
i have read that cat /sys/block/sda/queue/rotational show 0 for ssd and 1 for hdd.
if [ "$(</sys/block/...
1
vote
0
answers
229
views
Having to "fix" ntfs drive every time turn on the computer
dekstop linux user here with some experience in linux for academic computing. In the spirit of being a greater linux supporter, I have changed my gaming computer for linux.
I have just installed ...
-2
votes
1
answer
103
views
Probably lost 500Gb of data - how to recover the data?
Yeah I know I messed up. Just asking if there is a slight chance of recovering data.
I have an external SSD for backup, 1TB. Because some time ago I had some windows stuff, it had half ntfs and half ...
0
votes
0
answers
3k
views
What is the difference between nvme0n1 and nvme1n1?
Some systems have a drive called nvme0n1 and others have a drive called nvme1n1, or a system will have both drives, but with different storage amounts. Why? What is the difference between these, and ...
1
vote
1
answer
236
views
Why doesn't rsync peform delta transfer when copying from a disk to cloud storage?
I believe the rsync manual says that incremental file transfers are performed when transferring files across file systems. However rsync's output below shows that delta-transmission is disabled when I'...
1
vote
2
answers
199
views
sudo chown: pemission denied even if I'm the owner [duplicate]
Could someone explain this?
john@john-pcRefs:~/pCloudDrive/someFolder$ ls -al
total 16
drwxr-xr-x 2 john john 4096 Jan 11 2022 .
drwxr-xr-x 4 john john 4096 Jan 11 2022 ..
-rw-r--r-- 1 john john ...
1
vote
1
answer
106
views
Efficiently listing files older than 3 years on a large disk with millions of files
I have to implement a system to archive files that have been more than 3 years on a 35TB disk, millions of files.
How can I implement an efficient way to list the files that are older than 3 years? ...
0
votes
0
answers
59
views
How-to prevent users from changing the ownership or the permissions on a posix filesystem
My question might look silly because I'm coming from a Windows / NTFS background.
We have a linux filesystem shared across several people. The tree looks like this:
- /data
|- shared
|- Alice
...
0
votes
0
answers
67
views
Number of data movements for a read() from an SSD drive in Linux
My question concerns the internal kernel operations involved in a read system call. How does the Linux kernel handle a read system call, specifically in terms of data movement from SSD storage to user-...
4
votes
2
answers
576
views
How can I format a partition in a mapper device?
I created a mapper device with dmsetup and created a partition table with parted:
$ fdisk -l /dev/mapper/vdisk
Disk /dev/mapper/vdisk: 511.57 GiB, 549295737344 bytes, 1072843237 sectors
Units: sectors ...
0
votes
1
answer
64
views
obtain time and information about file/folder name change of exfat file system
If I do a stat on a file of a exfat file system, it does provide me the modify/change/creation times.
Is there a way to find if the file name has changed? I know there are likely lower level commands ...
0
votes
0
answers
176
views
creating a bootable USB drive with a single partition
I want to install Debian in dual boot with Windows, for this I created a bootable USB key under Linux Lite (Ubuntu based distro), with the #dd command.
The command I used is:
dd if=image.iso of=/dev/...
0
votes
3
answers
744
views
Use the linux filesystem to compress files on the fly
I want to upload a lot of data (hundreds of raw pcap files, each 1Gb) to AWS. I am using aws s3 sync for this. The pcap data is highly compressible, but I do not want to do the compression in a first ...
0
votes
0
answers
54
views
Is there any way to sort folders by the file type inside them?
I am using XFCE Ubuntu Linux to organize a large collection of media. Among these files are folders containing .pdf files, folders containing .mp3 files, and folders containing .m4b files. Is there ...
0
votes
1
answer
129
views
Having Trouble Decrypting Drive and Reading Files
I am doing a fresh install of Linux Mint and I want to decrypt my hard drive which was encrypted during a previous installation of Mint so that I can recover some files. I have located the hdd with ...
0
votes
1
answer
85
views
Where did i put my directory?
I wanted to move my World file from my Terraria Server and used
(I was currently in the .local directory)
sudo mv share/ /terraria because
I wanted to move the share folder into the terraria directory....
6
votes
1
answer
605
views
How can directories in a macOS APFS root directory be in other filesystems without being links or mountpoints?
I found a very unusual behaviour about the root file system / on modern macOS which are now all using
the Apple propriatary file system APFS.
With a basic set of filesystems defined through the
Big ...
1
vote
1
answer
818
views
A process called "Opera" (the browser is not installed) constantly uses 100% of my CPU. Does anyone know what this is?
I have a server box I use to host various web applications and game servers for friends. I recently connected to it to check how it was running, and discovered a program "Opera" trying to ...
9
votes
2
answers
2k
views
What happens to a sparse file's holes when the space is needed?
The scenario
Let's say you have a 1GB sparse file in a 2 GB filesystem and the sparse file is taking only 0.1 GB of space.
The question(s)
I guess you would have 1.9 GB to store data on disk, is that ...
0
votes
2
answers
957
views
What is rigid disk block (RDB) and how can I repair it?
I have a WD P10 external USB disk that is no longer being detected on macOS or Windows (on a different PC). To troubleshoot, I booted Debian (LMDE) from a Live USB and connected the WD drive again. It ...
1
vote
1
answer
38
views
How do you look into sdb1 and sdc1 to make sure data is mirrored in RAID1 using mdadm?
I've spent hours fighting mdadm to the point I had to reinstall linux and do more fighting, mostly because of write-protected issues on the drives somehow (I still don't explain it), and also ...
0
votes
1
answer
141
views
Why is head -c (and similar commands) much slower for large files than small files?
From other things I've read (for one example of many why does it take so long to read the top few lines of my file?_ )
I gather that commands like
head -c 4 bigfile
dd if=bigfile bs=4 count=1
or c++ ...
0
votes
0
answers
192
views
copy Linux EXT filesystem use dd
I used binwalk to scan firmware image, uncompressed & raw RAM dump. When scan for signatures with -I flag there is reference to Linux EXT filesystem:
DECIMAL HEXADECIMAL DESCRIPTION
-----...
0
votes
0
answers
46
views
Disk error by partioning dual boot and running fsck -b
so after I partitioned with mini partion tool the drive containing Linux and windows 11 broke the windows so I hoped on linux trying to fix it but the linux partition sustained some damage too it ...
3
votes
1
answer
596
views
Why does df shows same as "du --apparent-size"?
That seems completely backwards. (The block size on this NFS share is 512KiB, causing 20% waste, but that's a different issue.)
$ df -BM --output=used,target /Database/backups
Used Mounted on
...