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

learn more… | top users | synonyms (2)

3
votes
1answer
27 views

How does Linux manage “simultaneous” writes to swap/disk partitions in virtual memory?

I'm currently working on an educational operating system called Pintos. While implementing virtual memory, one of the issues that I'm having is writing data to swap in a page fault that happened while ...
0
votes
0answers
18 views

Unable to create a filesystem on /dev/sda2 on a virtual machine , device showing busy, Kernel can't read partition table

This question has been asked several times on this platform, but none of the solution resolves my issue. Linux OS: RHEL 6.5 I created a partition /dev/sda2. # fdisk -l Device Boot Start ...
2
votes
1answer
46 views

Is it safe to mount same ext4 filesystem at different mount points?

I know there is option "--bind" for multiple mount operation to handle such case. But ext4 can be directly mounted at different mount points, without option "--bind". So, I wonder whether it is safe ...
0
votes
1answer
75 views

Need permission for Windows client to access linux NFS [closed]

I have a linux NFS the /etc/exports is like below: /opt/nfs 10.8.0.0/20(no_root_squash, rw, sync) I can r/w files from other linux machines. However, I only have read permission on Windows client. ...
2
votes
2answers
61 views

Why does df show negative available space?

Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 1G 624M 302M 67% / devfs 1.0k 1.0k 0B 100% /dev /dev/ada0p4 503M 20k 463M 0% ...
0
votes
1answer
44 views

lvreduce : “No directory, logging in with HOME=/”

I wanted to reduce my home LVM size so I executed the following commands : sudo umount -fl /dev/ubuntu-vg/home lvreduce --size -4G /dev/ubuntu-vg/home As the last command didn't work (apparently ...
0
votes
0answers
17 views

How do I check what mode my filesystem is in?

According to this answer regarding the shred command, the efficacy of the command depends on the mode the filesystem is in (e.g., journaled, ordered, writeback). How can I check what mode my Linux ...
0
votes
1answer
64 views

Struggling to remove a faulted ZFS pool on Centos 7 using zpool

I have been doing lots of testing of ZFS recently on a new server. I'm ready to move this server into production now, but I'm wondering if I can get rid of my old 'faulted' diskpools before I do, ...
1
vote
1answer
40 views

Fast filesystem for virtual backup environments

I know filesystem supporters war is behind the corner and there are plenty of fine tuning guide for each filesystem in the wild, so please stick to the specifications: I'm asking what would you ...
3
votes
2answers
61 views

Defer *all* disk writes, keep them in memory

How to temporarily stop synchronizing of dirty data with disk, instead just keeping it in memory. Clarification: I want to sync it later.
2
votes
2answers
249 views

why Inode file size is different than actual size

I noticed one log file having less size than what's mentioned in inode. $ ls -lhtr /var/log/test/fk-3p-kafka/kafkaServer-gc.log -rw-r--r-- 1 fk-3p-kafka fk-3p 11G Apr 10 18:27 ...
0
votes
3answers
38 views

Filesystem kernel API

Assuming that all filesystems are specific, how tools like ls, touch, cat, etc interacting with them? I suppose that 'ls' doesn't know specifics about btrfs for example, but it reads directory entries ...
0
votes
1answer
28 views

Cat won't access file in openSuse Tumbleweed ('Invalid argument' error)

I have just installed the latest version of openSuse Tumbleweed and was going through the file system familiarising myself with it when I found a file in /dev/lightnvm called 'control'. I attempted to ...
0
votes
1answer
21 views

Generic debugging / logging / tracing filesystem directory & file access? [duplicate]

This is my particular problem: I'm trying to set up git on a server, for which I'm doing a test on a locally installed apache on Ubuntu 14.04; for instance, I can do git clone fine over HTTP, but git ...
1
vote
0answers
32 views

Is there a way to interleave two filesystems of the same structure?

I have a large networked file system whose backup routine sees some file systems as higher priority than others and are given more redundancy with backups. At present those file systems are visible as ...
1
vote
0answers
11 views

Different partition after upgrade of OPENWRT

I have just updated the firmware of my olinuxino rt5350f to the last release of chaos calmer 15.05.1 (website, image). After having finished the installation via tftp I noticed that the free space is ...
1
vote
2answers
26 views

Is it bad practice to call scripts from a users home dir from root tasks (eg. dhcp hooks)? [closed]

I have some small script that run at startup and on other events (for example, one that updates a dynamic dns hostname based on the machines IP changing). I would like to keep everything in my home ...
1
vote
1answer
75 views

How can fsck be so fast?

Is it normal, that fsck on an SSD takes a second or two? I am on Linux Mint 17.3 and I called sudo touch /forcefsck EDIT: ext4 filesystem
0
votes
2answers
26 views

What File System for a slow drive?

I was planning a fresh Linux install on an old computer with a not-so-powerful hard drive. I read that different file systems (due to different internal data structure and architecture) might perform ...
1
vote
0answers
141 views

Wrong inode: corrupted f2fs, fsck.f2fs cannot repair

A f2fs partition on my Android phone has recently become corrupted. It will still mount fine; however, I completely lost access to one directory (/data/media/0), which now shows as empty. Yet the disk ...
0
votes
2answers
30 views

File Size Limit

What is the maximum file size limit in rhel 32 bit OS, is there any OS limitation for the file size , if there is any limitation set then please tell me what will be for root & oaa.
0
votes
0answers
27 views

Internal fragmentation of a file

One of the exercises which I have to do is to show the appearance of internal fragmentation in a file system by calculating in bytes the size of stored space by a non-empty regular file, but not used ...
0
votes
2answers
38 views

Cannot cleanup ghost mount points

'mount' command shows several mount points across several disk devices that I had previously setup: $ mount ... /dev/sdf1 on /mnt/<mp1> type xfs (rw) ... /dev/sdd1 on /mnt/<mp2> type ...
0
votes
1answer
72 views

Replacing a failed disk in a ZFS pool

I've got a large ZFS disk pool; 3 nested RAIDZ2 vdevs. I am documenting the process for replacing a failed disk for my colleagues and so simulated a disk failure by removing a disk from the host. ...
0
votes
1answer
20 views

Checking for a failed drive in a ZFS pool

I'm testing a large ZFS pool at the minute and am documenting the process for replacing a failed drive before our environment moves into production. I've built the ZFS volume 'diskpool', which is 3 ...
1
vote
0answers
16 views

Bash holding onto lock of usb drive, bug?

I notice that bash seems to want to hold locks on my Truecrypt USB drive that has been accessed, even when no access process is actually occurring. When I try to mount the drive I get various "device ...
1
vote
1answer
47 views

How to discover unknown file system type from disk

I pulled the hard drive from a *nix-based CCTV DVR so I could look at the contents and mount points, with the explicit intention of mounting a separate drive at the folder wherever the video is ...
0
votes
1answer
27 views

distributed file system that works well with multiple small files [closed]

Hi my use case is quite specific. I have 20 Windows 7 machines constantly creating files in my storage; around 98% of these files are 2.1 MB. On average we create 24 million files every 3 days, and ...
0
votes
0answers
11 views

Difference between symlimk and link? [duplicate]

What is the difference between a "symlink" and a "link".
0
votes
0answers
42 views

Arch linux filesystem permission read-only

I've just installed Arch Linux and done some installations and thought I'm done, but I figured out that I have no permission to write to my file system or do anything. It's just read-only as in the ...
1
vote
0answers
14 views

Files (e.g. music) on secondary drive can't be found by programs

I'm dual booting elementary OS with Windows 10. Each has its main file system on a 128gb SSD, with shared data on a 1TB HDD. I'm very new to Linux so sorry if this is a dumb question. I can access ...
3
votes
1answer
64 views

How to list all inodes and blocks in file system which are available for unprivileged user

I'm trying to list all inodes and blocks in certain file system which are available and unused for unprivileged user. I tried stat -f but from what I've read it list nodes and block available for all ...
0
votes
1answer
33 views

Any concerns with mounting a JFS2 filesystem under an NFS mount?

We have many instances where we mount JFS2 filesystems underneath other JFS2 filesystems (eg. /fs1, /fs1/fs2, etc...) but we've never done it with NFS. Is there anything to be aware of when doing ...
1
vote
1answer
75 views

What is the number at the top for the results for ls -l? [duplicate]

When you type in ls -l, there is a number on the first line labeled "total 22037"? What does this number mean? I am attempting to write my own version of ls -l( in C), and how do I get this value or ...
-4
votes
1answer
70 views

Why nobody is using /opt directory? [duplicate]

In the Linux FHS, it says all third party packages should use /opt. However, I didn't see anybody is using /opt. Also, /opt is not in $PATH in anyway, so I think the OS is not intended to let us use ...
0
votes
1answer
28 views

access old files in /opt folder after making a different partition to mount on /opt mount point

I am using openSuse 13.2. Due to low disk space on root partition I created a separate partition and mounted it at /opt. Before this I backed-up all the data in the old opt directory. After mounting ...
1
vote
1answer
26 views

Is there a linux fs kernel driver for NTFS R/W and how does it compare to the fuse solution?

Is there an out of tree linux kernel NTFS kernel driver that provides R/W capabilities? I know there's fuse+NTFS-3G, but I've had it consume way too many CPU cycles. My question is: is there a ...
0
votes
1answer
33 views

can we specify number of inode & data block?

I learned that number of inode and datablock is assigned when created, but for example, if we want "text.txt" this file to be stored in inode number 20 or datablock number 20, can we do it?
1
vote
1answer
32 views

How do I Encrypt a Flash Drive Using SecurStick?

I am trying to use SecurStick to encrypt a flash drive. I found these instructions online. However, when I unzip the archive and place the files on my flash drive, I cannot run the SecurStick program ...
4
votes
3answers
287 views

Do tmpfs and devtmpfs share the same memory region?

My system disk usage is like this: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 50G 39G 12G 77% / devtmpfs 5.8G 0 5.8G 0% /dev ...
21
votes
7answers
2k views

Why does Linux need to have both `/dev/cdrom` and `/media/cdrom`? [duplicate]

Inspired by this question. Why does Linux need both /dev/cdrom and /media/cdrom? Why not just access files on the cdrom through /dev/cdrom?
3
votes
1answer
25 views

How do I expand a file system to fill a partition?

As shown in the picture below, I've created partitions on two 32GB devices: an SD-card, and a flash usb stick. I intended to create file systems using the entire partition in each case, yet somehow ...
1
vote
3answers
69 views

How could Linux use 'sda' device file when it hasn't been installed?

I am installing CentOS Linux distribution on a fresh new machine. Just for learning. I am new to Linux. At the partition step, CentOS tells me that it has detected a sda HD in my machine and I should ...
0
votes
1answer
39 views

FileSystem monitoring using a config file

I am trying to monitor filesystem space using a shell script. That script should refer a config file that has alert status constraint. The config file is as below FileSYSTEM WARNING CRITICAL ...
0
votes
0answers
11 views

How do I increase a partition size of a virtual disk?

I created a file using dd if=/dev/zero of=virt_disk bs=1024M count=50. I then formatted this is a vfat file system. Now I want to extend this. I added 5 more MiB of space as dd if=/dev/zero bs=1024M ...
0
votes
2answers
64 views

fsck doesn't write changes

I'm trying to repair a SD card with FAT, but fsck doesn't write changes — even the magic -w option doesn't help $ sudo fsck.fat -aw /dev/sda1 fsck.fat 3.0.26 (2014-03-07) 0x41: Dirty bit is set. Fs ...
0
votes
0answers
46 views

linux + resize2fs with Operation not permitted error

I am trying to increase the /opt to 65g but I get the following message Operation not permitted While trying to add group #8256 what is the resolution for that? root@linux:/opt # lvresize -L 65g ...
0
votes
1answer
32 views

How to mark a partition as unmountable?

I partitioned a MMC card into multiple partitions (in GPT format), and the very first partition is just padding space so that all other partitions are aligned to a optimal boundary. Problem is, on ...
1
vote
0answers
11 views

Example of situation where ACL unaware tools would grant unintended permssions

This document about File ACLs makes mention that the masking mechanism was put in place to solve the problem of ... POSIX.1 applications that are unaware of ACLs will not suddenly and ...
2
votes
1answer
26 views

How to make sure files are present when usb mounts?

When my computer mounts a USB, the files don't show up immediately, which is throwing off my script (which is quite quick). How do I make sure that the folder doesn't appear in my mounting directory ...