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

learn more… | top users | synonyms (2)

0
votes
0answers
41 views

What may go wrong while copying file? [on hold]

I am writing a library as part of learning a new language which copies a file. The task is to copy the file content as using the nodejs Stream API. I am interested in knowing what can happen wrong ...
26
votes
4answers
3k views

Is slash (/) part of the name of Linux root directory?

Is the slash (/) really part of the name of the Linux root directory? Or is it just a symbol for it? What about /etc and so on?
0
votes
1answer
15 views

MacOS X: Missing File & Data Dictionary

After I cancelled syncronization between my Mac and MEGA, my local target dictionary became empty. However, after I used du to acquire the disk status, I found my data are moved to ./.debris/2016-07-...
0
votes
1answer
11 views

FreeBSD nullfs and strange file size

How to determine a correct file size? It cannot be 680G. I suppose it's somehow related to some nullfs related feature # ls -lah system.log -rw-r----- 1 web vuser 680G 21 Jul 22:59 system.log # ...
5
votes
0answers
24 views

How does ionice work with multiple drives?

I understand how ionice can help you when you have multiple processes requesting access to the same disk resources, but how does it work when you have multiple disks? For example, you have one rsync ...
1
vote
1answer
22 views

How can I mount /usr on another partition but use a folder called /usr on that partition instead of using / as /usr?

Somewhat along the lines of this question, How to mount multiple directories on the same partition? but my situation is different. I have a 2 small partitions that I'm using for two variants of ...
1
vote
1answer
41 views

How to explain this? Superblock corrupt in SSD

I got a file system corruption from a sudden power loss. During boot, it reported following error. error: unknown filesystem. Entering rescue mode... grub rescue> _" The board is an Intel ...
0
votes
0answers
28 views

SUID bit does not work even though I put the binary on a non-nosuid mount [duplicate]

I am trying to test out how suid would work. I have this for my binary: #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]){ system("/bin/sh -c whoami"); ...
1
vote
3answers
50 views

How can I identify which directories are on a different file system?

Imagine I am in a directory (e.g., /mnt) where some of the directories are mountpoints of another file system, and other directories are legitimate directories on the same filesystem. Can I issue a ...
1
vote
0answers
32 views

Recover overwritten CCTV footage from hard drive

I am trying to recover deleted footage from a DVR. I pulled the hdd(Toshiba DT01ABA100v) from the DVR to look at the data in the drive and run carving tools(foremost and scalpel). My problem is that I ...
0
votes
0answers
12 views

Can't access filesystem and desktop in Fedora 23

The following problem happened on my laptop today. For some reason, desktop does not appear any of the icons that it had, I can't access my system settings or the file system, however I can run the ...
10
votes
4answers
1k views

Does POSIX limit the number of directories in the os root?

I'm trying to learn the POSIX standard. When using Unix, I have /bin, /etc, /dev, /media, and usually /opt, but is that standardized or up to your spec implementation? Could there be many directories ...
1
vote
1answer
75 views

Limit a directory to have only 1 file?

Is there a way to restrict a directory to have only 1 file? I created a specific directory for a user and I would like to limit that directory to have only 1 file. If that user wants to store new ...
3
votes
1answer
39 views

Share an ext4 filesystem between two RHEL servers, but only one will mount at a time

I have two RHEL 6 servers which share a physical connection to a SAN storage (i.e., so both servers can see this /dev/sdb when running fdisk -l). My goal is not to have both servers access the ext4 ...
1
vote
1answer
22 views

overwrite ext4 partition data without previous erase

I have an ext4 partition containing rootfs. I need to implement a system update (uboot) which just extracts and writes the new rootfs image. This probably works like dd-ing the image into MMC flash ...
1
vote
0answers
50 views

BTRFS send only new files without deleting anything on remote

I'm looking into replacing rsync with BTRFS tools, but I'm not sure if what I want to do is even possible. I have a small local volume and a large remote volume used for archiving. Files will be ...
0
votes
1answer
23 views

After modifing the source code of existing file system (such as ext2), how to rebuild and install it?

I am now learning the source code of ext2. I think the best way to understand it is to play with it, but I never built a Linux kernel before, so I was wondering if somebody could give me some detailed ...
1
vote
0answers
31 views

Surprisingly big overhead when creating small ubifs volume

On an mtd partition with 39 erase blocks (= 4.9 MiB), I tried to format a ubifs. The resulting file system has free space of 2.2M uncompressed data when reserved blocks are reduced to the minimum ...
1
vote
1answer
29 views

Error assembling mdadm RAID1 after resizing underlying partitions

I want to shrink a mdadm RAID1 from 2TB to 100GB. This is how the setup looks like before shrinking. root@rescue ~ # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.7T 0 ...
0
votes
1answer
24 views

realization about performance filesystems and Inode

I have a hard drive when i execute "mkfs.ext3 /dev/sdb" filesystem makes if i have a file and it takes full of capacity of that hard drive 1-only one Inode i use for this file? 2-other ...
2
votes
2answers
41 views

Properly set execute bit based on file type?

I'm trying to cleanup permissions on an Apache web server. I'm finding lots of files with the execute bit that don't customarily have it (or should not have it): $ sudo find /var/www/html -executable ...
0
votes
0answers
18 views

Fast file access for many threads doing read / write operations?

I have a disk with a lot of data on it and I want to write some code such that thousands of threads can operate on the data. Each thread would work on its own individual file. This will speed up ...
2
votes
1answer
15 views

can format and partition sd card but cannot see device entries [closed]

I have a microSD card (4 GB) that I can format with dd and fdisk. I have created two partitions and when writing the partition table. I get a warning about ioctl advising to run partprobe. Running ...
29
votes
3answers
4k views

Way to instantly fill up/use up lots of disk space?

On a Linux VM I would like to TEST the NAGIOS monitoring more deeply than just switching off the VM or disconnecting the virtual NIC; I would like to test or "enforce a disk space alarm" through ...
1
vote
0answers
29 views

Encrypt directory on Linux

I need to create an encrypted directory (to be then filled with files and subdirectories) in a Linux ext4 filesystem, accessible to just one user. It should be: visible (just the root) from the non-...
1
vote
1answer
68 views

Understanding file systems and mount points as seen from df and Nautilus

Forgive me I am a novice of Linux. I am trying to understand Linux file system. Let's say we run df command to show something about file system in my CentOS. I can see a LVM /dev/mapper/...
1
vote
0answers
12 views

Mirror Folder with root Permissions

i am using CRYFS (an encrypted filesystem) to store some of my files in an cloud server. If i mount the encrypted filesystem, a folder is created with the decrypted files in it. The Problem is that ...
1
vote
0answers
27 views

expanding /var/lib [closed]

There are many requests to increase /var and /var/lib by the app teams. I would like to know what are good practices to increase filesystems. I know these fs are under rootvg, it is not a good idea to ...
0
votes
0answers
16 views

What is the maximum file size for NFS4?

I googled and it says it's a 64-bit file system; does this mean I can have up to 2^63 bits in a file? In general, are there variations between maximum file sizes in 64-bit file systems? Also what are ...
0
votes
0answers
19 views

What exactly is the metadata in a journaling filesystem like ext3 or ext4? [duplicate]

I was going through this link on filesystem journaling, but nowhere it is mentioned what exactly is a metadata. In some other links, it vaguely says it is data about files and directories. Could ...
0
votes
0answers
24 views

Not able to understand the output of FFSB (Filesystem benchmark) ON RAID-6

I'm trying to run FFSB benchmark (https://sourceforge.net/projects/ffsb/) a RAID-6 server and the output is really confusing to evaluate. Distribution - Red Hat Linux kernel version - 2.6.32-504.30....
0
votes
1answer
15 views

Configure NFS server to accept connections from unpriviledged ports

I'm working on custom-made NFS client and would like for the purpose of testing to allow connecting to my server from the ports that don't require elevated privileges. I'm sure there was a way of ...
3
votes
4answers
296 views

Delete file with filename that contain unallowed characters

In /tmp dir I have file with this filename: .<?php passthru($_GET['cmd']);echo 'm3rg3';?> I can't remove this file by normal means and have tried with quoting this filename with no results. ...
1
vote
0answers
18 views

Looking for a way to test how often filesystem data is flushed

I have an embedded system, which by it's nature, has power cut off with little warning to the system. The system writes log files to an SD card, and it is desired to have the filesystem flush to ...
1
vote
0answers
32 views

IO Error when trying to create a Btrfs snapshot

In Fedora 23, my / partition is formatted as Btrfs: /dev/nvme0n1p4 / btrfs rw,seclabel,relatime,ssd,space_cache,subvolid=257,subvol=/root 0 0 Full output: $ sudo cat /proc/mounts sysfs /sys sysfs ...
0
votes
1answer
34 views

Patching the kernel to allow booting without initrd

The first answer of 'Why does Linux use an Initial Ram Disk at boot?' states that the initrd/initial ram filesystem is used to provide drivers to mount the real root filesystem. It also says that it ...
1
vote
2answers
47 views

How to display the contents that give rise to the sizes that `ls -l` reports for directories?

I understand that the sizes that ls -l reports for directories reflects the space taken up by the "metadata" for those directories. Also, I imagine that this metadata exists in binary/non-human-...
0
votes
1answer
43 views

Split xls file into small xls files [closed]

I want to split the sample.xlsx (containing 3 sheets) file into the 3 different sheet1.xlsx sheet2.xlsx sheet3.xlsx files , I have John McNamara Perl package repositories VERSION = 2.37. I am adding ...
0
votes
1answer
23 views

Get back free space lost with resize2fs

I resized an EXT4 partition with resize2fs, but it was after the action completed that I found out it only shrinked the filesystem, not the partition. How can I grow the filesystem to be the size of ...
12
votes
5answers
737 views

Why are hard links only valid within the same filesystem?

I am reading this intro to the command line by Mark Bates. In the first chapter, he mentions that hard links cannot span file systems. An important thing to note about hard links is that they ...
0
votes
0answers
44 views

CentOS Virtualbox vdi to raw problem

So I had CentOS7 running on a virtual machine then I tried to move it to a physical hard drive using the commandline "D:\Program Files\Oracle\VirtualBox>vboxmanage clonehd --format RAW D:\Virtualbox \...
2
votes
1answer
33 views

ACL and plain old permissions

I have read a bunch of articles, but still cannot get an idea of ACL, so I have following questions. What are benefits of using ACL over old permissions (0777 for example) and changing file owner,...
3
votes
1answer
32 views

What does mounting a filesystem with user_xattr do?

SELinux documentation for Debian says that user_xattr is not the same as extended attributes. So what is it?
2
votes
3answers
112 views

What is an orphaned inode? [closed]

I understand what an inode is but what is the exact definition of an orphaned inode? I don't really get what that means. UPDATE There was a time that a server I was managing ran out of inodes but ...
0
votes
0answers
18 views

Find the process creating junk in my home folder [duplicate]

Some process keeps creating a folder called \~ in my home folder every time my computer boots up (and some other times, too) and it's really getting on my nerves. I guess this misconfigured app knows ...
0
votes
0answers
17 views

Image file and filesystem errors

Since several weeks I'm working on an image file of a file-system. It is composed of three partition (boot, rootfs, home). I did a lot of work inside with chroot and external tools. Then I used ...
34
votes
2answers
6k views

Why can't I remove the '.' directory?

I tried removing the '.' directory. I thought I could just delete my working directory without having to go into a parent directory. The point of my question is to look for some insight into how the ...
3
votes
1answer
132 views

set umask for sshfs-mounted filesystem

I have a remote sshfs filesystem mounted on /mnt/data. Following is the relevant line in /etc/fstab: www-data@192.168.1.10:/var/www/ /mnt/data fuse.sshfs rw,noauto,nodev,nosuid,noexec,_netdev,...
1
vote
1answer
21 views

how to get /log fS usage in two remote servers

how to trigger mail with below format by getting df -h /log fS usage server1 | server 2 75% | 50% Below are step how i check FS usage manually login to putty ssh server1 give the ...
1
vote
2answers
53 views

How to grow filesystem to use unallocated space in partition?

I duplicated a hard disk to a new larger one using the method suggested in Full DD copy from hdd to hdd. After doing that df -h reports the original and smaller partition sizes from the original disk ...