Questions tagged [filesystems]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

How are filesystems merged and presented in a common filesystem when booting a Linux machine?

When working with Unix/Linux, I get that disk spaces are divided in partitions, that may or may not be fed with different filesystems that can be mounted anywhere on the 'root filesystem'. ...
1
vote
2answers
34 views

Removing files in a folder with specific pattern

I have 20 Files in a folder. 10 files naming pattern is PTT-20190118-WA0010.wav and other 10 files naming pattern is PTT-20190118-WA0010_s.wav. How to delete files with "PTT-20190118-WA0010.wav" ...
1
vote
0answers
26 views

Re-Partition filesystem -Linux vmware environment [closed]

My problem in other words is that ( I am using Vmware Vsphere environment ,I have created a new Linux machine "testdb" that should be similar to "preprod machine shows below" in filesystem structure ...
0
votes
0answers
46 views

how does the copy cp command differentiate between the ESP and root partition?

the boot directory exist on both the ESP(sda1) and root(sda5) partition. when i use this sample command to copy vmlinuz and initrd files: sudo cp -a initrd.img-4.15.0-43-generic /boot i was able to ...
2
votes
1answer
51 views

UTF8 Character Makes File Inaccessible

If I run: scp me@example.com:/home/me/cömmön_file.jpg /home/me/ from my remote server I get: scp: /home/me/cömmön_file.jpg: No such file or directory If I swap out the utf8 characters though ...
2
votes
1answer
197 views

Why do some filesystems perform better at storing large files?

I read about the XFS filesystem and found that it is good at storing large files. Why are some filesystems (XFS) good at storing large files and others (ext4/ext3) are not? Is it because of the ...
2
votes
0answers
17 views

Find the size of all relevant caches when doing I/O

So, I'm looking at the stats from iostat, which updates every few seconds, and I see that I/O to device happens in bulks, say, around 40M/s, once every half a minute or so. I'm debugging an ...
4
votes
1answer
628 views

What is good block size for file cache on Linux?

The device block size is usually 512 bytes while the filesystem block size is often 4096 bytes. Why are they different? Why are 512B and 4KB good choices for device and filesystem block sizes? What ...
0
votes
1answer
1k views

Ext4 Error and disk remounted read-only

Sometimes I have an error ext4 and my disk becomes read-only. I can fix it with a reboot and fcsk /dev/sda2 but it keeps coming back... Here are some dmesg : [ 3160.692730] perf: interrupt took too ...
1
vote
0answers
24 views

Convert filenames to comply with cross-platform standarts [closed]

I have lots of scientific articles on the disk that contain semicolons and other characters not so welcome on alternative platforms (even on Android via MTP). How do I automatically convert all ...
1
vote
0answers
163 views

On CentOS 7 allow certain users Read & Write to mounted file systems of different types

I have a query around mounting file systems of differing types in such a way that a selection of users have r/w access to them. Here's the scenario. I've rebuilt a media server to Centos 7 minimal ...
0
votes
1answer
34 views

How to get informations on each type of filesystem in /proc/filesystems

How do we get detailed information (history, what is used for, etc.) on each filesystem or pseudo filesystem displayed by : cat /proc/filesystems Example : nodev, sysfs, rootfs, ramfs, bdev, proc , ...
1
vote
1answer
104 views

Where to put daemon files?

I wrote a couple daemons communicating over Unix domain sockets (raw sockets) and now I want to find the most suitable location for them on the production server. Where to put which files? Here's ...
2
votes
1answer
132 views

disk %util reaches 100% constantly when avgrq-sz is small

On my system with 4.9.86 kernel I have noticed weird behaviour with my disk (HDD with 5400 rpm), the %util goes 100% for quite some time constantly (for 5 minutes or so), I do see the avrg-rq size is ...
0
votes
1answer
76 views

Turning quota on yields warning message about device busy

I run quotacheck on a filesystem to enable user quota only so now the following file is present: root@Cassiopeia:~# ls -l /mnt/imagemount/aquota.user -rw------- 1 root root 7168 Ιαν 8 15:21 /mnt/...
2
votes
0answers
388 views

Cannot delete a btrfs subvolume

I have an Arch Linux Installation on a btrfs filesystem partition "/dev/sda1": [root@larch ~]# mount | grep sda /dev/sda1 on / type btrfs (rw,relatime,ssd,space_cache,subvolid=266,subvol=/subvol_root)...
1
vote
1answer
47 views

Tool for creating and calling folder structure templates?

Is there a Linux utility for creating templates for directory structures, outside of the scripts packaged with a DE like Gnome or LXDE? (I run openbox and would like to avoid a DE at all costs) There ...
1
vote
1answer
67 views

Is it worth to keep using a hard disk with these errors?

I was trying to re-use a hard disk that shows errors, I don't remember if the device was hit or it starts making misreads on his own. The fs is ext3. There are files recovered using the testdisk ...
0
votes
2answers
545 views

How should I merge two folders on the same filesystem?

I have two directories that look something like the following but with many more files. folder1/pic1.png folder1/test/readme.txt folder2/guest.html folder2/backup/notes.txt I want to "merge" these ...
1
vote
1answer
152 views

Why don't FAT filesystems support links? [closed]

FAT filesystems represent files via linked lists of clusters (linked file allocation). They have a region on disk for one or more tables (File Allocation Table) which have as many entries as ...
3
votes
0answers
55 views

meaning of @ in (btrfs?) pathnames

I have noticed that Synology NAS devices preface many system-relevant links or directory names with the @ character. I've just noticed that the standard partitioning in openSUSE does the same when ...
6
votes
2answers
441 views

Type of filesystem to put on USB storage, that is compatible with most OSs [closed]

I want to format a USB storage device from the terminal and I have found several formats to do it. It's the first time I'm going to do this and I have doubts. I want to do it well. I have these ...
3
votes
1answer
260 views

What filesystem allows transferring files between Linux and OS X?

I have a file that is 12 GB that I am trying to copy from a MacBook Air to a Debian computer, using a USB. I tried formatting the USB in many different ways, such as NTFS, FAT32, OS X Journalizing but ...
3
votes
1answer
104 views

How can I re-partition a hard/ssd-drive without losing data?

When I got my notebook with a 512GB SSD, I reformatted it and installed Ubuntu. I've followed Ubuntu's suggestion to partition the drive, so I have it partitioned as follows: $ sudo parted -l Model: ...
0
votes
0answers
26 views

What are the contents in /sys/block when ubuntu is a virtual machine?

I am very confused to how /dev/dm-1 was being used as a swapspace by my Ubuntu guest Virtualbox VM. gparted doesn't show these drives. What is going on here? How does the same drive dm-1 have ...
6
votes
2answers
121 views

Why does GNU Core Utilities stat (including du and ls) report the following sizes (ext4 in GNU/Linux)?

If I have the following contents in a directory: empty_dir: Empty directory. empty_file: Empty file. one_char: File consisting of one character. several_blocks: File consisting of several blocks (but ...
7
votes
5answers
1k views

Executing a bash script or a c binary on a file system with noexec option

Can anyone explain in details what is going on with the following. Let's imagine I am mounting a directory with noexec option as follows: mount -o noexec /dev/mapper/fedora-data /data So to verify ...
0
votes
0answers
87 views

Create ext4 partition on LVM

I have a 2TB volume (RAID 5) on a Linux Mint . I use Dropbox, which has stopped supporting any file type on Linux Mint 18.1 system. I would like to carve out a partition formatted in a manner Dropbox ...
0
votes
0answers
17 views

Can't paste files to GoPro from KDE Manjaro

I'm trying to update my GoPro Hero 3 by copying the update file to the gopro as per the instructions. However, It's telling me that it's a read-only filesystem: cp ~/Downloads/UPDATE.zip /run/media/...
1
vote
1answer
24 views

Are files always cached in $BLOCKSIZE increments?

Given a 4KB block size, when a 1KB file is read from disk and cached in main memory, is the entire 4KB block that contains the file cached? Similarly, if opening a 100KB file, seeking 50KB in and ...
0
votes
0answers
122 views

How to make exfat appear as a disk on Computer (RedHat 6)

I have a redhat 6 on 1TB HDD and another 1TB HDD with exfat format, anyway on Computer I can find the drive where redhat installed but not the exfat drive. I do add a line to /etc/fstab for auto ...
-1
votes
3answers
41 views

Files and or directories keep getting deleted from CENT OS file server [closed]

Im using CENT OS 7 on a file server. On that file server, I have a directory that is used by an application at my company to store files. When that directory is deleted the application is not able to ...
0
votes
3answers
75 views

Demonstrate file encoding

I am developing some training and would like to demonstrate file encoding. What I am trying to accomplish is create a text file with one type of encoding that show up as nonsense when read by Linux. ...
1
vote
1answer
33 views

Zsh: =() substitution with executable permission

I need to give an executable file to this command: aria2c “some-url” —on-download-complete =(echo “!#/usr/bin/env bash touch success”) Is this possible? If not, can I implement some helper ...
1
vote
1answer
40 views

Shell: Is it possible to give a string as a file to a command?

Suppose we have a command, eval-some-language —-path=<filename> And we want to do something like this: eval-some-language —-path=“say hello world! exit 3” I think the following solution ...
1
vote
1answer
53 views

what used to lead /bin being full and creation of /usr/bin?

I am and was reading https://lwn.net/Articles/773342/ where the current move of migrating whole lot of filesystem from /usr/$something to simply /usr . Some of the comments again and again comment on ...
2
votes
1answer
2k views

Permanently mounting loop device

I created a file touch /datastore/virtual/pseudoblock created a loop device with it sudo losetup /dev/loop0 /datastore/virtual/pseudoblock (although I got a warning about its size) and then ...
1
vote
1answer
23 views

Interpreting AUFS mounts

My question is the opposite of most on AUFS. I don't need to know how to mount two or more directories in a union. Instead I need to understand what I am seeing on an existing system. / aufs ...
2
votes
1answer
71 views

Corruption on BCache uppon Kernel Update/Upgrade

After using a write-around bcache on the root device of an old laptop for more than a year (HD + SD card), I finally found out that some severe filesystem corruptions I was facing -- which lead me to ...
3
votes
1answer
74 views

Why are du -h / du / df / df -h not refreshing when extracting a large file

I am running tar in the background, eg: tar xfvz large_file.tar.gz & It does extract my file, but when I then launch du -h, du, df or df -h, the output remains the same, and I have to wait ...
1
vote
1answer
429 views

How Do I Extend the Root Partition Backwards

I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could ...
-1
votes
1answer
81 views

How to organize /home/ such that users don't see each other's content?

Up to know, I used a sandbox server for myself only, and websites were in subdirectories of /home/www/: drwxr-xr-x 5 root root 4096 Nov 30 14:45 www |--- drwxr-xr-x 3 www-data www-data 4096 Oct 14 ...
-1
votes
2answers
153 views

Does gparted make good use of badblocks lists?

Suppose there's a hard drive /dev/sda, and both that: /dev/sda1 is a single ext4 partition taking up the whole disk, and it's mostly empty of data. dumpe2fs -b /dev/sda1 outputs the badblocks ...
0
votes
2answers
51 views

Overlayfs inside archivemount

I am trying to mount an overlayfs inside an archivemount (as a follow-up to Layered or Virtual filesystem on Linux). I am doing this: mkdir -p {upper,work,mount} tar zcf somefile upper/ work/ mount/ ...
1
vote
2answers
80 views

Layered or Virtual filesystem on Linux

I basically would like to do something like this: Let's imagine a utility called layer. # sudo layer somefile apt install gcc layer would launch apt in some sort of container. Apt would think it ...
0
votes
1answer
99 views

Does constant writing to “files” in `/proc` or `/sys` reduce the life of my SSD due to its limited number of writing cycles?

My laptop has a SSD drive and I run a script which writes every other second to /sys/class/thermal/cooling_device4/cur_state. I don't think this would count as writing to the SSD and thus reducing its ...
0
votes
1answer
52 views

What is the actual sequence of steps during rm -Rf on a very large folder?

Let's say I run rm -Rf on a very large folder with many files and folders of different size, user permissions etc. I would like to know, does the rm command first accumulate the list of files to ...
1
vote
2answers
529 views

How to determine freeze/unfreeze status of a filesystem?

I use xfs_freeze to freeze and unfreeze my xfs filesystem: xfs_freeze -f /blahblah xfs_freeze -u /blahblah After I run the unfreeze command I want to make sure that the filesystem is not frozen ...
0
votes
1answer
93 views

Linux Mint 17 does not mount WD My Passport 4TB USB

I have a WD My Passport 4.0 TB USB with GPT partition, that was used in a 2013 MacBook Pro. My Linux Mint 17 is "Unable to mount location Can't mount file". Linux Mint "Disks" shows the 4 TB drive ...
2
votes
0answers
194 views

Disable writeback cache throttling - tuning vm.dirty_ratio

I have a workload with extremely high write burst rates for short periods of times. The target disks are rather slow, but I have plenty of RAM and very tolerant to instantaneous data loss. I've ...