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

learn more… | top users | synonyms (2)

1
vote
1answer
34 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
21 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
36 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
13 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
50 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
26 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
74 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
66 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
24 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
22 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
30 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
27 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
264 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
21 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
63 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
29 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
61 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
42 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
25 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 ...
-1
votes
1answer
39 views

Accidentally moved file to `,` (comma)

I logged in as a root user and when moving a file, instead of: mv myfile . I entered mv myfile , And now my file is gone but I am not sure where to. Where has it moved to?
10
votes
2answers
155 views

Are there any filesystems for which `ln -d` succeeds?

From the manpage for ln: -d, -F, --directory allow the superuser to attempt to hard link directories (note: will probably fail due to system restrictions, even for the superuser) Are there any ...
0
votes
4answers
65 views

How to merge one directory into other?

May somebody tell me if there is there some way to "merge" one dir into another? I.e. let I have /some/directories/structure with subdirs/files. And now I want to "implantate" it into /etc for ...
0
votes
1answer
31 views

Share apps across multiple Linux distributions?

I have a triple boot of Ubuntu, Haze OS, and Kali Linux, and I would like to run an app installed on another operating system from my Primary OS. Like running chrome installed in Ubuntu while using ...
1
vote
0answers
15 views

VFAT FS Sync/Flush Behaviour

In order to increase the life of my VFAT flash drives, I have them set to mount as async. One of these drives sometimes deals with large data changes, and as a result, the writes that occur on umount ...
-1
votes
4answers
134 views

Why does linux use file extension to decide the default program for opening a file though it's independent of file extensions

I have a text file as- abc.text and it has its contents as Hi I'm a text file. If I double click to open this file, then the files is opened in gedit editor. Whereas, if I rename the file to ...
1
vote
0answers
23 views

Btrfs - Using Flash Drive as Backup/Snapshot Location

I am working on a project where I have a small MiniITX PC running Debian Jessie (8.3) When I installed the OS initially: I chose the filesystem as btrfs. I am not using LVM or any extra partitions ...
0
votes
1answer
31 views

How do I know which File Systems my linux supports? [duplicate]

I am working with linux 3.19.0+ and I want to know if my linux kernel supports f2fs (Flash-Friendly File System). How do I know that?
-1
votes
1answer
35 views

After running “mkinitcpio -p linux” i got “Hook 'lvm' cannot be found”

Trying to install Arch with LVM basing on this guide: http://sharpeend.impcode.com/2014/04/installing-arch-linux-with-lvm.html Partitions: sda -system-boot -systrm-root -system-home
5
votes
3answers
244 views

Watch /tmp for file creation and prevent deletion of files? [duplicate]

I have a binary that creates some files in /tmp/*some folder* and runs them. This same binary deletes these files right after running them. Is there any way to intercept these files? I can't make the ...
0
votes
1answer
26 views

Expanding a hard drive partition to fill the drive without wiping the partition?

I have a hard drive that came out of an old Windows PC, which I'm using as a second hard drive. Because it was already formatted as ntfs, I didn't want to reformat it and lose all the data on it, so I ...
50
votes
8answers
6k views

On Unix systems, why do we have to explicitly `open()` and `close()` files to be able to `read()` or `write()` them?

Why do open() and close() exist in the Unix filesystem design? Couldn't the OS just detect the first time read() or write() was called and do whatever open() would normally do?
0
votes
1answer
79 views

Load firmware on ro live cd

Basically I have the situation when box is booting from usb (gentoo-minimal.iso) but installation is lacking the firmware for killer 1525 (ath10k). The filesystem is mounted as ro and I can't put ...
3
votes
1answer
24 views

“Junctioned” symbolic links

Does Linux have the capability to use "junctioned" symbolic links? I'm not sure if this is an actual term or not, so let me explain the concept. I have a git repository containing all my ...
0
votes
3answers
55 views

Why would the size of /proc/stat show as zero? [duplicate]

ls -rlth /proc/stat -r--r--r-- 1 root root 0 Feb 21 04:25 /proc/stat Although if we cat it, its got enough contents. Any help regarding this virtual FS will be helpful.
4
votes
2answers
41 views

octal dump of directory

I got a copy of The Unix Programming Environment by Kernighan and Pike from a garage sale. I'm very interested in the chapter about the UNIX filesystem. Naturally, I also found this passage very ...
0
votes
0answers
31 views

How does vfs_write decide to aio_write of which file system?

We know that sys_write call vfs_write that ultimately call fs->f_ops->aio_write.But how does kernel know which filesystem's aio_write call back function to call?? Moreover I have noticed that ...
0
votes
1answer
51 views

Can we merge binary files without any copy operation by handling filesystem?

I would like to merge efficiently binary files using a shell command and I quickly found classical ways like this one : cat file1 file2 > file3 Not bad but : It's slow. IO access are slow. It ...
-2
votes
1answer
31 views

How to get files from broken directory? [closed]

I created some files and directories on external NTFS HDD using Ubuntu. Some folders displayed with cross sign, I changes permissions for them (777), now they just as a files. Copying of directory ...
0
votes
0answers
41 views

What's different between logical block and physical block?

I know the logical block is viewed by kernel, and physical block is viewed by disk controller. Then, Where the file system like ext3's block is related? Is this logical or physical? I think file ...
3
votes
1answer
40 views

How is a symlink represented in a file system vs a hard link?

I want to make sure my understanding of this is correct: Making a Hard link is created another dentry that points to the same inode Making a symlink is creating a completely new file object/inode ...
1
vote
1answer
40 views

How to mount a drive from command line

I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command sudo mount -o ...
0
votes
1answer
19 views

Can't access to trash?

Whenever I try to enter into Trash Bin in Nautilus when a file is in it, an error message will display: Sorry, could not display all the contents of trash:///: Operation not supported. Neither sudo or ...
2
votes
2answers
97 views

Module vfat fails to load (I've tried the obvious fixes)

The module vfat doesn't load on boot, and attempts to force the issue with a modprobe vfat produce the error modprobe: ERROR: could not insert 'vfat': Unknown symbol in module, or unknown parameter ...
0
votes
2answers
261 views

Does a user have permissions to write outside /home/userDir?

Does a normal* user have permissions to write anywhere else than his own home dir? (no sudo and those privilege escalation tools) I say normal because I do not know more categories than root and ...
0
votes
1answer
47 views

Solaris: Spooling filesystem is full

I have a Solaris 5.8 machine that will no longer print. print job that come from the terminal say: "See if spooling file system is full" I had a look around /var/spool but it isn’t particularly ...