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

learn more… | top users | synonyms (2)

5
votes
1answer
25 views

How to find the number of bytes rewritten to a folder hierarchy?

I want metrics for how much writing and reading have been done to a folder. vmstat -d gives metrics at the whole disk level. iotop will give per process rw stats. But how can I find out how much ...
1
vote
0answers
21 views

Error file system check

I enabled the package e2fsprogs and always when the system starts it return the following error (when partition mounting): Jan 01 00:00:03 xxxx systemd[1]: Found device /dev/mmcblk0p3. Jan 01 ...
2
votes
1answer
17 views

btrfs ERROR: error during balancing - No space left on device

My Kubuntu 12.04 system ran out of space on on the root partition and will not boot. The command df -h shows a lot of space available (with only 37% used): /dev/sda2 45G 17G 29G 37% ...
1
vote
1answer
44 views

F2FS vs ext3/ext4

We are using Beaglebone black Based custom board, we are planning to use eMMC in our board. We are in the process of checking different filesystem options, What are the different file system we can ...
1
vote
1answer
139 views

Read-only file system error while accessing the files on Ubuntu

I have a Ubuntu machine. I am connected to it remotely and getting the following errer: mkdir: cannot create directory `/testFolder': Read-only file system LIKE WINDOWS, REBOOTING the machine ...
1
vote
1answer
31 views

Transfer speed while copying from Windows to Pi

I am using a raspberry pi with samba as remotely accessible storage in my local network. While copying files from windows to pi I am getting strange transfer speed. It jumps from 200 kB/s and less to ...
1
vote
1answer
30 views

How to delete a file in QNX4 format when a CF card is mounted as read-only in Linux?

Recently, the DMA device of our lab is broken and the suspected problem is in the CF card which is in QNX4 format. I want to delete a file named 'calforce.dat' and recreate it by calibrating the ...
0
votes
0answers
25 views

Directory symlink to inode, not path (e.g. directory hardlinks)

I'm trying to better understand why directory hardlinks are not possible. Roughly, I think of directories and files as follows: directory --------- inode # exposed as . inode_of_parent # ...
0
votes
1answer
33 views

Verify Linux FAT32 Support [closed]

I apologize if this is a duplicate, but I could not find any related question. How can I verify that my Linux 3.16.1 kernel supports FAT32? Things to keep in mind: I do not have /proc/config.gz ...
0
votes
1answer
14 views

Mechanism of multiple call for one script in the same time

Maybe this question is stupid Anyway I have the ruby script which is calling from different places in the same time(with defferent options). Is it safely and how this mechanism realized in linux? I ...
2
votes
0answers
16 views

BTRFS - Raid incomplete after balancing

I have two 3TB drive that are formated as btrfs and mounted on /media/andy/btrfs as one drive. I run btrfs balance start -dconvert=raid1 -mconvert=raid1 /media/andy/btrfs/ which takes forever. It ...
-1
votes
0answers
18 views

What can cause a file reset operation to crash?

We have a dll (Delphi/Kylix) that crashes the program that has loaded it just after we do a reset on a file. This fails after thousands of operations that do the exact same thing (this was run in a ...
2
votes
1answer
81 views

specify mount option in /etc/fstab (mode=1777)

I have following line in my /etc/fstab: /dev/mapper/tmp /tmp ext4 noexec,nodev,nosuid,mode=1777 0 0 When I try to mount /tmp, I get following error in dmesg: EXT4-fs (dm-1): ...
4
votes
1answer
153 views

Is it possible to look 'behind' a mount point while still mounted? [duplicate]

I have two partitions, one mounted at / and one at /crypt. I'm using a bind mount to mount /crypt/home at /home/ (and various others). Problem is that I kinda need to look at the original /home dir ...
4
votes
1answer
149 views

How to find out which file is affected by a bad sector?

Consider you've been informed about a bad sector like this: [48792.329933] Add. Sense: Unrecovered read error - auto reallocate failed [48792.329936] sd 0:0:0:0: [sda] CDB: [48792.329938] Read(10): ...
0
votes
0answers
10 views

Indestructibles files on NTFS - cannot delete, not even by inode

I have a couple files on NTFS partition that seem to be indestructible - I tried all I know, and nothing: .../test/db $ ls -la total 37K drwx------ 1 ondra ondra 32K Nov 30 23:54 . drwx------ 1 ...
1
vote
2answers
24 views

Possibilities for executable symlink to non-executable file in Linux?

I have some Python scripts, that I keep in a repository; they are plain-text files, but if their executable bit is set, then the online repository page serves them as binary downloads, not as plain ...
0
votes
2answers
89 views

How to find out a file is hard link or symlink? [duplicate]

I have a file in ~/file.txt. I have created a hard link by : ln ~/file.txt ~/test/hardfile.txt and a symlink file : ln -s ~/file.txt ~/test/symfile.txt Now, How can I find out that which file ...
1
vote
0answers
29 views

Loopback (bind) mount automatically mounting additional ext4 USB drive

I have a USB (ext4) drive connected and it's registered in /etc/fstab. It mounts at /media/Backup fine. I want to mount a specific directory on that drive using a bind / loopback mount (this is ...
0
votes
1answer
31 views

Non-journalled filesystem that allows instant power off?

Is there a filesystem for Linux that allows for instant off via a power switch without going through a shutdown procedure? If so, would there be a significant performance hit compared to a journalled ...
3
votes
1answer
80 views

How do I resize partitions and filesystems on them?

How can I resize partitions from the command line? I've heard of GParted, but I don't want to use a GUI program.
1
vote
1answer
43 views

Transforming a disk from MBR to GPT

I have a disk with classic MBR and want to transform it to use GPT without data loss. I have seen several more or less useful tutorials, but most of them are dealing with the specific problems related ...
1
vote
2answers
70 views

Mount zip file as a read-only filesystem

I am looking for a way to mount a ZIP archive as a filesystem so that I can transparently access files within the archive. I only need read access -- the ZIP will not be modified. RAM consumption is ...
1
vote
1answer
32 views

Cluster Lock Manager without TCP/IP

I have 2 linux sharing same SAN disk LUN. There are many cluster files systems to manage lock/unlock. But all of them are using a seperate TCP/IP comminication. But I need a cluster lock manager ...
0
votes
0answers
12 views

Stale NFS file on Postgresql directory

I have a Debian Wheezy computer running a Postgresql Server and NO NFS filesystems. After rebooting the computer, the following error has appeared: ls: cannot access 0000: Stale NFS file handle ...
2
votes
3answers
59 views

How to know list of directories under a filesystem?

If I run sudo df -h command, I got below output: Filesystem Size Used Avail Use% Mounted on /dev/sda2 12G 9.5G 1.1G 91% / /dev/sda4 3.8G 1.5G 2.1G 41% /home ...
1
vote
1answer
55 views

Why does Ubuntu change my file system to read only

Since last Ubuntu kernel update (actual 14.04.1 LTS with GNU/Linux 3.13.0-39-generic i686) on my server I'm noticing something strange. My system boots normally - read-writable, no problems. But ...
1
vote
1answer
35 views

run btrfs balance with cron

Since I run today in a problem with a full disk, which turns out is not unbalanced. Which you can fix with btrfs balance. So my question is: Is there any risk by ruining this by a cron job? (in ...
1
vote
1answer
28 views

Where apache's /tmp located?

I was just advised to re-ask my question from http://security.stackexchange.com/questions/72795/command-execution-dvwa-creating-file-in-tmp here. I use CentOS 7, and I'm trying to understand command ...
24
votes
2answers
8k views

I made a mistake last night, which deleted 1800GB of my File-Server unintentionally

I ran this command yesterday, I thought on a test machine, but it was a File-Server connected through SSH. sudo rm -rf /tmp/* !(lost+found) My terminal emulator is Konsole. My system is Debian 7. ...
1
vote
1answer
46 views

broken fs after removing disk from LVM group

I messed up a bit and I am trying to find the best way to recover. A few days ago, 1 of the physical disk of my lvm setup started to show sign of failure (I/O errors) so I decided to move it to ...
1
vote
0answers
23 views

ZFS datasets attribute inheritance

I have a ZFS filesystem on a Solaris system. In one pool I have an ISCSI share and an NFS share. zfs list tank 1,01G 2,88G 24,0K /tank tank/nfs 24,0K 2,88G ...
1
vote
0answers
26 views

How can I limit or delay the write speed to specify directory?

I want to limit the write speed and limit to specify directory. Make this directory flakey. Make this directory error for can't write data to it. I have user dmsetup to create the device mapper with ...
1
vote
0answers
30 views

Mount success but property of device mapper that dmsetup create is lost

I tried to create device mapper with dmsetup as followed: dmsetup create error_disk 0 20000 linear /dev/loop0 0 20000 1 error 20001 20959 linear /dev/loop0 20001 Then I check with command below: ...
3
votes
1answer
47 views

How to update directory size after file removal?

This is mostly theorethical question without real practical usage. As you may know, filenames are stored in directory inode. That means the more files we have and the longer filenames are the more ...
2
votes
1answer
30 views

Free-ing up unused space on a partition that is unaccessible after a mount

Originally I had a 50GB disk where the root / was mounted to a 6 GB partition on it. The partition was running out of room so I created a second partition with the rest of the free space (44 GB). ...
0
votes
1answer
23 views

How to verify which line in /etc/mtab is not in use

How to verify which line in /etc/mtab ia not in use I will explain Some times on my linux servers some command are hung As df –k So I Suspected on /etc/mtab file , and maybe some line is stuck the ...
3
votes
4answers
94 views

Forcing owner on created files and folders

I have a directory that contains data shared between a number of users. Access to this directory and anything underneath, will be controlled by the directory's group, which will be added to the users ...
1
vote
3answers
34 views

Why does Debian prefer a temp file replacing the original over modifying bytes in original file?

In the mp3gain manpages, you can read the following: -t mp3gain writes modified mp3 to temp file, then deletes original instead of modifying bytes in original file (This ...
5
votes
1answer
140 views

Calls to sync/fsync slow down after 30 minutes uptime

After 30 minutes of uptime using Ubuntu 14.04 with a hybrid SSD I see many processes blocking IO using iotop. This is during disk writes, for example if I open and close an empty file in gedit it can ...
0
votes
1answer
94 views

Why the size of an empty directory in Linux is 4KB? [duplicate]

I'm using Ubuntu 14.04 and I made an empty directory on /tmp with the mkdir command: cd /tmp mkdir foo and then I checked it's size using ls: ls -ldh foo and the result shows that the size of ...
2
votes
2answers
79 views

What filesystem mount point am I currently working on?

I would like to know in what filesystem mount point I am currently on, similarly to using pwd to know what directory I am in. I know you can use df . (or df $(pwd) or many variants), but I find it ...
1
vote
2answers
39 views

how to troubleshoot on whether a file system had actually been unmounted or not.?

We have a server on which, a couple of days before we got an alarm continuously everyday, that a file system has been unmounted. But when we logged into the server the file system is still there ...
1
vote
1answer
47 views

Resize partition after image using dd to another drive

I have a smaller 120GB drive which has run out of space, which I have imaged to a larger 500GB drive using: dd if=/dev/sdb1 of=/dev/sda4 bs=32M After mounting to /R500 df shows me 100% in use which ...
1
vote
1answer
133 views

File of Doom freezes any computer that attempts interaction

I have a file on an internal server that causes any machine that interacts with it to immediately and irrecoverably freeze. By interaction, I mean just about anything: rm, mv, cp, cat, vi, gedit, ...
1
vote
0answers
32 views

How can I make a read-only Linux system (which uses unionfs) read/write for the duration of upgrades?

Assuming having an embedded linux application, and for protection against corruption from example abrupt power offs, you implement a read only system with union fs. But then, how is it possible to ...
0
votes
2answers
35 views

RPM command stuck/FREEZE when installing RPM file

I want to install the following rpm from some reason RPM is stuck or freeze and not install the RPM package also I cant stop it by control C , please advice what could be the problem ? root]# rpm ...
1
vote
0answers
37 views

Is it possible to make a symbolic link of a file in other machine?

I have a account in a server and I would like have a symbolic link of some files in my local machine. How can I do this?
1
vote
1answer
34 views

Why do LiveUSBs use squashfs (and similar) file systems?

Every LiveUSB I have encountered so far uses squashfs or some similar method of "faking" and ext4 file system, while actually keeping the partition type already found on the USB flash drive. Why ...
1
vote
1answer
79 views

Stat, Blocks and Sector size - ext4

While reading upon how files are stored in the filesystem, I created a testfile which happened to be of size 217 bytes. Checking the output of stat on this file, I saw that this file is occupying 8 ...