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

learn more… | top users | synonyms (2)

0
votes
0answers
17 views

How are the sizes of Linux directories determined? [duplicate]

The results of ls -lh provides, among other things, a listing of subdirectories and their sizes. As the directories' sizes are not determined by the sum of the files within them, how are they ...
1
vote
2answers
86 views

`du -b` shows different size than `ls`

I have a directory with a few hundred files (real files, no symlinks, no subdirectories). When I use ls -la and sum up the sizes in Excel I get 287190 bytes(?). When I use du -b or du ...
1
vote
0answers
73 views

Untar a filesystem to device as normal user but maintaining the correct UID and GID

I'm doing quite a bit of development using Yocto to target an embedded system. As its final output, Yocto generates a tarball of the filesystem, which I then untar onto an ext4 partition of an SD ...
0
votes
1answer
19 views

How to create a disk image with a partition table that can be easily resized to the target device?

I want to create a disk image with two partition, boot partition and rootfs partition. I want boot to be a fixed size and rootfs to be easily resizeable to fill the target device after the image is ...
0
votes
0answers
8 views

Access images in Mint 17.2

Linux Mint 17.2 has lots of magnificent images that appear on the login screen. I would like to use these images for other things, such as the desktop background. Can anyone tell me where I might ...
2
votes
3answers
243 views

How can I identify the filesystem/partition type

My hard drive got corrupted at some point after mounting an mtpfs system. I would ask how to fix that, but I'm not confident about the partition and file system types. My OS is new Fedora Core 23, ...
0
votes
1answer
28 views

Linux storage database access methods - Hash and recno

There are plenty of other better file system organization methods but why does linux use these in specific ?
1
vote
1answer
47 views

Linux - wrapper to monitor an application's file access?

Are there any user-level wrapper-like scripts/programs that can watch what files an application accesses, without impacting performance? I'm trying to capture what files are produced by an automated ...
1
vote
1answer
29 views

What is the order in which physical volumes are used in a volume group?

I have a volume group which contains 2 physical volumes 400g on a 7200rpm hdd 250g on an ssd. Can I ensure that the ssd is used first/ the hdd is only used when the ssd is full? Note I will have var ...
1
vote
1answer
160 views

Linux root on F2FS

I have my Linux root on an F2FS USB flash drive. The kernel is on another device accessible by the bootloader. I'm trying to start it with the parameters root=/dev/sda1 rootwait rootfstype=f2fs, but I ...
1
vote
2answers
177 views

What kind of data is stored in the ext4 file system's journal?

The ext4 file system has a feature called has_journal. In the dumpe2fs output, we can see something like this: # dumpe2fs /dev/sda2 | grep -i journal Journal inode: 8 Journal backup: ...
0
votes
0answers
11 views

Folder Permission on Storage Mounted by User [duplicate]

I'm having trouble with an external hdd. Let us say there're two users; user, guest. Let the external storage be called hdde. User has automagically mounted hdde in Ubuntu (for some reason it's ...
26
votes
5answers
2k views

How does Linux differentiate between real and unexisting (eg: device) files?

This is a rather low-level question, and I understand that it might not be the best place to ask. But, it seemed more appropriate than any other SE site, so here goes. I know that on the Linux ...
2
votes
1answer
95 views

How do you determine filesystem availability from a bash script?

If I have a script that relies on one of the following being present: overlayfs, aufs, unionfs - what is the best way to determine which is available from a bash script? I would like to use ...
0
votes
1answer
56 views

Is ctime on linux always greater or equal as mtime?

I'm trying to clear out how the timestamps of a file on linux work. In this answer is stated: Modify - the last time the file was modified (content has been modified) Change - the last time ...
2
votes
2answers
63 views

Having trouble making sense of the df command

uname -a Linux CentOS01.localdomain 3.10.0-229.14.1.el7.x86_64 #1 SMP Tue Sep 15 15:05:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Here is the output of lsblk on the centos VM I'm playing with: ...
6
votes
2answers
581 views

Gparted says disk is full but it isn't

I'm on Manjaro and today I woke up to find my computer having problems due to a full disk. I have deleted many things but this did not solve the issue. I have no idea what is happening. Is there a ...
0
votes
0answers
31 views

Disadvantages of certain filesystems when using a HDD in a Samba server?

I have found that using an NTFS drive in a CentOS 7 based Samba/FTP server is not so good, as after a few months of use, I was greeted with numerous read errors which required me to manually remove ...
4
votes
2answers
63 views

Permission bit of 730 for a directory? what does this mean?

I know its rwx-wx---- but what does -wx for the group mean? Can they write and execute the file but not see them? Can they overwrite file with same name or delete the file?
0
votes
1answer
65 views

How to find files that were most recently created on file system?

I am trying to track the completion of a silent installer by detecting the presence of the last file created by it, but in order to do that I need to find out which file that is. Is there any way to ...
2
votes
1answer
74 views

Disappearance of files in all ext4 filesystems of a Debian server

Apparently the disappearance of files and directories occurred in all ext4 filesystems, including files and directories usually "read-only" in /var and /usr, like binaries installed for gcc, and ...
0
votes
1answer
52 views

dd and USB - how does it work?

When you do: dd if=somefile of=/dev/sdX bs=1024 count =10 with a magnetic Hard Disk, and if the disk has say R/W multiple sector transfer: Max = 16 one can estimate that 16 * 512 = 8192 so setting a ...
4
votes
1answer
131 views

Why is the directory /lost+found 16K instead of 4K bytes?

I was in the root direction, /, and I did ls -lah for whatever reason and looked at the folder sizes. I noticed that the folder lost+found has a size of 16K, while all of the other directories has a ...
1
vote
1answer
235 views

How to get more info about socket file?

For a socket file likes this: # ls -alti socket 14112 srw------- 1 root root 0 Nov 15 20:03 socket # cat socket cat: socket: No such device or address Since cat command is useless here, is there ...
2
votes
1answer
683 views

LVM filesystem is full, cannot update system amongst other things

I am running a RHEL 7 server with a license from my university. I am running it on a bare metal server in a local place on my university. I originally installed RHEL 7 with LVM on my hard drive (there ...
3
votes
1answer
48 views

How can you write to a file system before booting using VirtualBox?

I'm reading the TurnKey Linux 14 documentation and it states that in order to preseed values for an appliance, you have to write them to the file system before the machine boots for the first time. ...
0
votes
0answers
29 views

Why Labelling an XFS device doesn't accept spaces

I tried to label my external USB device to "USB DISK" using the following command: xfs_admin -L "USB DISK" /dev/sdb1 but was greeted with a usage screen. Then I tried: xfs_admin -L USB\ DISK ...
0
votes
1answer
38 views

Accounting of filesystem accesses

Is there any way to keep track of number of times each file system is accessed through system calls? I know that the super block will contain the details about the file system. But how can we access ...
0
votes
1answer
36 views

Using `tree`, how do I output files before subdirectories?

I tried to combine --dirsfirst and -r, but directories still show up on top, only in reverse alphabetical order. It seems like -r is applied first, which is also indicated by the man pages. Any other ...
1
vote
2answers
53 views

Undeletable symbolic link on smbfs/simfs

During a software installation, the configure script created a symbolic link with what seems to be ln -s foo foo on a smbfs filesystem mounted with the options ...
0
votes
3answers
57 views

Bash script to remove the oldest file from from a folder

I want to make a bash script to delete the older file form a folder. Every time when I run the script will be deleted only one file, the older one. Can you help me with this? Thanks
1
vote
2answers
61 views

how does o_sync trigger pdflush?

When I write using o_sync, the write call returns once the data has been written to the disk. But how does o_sync force Linux to write the data to disk? Normally you would have to wait a maximum of ...
1
vote
1answer
67 views

How to work out Linux file system delta?

I want to work out exactly which files changed as a result of installing and configuring some software. What is the most effective way to do that?
1
vote
1answer
44 views

Mount HTTP directory on Raspbian?

Is there a way to mount an HTTP resource in Raspbian (default Raspberry Pi OS)? I have an HTTP server hosting music, and I would like to be able to have read-only filesystem access to that music on ...
0
votes
0answers
18 views

How to monitor system, Database Query Values, and the Existance of Files?

I was looking through an old system today, and it had this monitoring software that could send out email alerts. It's very old, but it still seems interesting and useful. It allowed for monitoring ...
1
vote
0answers
43 views

Unable to perform any kind of operation on MircoSD card

I have a 8 GB SDcard that look like this in gparted: My goal is to have a single 8 GB partition on the SDcard. When I try to perform any operation (delete partition, create new partition, change ...
1
vote
0answers
13 views

how to know whether a headphone is plugged in from terminal? [duplicate]

I'm looking for something like presence of a file or its content that could indicate the headphone's presence. I am working on if statement on conky with condition being presence/absence of ...
2
votes
1answer
18 views

Bizarre path description

I think this a silly question but I don't know the answer. I have a checked out a project with file hierarchy: REPO/project/src/multiple sub-directories here I am reading some documentation and at ...
0
votes
1answer
436 views

File type inode/x-corrupted

My system had an unexpected shutdown. Now when I open the file from pcmanfm or nautilus I get file corrupted error. Strangely the files are accessible just fine if I launch pcmanfmas root user. The ...
2
votes
1answer
32 views

passing file in mount options

I am writing a stackable file system which requires some database file. I am thinking of taking it as mount time argument and then reading it's content into private field of superblock of mounted FS. ...
2
votes
0answers
26 views

Which subsystem caches file reads?

I am trying to understand how exactly file reads are served from Page Cache. This will be useful when I will be implementing my own filesystem in the kernel. Is file content cached by VFS or ...
2
votes
1answer
53 views

Why does cd-ing to // set PWD to //, but more slashes just gives /? [duplicate]

On my ubuntu box I accidentally just did cd // and noticed that my current path changed to //. ls showed the contents of my root directory. When I try cd /// (or any other number of slashes) I'm just ...
0
votes
1answer
193 views

Files getting reverted to older version

One of my site was infested with malware once and since then I am seeing every alternate day the header.php files are getting reverted back to older versions (possibly by a script) and a malicious ...
0
votes
0answers
38 views

`cp -iprv` from UFS to NTFS panics FreeBSD and reboots

My nas4free OS seems to be dead, so I mounted its 2GB UFS data partition on my FreeBSD machine, and my 1TB external USB NTFS HDD (using ntfs-3g /source /mnt/dest). I tried the casual cp -iprv /SOURCE ...
-1
votes
1answer
530 views

Linux folder size limit

We are using below code to create folder in Linux server. File dir = new File(filePath); if(!dir.isDirectory()) dir.mkdirs(); After that creating files inside that ...
3
votes
1answer
155 views

Magic number for new file system

I am writing new stackable file system, all the file systems have associated magic number which acts like their "signature" for file formats. I was wondering how to decide this number for my file ...
1
vote
0answers
40 views

file integrity between mount and mount point [closed]

Sub-tree rooted at /some_dir/B is mounted at /A/mount_point. If B contains foo.c, deleting /A/mount_point/foo.c will remove file from /some_dir/B/foo.c also. Is this correct? And what if I change only ...
2
votes
1answer
58 views

Any tool to keep symbolic links valid?

Does anyone know of some tool capable of keeping symbolic links valid in spite of renaming or moving of files or directories? If not, are there obvious reasons why this should be difficult to ...
0
votes
1answer
34 views

Migrate to a new vdisk

I have to migrate some data to a new vdisk. But i have no idea how i can do this. The old Vdisk is under /dev/mapper/12345 which is a link to /dev/dm-1 The new Vdisk is under /dev/mapper/67890 which ...
2
votes
1answer
43 views

What happened to /proc/sys/fs/relatime_interval?

According to one answer relatime interval can be changed by echo 60 > /proc/sys/fs/relatime_interval but I do not have such a file? Where did it go? $ ls /proc/sys/fs aio-max-nr ...