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
2answers
46 views

What is a “path name component”?

I am not sure I correctly understood what is a path name component (or perhaps better written; path name-component) which I understand to be commonly abbreviated simply as "component" in the Unix &...
1
vote
2answers
25 views

What is the most basic “depth” of any “container file”?

I use the term "container file" to describe any file which practically contains one file or two or more files. Some examples would be a tar archive or a directory. Let's say I open a tar archive with ...
2
votes
0answers
23 views

Multiple files with the same name and a tilde are written while editing a file with gvim

I am under fedora 29. I edit my files with gvim and since a few days, one of them appears multiple times, renamed with an additional letter and tilde. The directory looks like this : sf1.pdf sf1....
-2
votes
0answers
17 views

How to implement HDFS in user space, so that FUSE can work with it?

https://en.wikipedia.org/wiki/Filesystem_in_Userspace says Filesystem in Userspace (FUSE) is a software interface for Unix and Unix-like computer operating systems that lets non-privileged users ...
0
votes
0answers
12 views

Group permissions and access of files in linux

I created a file in linux with name myfile then used chown myuser:mygroup myfile to allow the access of myfile to user and group both and group have a permission of read write and execute as well ...
0
votes
0answers
12 views

Mount point: inode/x-corrupted type

I mounted /dev/sdb1 to /mnt/MyFlashdrive. After mounting, the mount point turned into a inode/x-corrupted type. There are no files inside the mount point and its permission is set to 777 and the owner ...
0
votes
0answers
18 views

Creating a loop device out of an SD card backup image results in a corrupt ext4 filesystem

I made a backup of my Raspberry Pi SD card. After creating a loop device out of the image, the ext4 filesystem seems to be corrupt although the original filesystem is OK. I've already tried different ...
0
votes
1answer
26 views

I can't cd to my flashdrive

After using the command cd /media/pi/Pendrive, I got an error: bash: cd: /media/pi/Pendrive: Transport endpoint is not connected
0
votes
0answers
26 views

How to mount two devices(flashdrive) to different mount points?

I have two flash drives(/dev/sda1 and /dev/sdb1). /dev/sda1 is mounted on /mnt/RedFlashDrive while /dev/sdb1 is mounted on /mnt/TorrentDrive. When I use the command "ls /mnt" I got an error: ls: ...
0
votes
0answers
34 views

Not enough space on Filesystem root, Linux Mint

update: I have rebooted the system, first it looked like the ambiguity between images 1 and 2 in my original question below has gone, however it is 10 minutes now from my reboot, and the disk space is ...
0
votes
0answers
8 views

How to write to socket and have it sent to /dev/null unless there is a reader?

I want to write to something (a named pipe, a socket, idk) and if there is reader listening to the socket, the data will go to the reader(s), otherwise it just gets dumped to /dev/null. Is there some ...
0
votes
1answer
31 views

How to find out what function is runnng when reading /proc

I am trying to write a kernel module that hides some sockets from netstat. I checked how netstat is working and saw that it's reading from /proc/net/tcp. Now I am stuck. I am trying to figure out ...
2
votes
1answer
61 views

File timestamps precision - ext3 with nanoseconds, ext4 with milliseconds

People say ext3 supports file timestamp precision up to seconds and ext4 up to nanoseconds. What happens is that my old VPS running Ubuntu 12.04 with an ext3 filesystem always (as far as I can ...
0
votes
0answers
9 views

Renaming a logical volume which is not mounted as a file system

I would like to rename a logical volume which is being used as raw device, used by database instance. I found that logical volumes need to be unmounted before getting renamed. So can I just rename it ...
0
votes
1answer
16 views

File Systems: Change commit interval while file system is mounted?

is it possible - and if yes, how - to change the commit interval of a mounted file system while the file system is mounted?
0
votes
1answer
29 views

Discrepancy between “du” and “df”

I have a strange discrepancy. With "df" I see that my root disk is using almost 229G. # df -h Filesystem Size Used Avail Use% Mounted on /dev/dm-2 241G 229G 13G ...
0
votes
0answers
22 views

DD command: Create an partition image without save filesystem

I have the initial situation: I have executed the commands: sudo dd if=/dev/sda1 of=~/part1.img sudo dd if=/dev/sda2 of=~/part2.img After this, i have prepared the new partitions for restoring the ...
-1
votes
0answers
11 views

VirtualBox Corrupted VDI Disk file

It looks like my vdi has some inode missing or likewise because when I start my fedora VBox, it goes into emergency mode. I tried cloning using this command: VBoxManage clonehd algo2020/algo2020.vdi ...
0
votes
1answer
16 views

Metadata recovery from corrupted ext4 partition

I have a rather complicated data recovery task. I want to get some metadata (filenames, directory structure etc.) out of a corrupted ext4 filesystem. I tried a bunch of tools (Testdisk, fsck, foremost)...
0
votes
1answer
29 views

xfs_repair , complain about contains a mounted and writable filesystem

Since we have the following from dmesg [37785.390633] XFS (dm-2): Metadata corruption detected at xfs_dir3_block_read_verify+0x5e/0x110 [xfs], block 0x7f8af18 [37785.390634] XFS (dm-2): Unmount and ...
0
votes
0answers
19 views

how to repair OS with xfs file system

we have rhel machine version 7.2 after some testing , we understand that OS file system became corrupted and we want to use with xfs_repir in order to repair the disk /dev/sda what the procedure ...
0
votes
0answers
52 views

extend ext4 filesystem on Ubuntu VM, using all 4 sda partitions without LVM

How can I extend an ext4 filesystem, without using LVM, that is already using 4 partitions on the disk (sda1-4)? The last partition is the one that needs extended. Am I able to delete and recreate the ...
0
votes
1answer
41 views

How to mount a backup ext4 superblock? I got an error when following instructions [duplicate]

I'm trying to recover stuff after I accidentally formatted an ext4 partition. I'm running the system from a Live USB, and following this guide to mount a backup superblock. However, I get an error ...
0
votes
0answers
23 views

How to change inode without changing contents?

For various reasons I'd like to have a new inode for a specific file path, with identical contents. One way to achieve this is to create a copy of the file and then moving the copy over the old file: ...
0
votes
1answer
30 views

Files missing in GUI after recursive chmod or chown

I was trying to set permissions on all of the files in a removable hard disk. I had tried chown and chmod on the disk address (i.e. /dev/sdb) but I still couldn't move files as a user. Then I tried to ...
0
votes
3answers
52 views

How to remove hard links on ubuntu without losing original file?

I am on ubuntu and I use dropbox. The problem is that I have some problems of synchronization because I have many hard links in my picture folder. How can I remove all of them with a simple command ...
3
votes
1answer
34 views

How to ensure all processes are killed before unmounting a filesystem?

I am trying to unmount a busy file system on which continuous I/O reads and writes are happening by a multithreaded program due to which the umount command fails. root@ubuntu:~ # umount /mount/v1 ...
0
votes
1answer
17 views

File corruption on samba share

I have a Samba 2.0 share, setup with a Western Digital WDTVLIVE device. I'm playing mp3 files from this share (from MacOS Music, Windows MusicBee and iOS Evermusic apps). What happened some days ...
0
votes
0answers
20 views

mount: /media: unknown filesystem type 'usbfs'

I'm trying to mount usbfs using mount: /media: unknown filesystem type 'usbfs' or in fstab, using usbfs /media usbfs defaults 0 0 Both are failiing for me ...
1
vote
1answer
26 views

Copy Data in Uncompressed ZFS Filesystem to Another Compressed ZFS Pool

I have 300GB of data in ZFS filesystem tank/storage where compression is not enabled. tank is a mirror vdev made up of 2 drives sda and sdb and tank/storage is mounted to /storage. I want to know the ...
5
votes
1answer
157 views

Does fstat require disk access on Linux/ext4?

Linux Kernel 5.3 Consider the fstat syscall defined as int fstat(int fd, struct stat *statbuf);. Is disk access required for the fstat syscall on ext4? I did some research related to it and find out ...
0
votes
0answers
43 views

Why is /dev/sda1 being almost full?

I am running a debian-9-torch-xla-v20200208 image on a Google Cloud Platform VM instance and have a 40GB persistent disk attached to it. I am running out of persistent disk space while downloading ...
0
votes
1answer
65 views

What does upper/lower bits mean?

I'm learning a bit about Ext4 file system here. In the first table on this link they are describing fields of the inode. Each field entry has an: offset size name description In the description ...
0
votes
1answer
28 views

Increase disk size by merging partitions

I'd like to have some more space on my Linux partition. My laptop is a Windows/Fedora dual boot. I have made a partition that I want to add to my Fedora partition. I can't figure out how to merge (or ...
0
votes
0answers
36 views

Filesystem metadata

When someone talks about filesystem metadata in the context of a linux/unix filesystem, does that includes directories? I mean is a directory operation considered a metadata change? And ...
0
votes
1answer
31 views

Is it possible that size of directory exceed one block size?

I have known that in Linux one directory must occupy one data block to store file links consisting of inumber or sth. else. However, if there are thousands of files in this directory, is it true that ...
0
votes
0answers
38 views

Parabola (Arch-based) failing on boot: 'unknown filesystem type: ntfs'

I am trying to install Parabola Linux (a libre distro based on Arch) on a system where I have a dual-boot with Windows 8. I got to a point where I had a bootable CLI system; however, I just installed ...
0
votes
0answers
15 views

Which Fuse-Ext2 for 16k block FS reading from Linux ? (scrambled read with current version)

I try to access Ready NAS Duo v1 disk with a Linux system (Mageia 6 for x86_64). Ready NAS Duo v1 has a SPARC architecture and disks with 16k blocks Ext3 filesystem. The main volume I need is setup ...
0
votes
1answer
32 views

Creating a system image that has no persistant storage?

So I would like to create a system image, that I can tell grub to boot to every time, but with only temporary memory. I would like to create a system image that is fully installed and set up and then ...
1
vote
1answer
43 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 ...
0
votes
0answers
29 views

Fix incorrectly unmounted device

I've forgotten to umount my sdcard before I pulled it out and now I can't mount it again. When I try sudo mount /dev/mmcblk0p2 /media/xxx/rootfs I get following error: mount: /media/xxx/roofs: ...
-1
votes
4answers
76 views

Can a program continue to work on an opened file after it is moved by another program? [duplicate]

When a program opens a file, and another program moves the file so that it has a different pathname/filename, can the first program still work on the file, for example, modify the file's content or ...
0
votes
0answers
16 views

Getting content from an extracted ubi image

I dumped a NAND flash a while ago and analyzed the dump with binwalk. Binwalk could find a SQUASHFS filesystem but unfortunately it was not possible to retrieve the data because it is monted on top of ...
0
votes
0answers
22 views

How to get size of the volume in one line?

I have created kubernetes PVC which is creating volume and mounting into a linux host. I need to fetch the size of the volume. Currently below is the way i am taking volume name and size. To get the ...
0
votes
2answers
103 views

Why do we need inodes for files and directories? [closed]

I don't really understand why do we need Index nodes. After searching for manuals I learned that it stores some meta data about files or directories. However isn't that already what a directory does? (...
2
votes
0answers
23 views

Does “sync -f /home” apply to /home or /?

Suppose that /home is a different filesystem than /, and I do sync -f /home. According to man sync: -f, --file-system sync the file systems that contain the files So would that mean ...
2
votes
1answer
96 views

Delete millions of files efficiently, without first generating a list of all files to be deleted [duplicate]

I've been trying to figure out how to delete millions of files from a mounted NAS drive. The OS I'm accessing it from is RHEL 7.6. The directory is actively being written to, with tens or hundreds ...
0
votes
0answers
11 views

btrfs RAID0 - should I stripe or duplicate metadata?

I want to use btrfs with raid0 on three nvme drives. These should contain the operating system and most application files, whereas valuable user files will be on a network drive or seperate disk. ...
0
votes
0answers
59 views

Root directory (“/”) mounted as read only

I have a small Debian based computer (similar to the raspberry pi) that is having issues with the filesystem. When I try to write or delete (or in any way shape or form, change) a file, I get the ...
0
votes
0answers
22 views

Why external device becames READ ONLY after other programs use it?

Manually mounted device sdd1 is ok to use (mv, rm, cp etc) from terminal commands, but from the moment onwards that I use , lets say pcmanfm or firefox to save things, for instance, it becames READ ...

1
2 3 4 5
62