Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filesystems]

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

0
votes
0answers
14 views

Re-Partition filesystem -Linux vmware environment

I need to re-structure my file system in a new created virtual machine , now it looks like below: [root@testDB ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_testdb-...
0
votes
0answers
23 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
39 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
52 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
14 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
414 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
0answers
18 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
21 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
23 views

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

I'm a relative linux noob and 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 ...
0
votes
1answer
23 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 , ...
0
votes
1answer
42 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
24 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
8 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
29 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
19 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
59 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
33 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
53 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 ...
-1
votes
0answers
33 views

Buffer I/O error on ext4

Whenever I start my Linux system after some time the OS gives me the following error: ext4-fs(sda1) : previous I/O error to superblock detected error. I am unable to solve this.
2
votes
0answers
27 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
399 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
77 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
47 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
24 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
99 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
473 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
43 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
9 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
22 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
23 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
40 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
60 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. ...
0
votes
1answer
22 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
38 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
43 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 ...
0
votes
0answers
21 views

Lifespan of blocks in a UNIX block-cache

Recently, I've been getting into OS development and have been experimenting with writing my own small kernel. I've just begun to look understand and implement a block-cache, for caching data read from/...
2
votes
1answer
56 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 ...
0
votes
0answers
28 views

Importing ZFS pool takes forever on boot

I recently moved my Gentoo (OpenRC) root to ZFS, and so far everything works great, except for one thing: importing zpool takes a long time (one-two minutes) on boot. After the import is finished it ...
1
vote
1answer
15 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 ...
1
vote
0answers
16 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 ...
-1
votes
0answers
18 views

Static Tomcat Site on Ubuntu - unable to reach files/directory with white space in url?

I am migrating a legacy image hosting server from Windows with weblogic to Ubuntu with tomcat. the server provides images directly from the file system with URLs mapping to the physical. I have ...
3
votes
1answer
41 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 ...
0
votes
1answer
38 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
69 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
59 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
25 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
36 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
84 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
35 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
69 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 ...