Questions tagged [filesystems]
A filesystem is a way to organize and store computer files with their data.
4,132
questions
4
votes
2
answers
234
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 ...
9
votes
3
answers
66k
views
How to install squashfs-tools on Ubuntu?
I tried running `unsquashfs and got:
$ unsquashfs filesystem.squashfs
The program 'unsquashfs' is currently not installed, You can install it by typing:
So I went to install it:
$ sudo apt-get ...
5
votes
2
answers
3k
views
How to mount this disk? (EBS)
I restored an EBS volume and attached it to a new EC2 instance. When I lsblk I can see it under the name /dev/nvme1n1.
More specifically the output of lsblk is:
NAME MAJ:MIN RM SIZE RO TYPE ...
2
votes
1
answer
17k
views
mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error
I try to mount a disk added to an Azure VM,
but it fails with the error message:
mount: /mydirectory: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or ...
0
votes
2
answers
27
views
Orange Pi Zero 2 fails to auto-recover from filesystem errors after power loss on Debian Bullseye
I have a debian bullseye installation on an Orange Pi Zero 2 SBC. That computer sometimes loses power. If I restart it after losing power, I'm getting the following error:
Failure: File system check ...
5
votes
1
answer
14k
views
Partition #3 contains a ext4 signature
When i use fdisk to create a new partition i get an error which says
Partition #3 contains a ext4 signature
Do you want to remove the signature? [Y]es/[N]o:
This error is not a problem but i am ...
2
votes
2
answers
4k
views
Issue with orphan inode
I am using a virtual machine on a server I cannot access and I'm having the filesystem mounted in read-only mode:
# dmesg
....
[2.535658] EXT4-fs (vda): Couldn't remount RDWR because of unprocessed ...
8
votes
5
answers
97k
views
Where is the path to the current user's desktop directory stored?
I am very new to Linux and am going through and learning all the basics. While I was doing so, I realized how odd it was that the OS treats certain files differently -- namely by displaying them on ...
0
votes
1
answer
21
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 ...
2
votes
1
answer
3k
views
Accidentally ran mkfs command on already available disk
I had a volume of 350Gb attached to my Linode server. It was running out of space so I resized it to 400GB from the dashboard and restarted my server. Then I used the df -h command to check if the ...
3
votes
1
answer
2k
views
Relation between "Block Size"and "Upper Limits" in ext2
A similar looking question asks for the reason why the upper file limit could be 2 TB in ext2. I am trying to understand but the Documentation on ext2 but find this hard. Please correct me if I'm ...
5
votes
1
answer
21k
views
ext2fs_open2: Bad magic number in super-block
I'm trying to resize a Linux partition, but after tweaking a lot with this disk I don't know If I have totally corrupted it.
Device Boot Start End Sectors Size Id Type
/dev/sdd1 * ...
8
votes
4
answers
4k
views
How to determine file system type reliably under Linux?
I want to be able to run a command which would print what exactly FAT version/subtype is a partition formatted in (FAT12/FAT16/FAT32/VFAT/exFAT)
Some guys suggests following command
# stat -f -c %T /...
0
votes
1
answer
13
views
Unable to extend fedora Server VirtualBox Volume (lvm2)
I Im trying to resize my root volume. I already resized the virtual volume inside virtualbox and also reallocated the space with gparted:
But undortunately after using lvextend and resize2fs there is ...
57
votes
8
answers
172k
views
How to find the type of an img file and mount it?
I have to mount a .img file but I don't know what type of .img it is. How can I figure out what type of .img file it is?
# mount -t auto -o ro,loop gmapsupp.img /mnt/iso/
mount: you must specify the ...
0
votes
0
answers
32
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/...
3
votes
1
answer
2k
views
File system goes read-only on NVMe SSD seemingly at random
I am currently running a somewhat fresh Kubuntu 22.04 install on a relatively new M.2 NVMe drive.
However, I have a problem where my computer drive (I think) turns read only, causing the system to ...
0
votes
3
answers
58
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
1
answer
25
views
ext4 and chattr ( change attributes ) 's - undo ( u ) option
This is an microsd ext4 card on a rooted Android, where I want to use
busybox chattr -R +u /mypath
I know what +u means but does anyone have an idea about how the undo option is implemented for ext4 ...
0
votes
1
answer
25
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 ...
1
vote
1
answer
48
views
What filesystems best allow for complete erasure of a file?
So the shred utility supposedly allows one to "securely" delete a file, by repeatedly overwriting it with random data.
Obviously on copy-on-write filesystems it is nearly impossible to ...
3
votes
2
answers
2k
views
How to change extents of logical volume on LVM physical volume
I am trying to resize an encrypted physical volume so that I have free space to make a dual boot system.
So far, I've successfully decrypted the PV, resized the filesystem and the LVs but when I try ...
0
votes
1
answer
4k
views
Ubuntu boot problem - free initramfs and switch to another root fs
We are using Ubuntu 20.04 operating system running on Xen infrastructure. But when I turned on the server after the power went out, I encountered the following errors. I tried e2fsck, etc. but no ...
0
votes
0
answers
28
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
46
views
Check if a directory was deleted and later recreated with the same name
Is it possible to reliably check with a shell-script if a directory was deleted and later recreated with the same name in Linux? Depending on the filesystem one could check for a change in the inode-...
2
votes
2
answers
4k
views
Mac OS cannot mount exFAT disk created on (Ubuntu) linux
I formatted an external hard disk on my ubuntu linux system with exfat.
First I installed the exfat utilities: sudo apt-get install parted exfat-utils
Then I partitioned the disk with a mbr boot ...
5
votes
3
answers
5k
views
Resize btrfs filesystem to the minimum size in a single step
How do I resize a btrfs filesystem to the minimum possible size in a single step?
I only want to dd the smallest amount of data possible, and want to use dd since btrfs send is progressively slower ...
1
vote
2
answers
3k
views
Failed NVMe M.2 SSD, broken filesystem, unwriteable; can I wipe it anyway?
My Samsung 970 EVO M.2 500GB SSD (MZ-V7E500BW) suddenly failed yesterday during a power outage.
I now have a warning during POST ("WARNING! Please back up your data and replace your hard disk ...
0
votes
1
answer
3k
views
What permissions should be set for shared directory in Linux
I am struggling with setting proper permissions for files
I would like user1 and user2 have access to their directories plus shared
and moderator needs to have access to all of those directories.
I ...
3
votes
1
answer
3k
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 ...
1
vote
2
answers
3k
views
How to clone / move entire Fedora installation onto larger disk with minimal changes to the system?
Scenario
I have an SSD in my computer (250GiB), with both /boot and ///home partitions on it.
I'd like to move that into a new M.2 NVME drive which is much larger (1TiB).
The distro I'm using is ...
33
votes
6
answers
12k
views
Drop a specific file from the Linux filesystem cache?
I know I can drop everything from the Linux filesystem cache, but is there a way to drop just one specific file? Or prevent a file from being cached? Or tell a process not to cache any files it ...
0
votes
0
answers
44
views
What are all file metadata available to the linux file system that are always available vs optional?
Context: I know that some programs figure out whether they're being run inside a terminal by running the standard C function isatty(STDOUT_FILENO), or isatty(STDIN_FILENO).
I believe also that they ...
18
votes
3
answers
3k
views
Symlink to part of the file?
Is there possible to create file that is just a sub-sequence of bytes from another file, like a symlink, but referencing only part of the file?
0
votes
1
answer
52
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....
3
votes
3
answers
22k
views
specify mount option in /etc/fstab (mode=1777)
I have following line in my /etc/fstab:
/dev/mapper/tmp /tmp ext4 noexec,nodev,nosuid,mode=1777 0 0
When I try to mount /tmp, I get following error in dmesg:
EXT4-fs (dm-1): ...
-1
votes
0
answers
56
views
Does Ubuntu corrupt NTFS?
I have a dual-boot system with Windows 11 and Ubuntu 22.04, 6.5.0-45-generic. In Ubuntu, the Windows boot partition and data partition both are mounted via fstab:
LABEL=DATA /media/alouette/DATA ...
41
votes
6
answers
5k
views
What are the alternatives to the FHS?
I'm a long time Linux user for over 15 years but one thing I hate with a passion is the mandated directory structure. I don't like that /usr/bin is the dumping ground for binaries or libs in /usr/lib, ...
1
vote
2
answers
4k
views
Successfully installed amazon-efs-utils but cannot find it
$ sudo yum install -y amazon-efs-utils --verbose
Loading "extras_suggestions" plugin
Loading "langpacks" plugin
Loading "priorities" plugin
Loading "update-mood"...
0
votes
1
answer
100
views
Cannot get SD Card formatted as ext2 to work on MX Linux laptop
Summary
I formatted a 64Ggb micro SD Card with an ext2 filesystem. After
mounting and copying files to it, many files were corrupted; almost 400 out of 10,500 files.
I also tried ext3 and ext4. And I ...
3
votes
2
answers
3k
views
Recommended scheme for partitioning root file system into subvolumes following the Filesystem Hierarchy Standard
The Filesystem Hierarchy Standard (FHS) is the formal codification for root file tree on Linux installations, as inherited from earlier iterations of Unix and POSIX, and subsequently adapted. It ...
-2
votes
1
answer
43
views
Linux + how to increase partitions based on disk size
we have some red-hat servers with the following details ( when OS disk size is 230G )
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 230G 0 disk
├─sda1 ...
4
votes
1
answer
505
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 ...
8
votes
2
answers
1k
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 ...
38
votes
1
answer
5k
views
What happens when Linux goes out of letters for drives?
Let’s say I have 50 USB flash drives.
I assume they get to be /dev/sda to /dev/sdz. What comes after /dev/sdz?
5
votes
2
answers
26k
views
mount fail unknown filesystem type crypto_LUKS
I am facing a problem where I cannot mount a filesystem following decryption. All online searches for advice I have seen basically lead me to do what I have already - Anyone got any ideas?
My initial ...
51
votes
5
answers
14k
views
Append huge files to each other without copying them
There are 5 huge files ( file1, file2, .. file5) about 10G each and extremely low free space left on the disk and I need to concatenate all this files into one.
There is no need to keep original files,...
0
votes
0
answers
70
views
How can I increase the size of my /opt directory?
From following other posts, in order to increase the size of the /opt directory, one option is:
resize2fs -p /dev/mapper/rootvg-opt
However when I run this I run into
resize2fs 1.47.0 (date)
open: ...
0
votes
1
answer
762
views
Question marks showing in ls of directory even with root
If I do ls -alt in any folder i get the following. Even with the files or folders i create with root. Commands such as stat filename returns Operation not permitted. Any idea what causes this?
[root@...
0
votes
2
answers
153
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 ...