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

learn more… | top users | synonyms (2)

0
votes
1answer
9 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
70 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
8 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
29 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 ...
1
vote
1answer
37 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
54 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
23 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
7 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
53 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
36 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
26 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
26 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
34 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
17 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
22 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
18 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: ...
-1
votes
0answers
17 views

what to do after accidental MKFS command issued on lynxos 2.2.1 partition

Accidentally I used mkfs on /dev/sd0b. The system OS, LynxOS 2.2.1, is OK on the sd0a partition but I have lost the sd0b partition's contents. I can see this partition with the df command but this ...
3
votes
1answer
42 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
25 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
20 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
79 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
120 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
68 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
75 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
38 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
31 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
127 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
29 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
18 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
34 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
26 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 ...
0
votes
1answer
53 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 ...
0
votes
2answers
38 views

Disk usage on another filesystem

I have a directory on my ext4 partition with lots of rather small files. How can I figure out how much space would they use if I copy them to a file system with another cluster size (without actually ...
1
vote
1answer
25 views

How to specify block size for vFAT file system?

I just read that vFAT support different block size at (this link and in other places. It should be 512 bytes to 32 kb range ). So how can I specify this option in mkfs.vfat tool? Or does mkfs.vfat ...
1
vote
2answers
45 views

is there any use for /selinux folder, when I don't use selinux?

I'm using Debian Wheezy, and by default a folder /selinux exists on my filesystem, even though I'm not (knowingly) using any SELinux infrastructure. I know that SELinux is intertwined with some ...
1
vote
0answers
14 views

Many transient files on journaled filesystem?

Writing and deleting many files quickly I'm going to write many temporary files per second, over a sustained period. Each will be deleted after some milliseconds. Say we have an image processing ...
1
vote
1answer
49 views

Filesystem for boot partition

I created a BIOS boot partition on a hard drive, using gdisk : $ sudo gdisk /dev/sdb Command (? for help): p Disk /dev/sdb: 7821312 sectors, 3.7 GiB Logical sector size: 512 bytes Disk identifier ...
1
vote
1answer
25 views

Must be in the same VG

I am trying to extend the fs like this, chfs -a size=+290G /Eq7_bakcup but getting this error, what am I doing wrong? mount: Log dev and fs dev must be in the same volume group
0
votes
0answers
112 views

mkfs.ext4: Discarding device blocks: failed - Input/output error

I am trying to format my new SD card, using following command; mkfs.ext4 -O ^has_journal /dev/mmcblk0p2 and I get following error: Discarding device blocks: failed - Input/output error I don't ...
0
votes
0answers
22 views

Files and Directories Dissappearing from Software Raid on Power Failure

I have a home samba file "server" (a raspberry pi) with two hard drives in a software raid 1, which have proven less reliable than any of my non-raid disks. I know there is a chance for data ...
3
votes
1answer
58 views

View physical location of a file/directory on a hard disk

Is there any Linux program which offers the same (or some of the) functionality of Sysinternals DiskView, especially being able to view to physical location of a file on a hard disk? DiskView URL: ...
1
vote
0answers
19 views

What means a number of links > 1 for directories? [duplicate]

Both programs stat and ls -l tell about the number of (hard) links to file(s). Going under the assumption that one usually cannot create hardlinks for directories in Linux it confuses me to see ...
3
votes
2answers
27 views

Optimize file layout for minimal seek in specific situations

Starting VLC is slow on my system. The reason: it reads more than 1000 different .so files. Is there a way to make it read those files faster? I think if all the files followed immediately after each ...
0
votes
1answer
54 views

Covert a .tar file to .ext3 [closed]

Quite a unix noob myself, but is there any way in linux/unix to convert a .tar file to a .ext3 file? The .tar file contains a rootfs folder structure, which I would like to make bootable with grub on ...
0
votes
1answer
166 views

Can't mount SD card - Wrong filesystem

Just bought a SanDisk microSDHC 8Gb card and tried to change the file system to ntfs (used cfdisk thru terminal). Couldn't mount the device. Tried to change back to FAT32, but still can't mount. ...
0
votes
1answer
36 views

Recommended file system for cloning AUR-mirror?

I'm beginning to use Arch Linux and wanted to explore the AUR repository. Because of this motivation, I learned two things immediately. Ext3 can support only 32000 sub-directories. (I ran into ...
0
votes
0answers
45 views

Cannot label F2FS (SELinux)

I'm running Arch Linux [testing] x86_64 For some reasons, I can't relabel my root file system (F2FS) with SELinux (custom kernel compiled, using refpolicy) Kernel ver $ uname -a ...
1
vote
1answer
415 views

Converting NTFS to Ext3

I recently partitioned a new drive in windows to NTFS. I want to make it ext3 so that I can transfer a WUBI Ubuntu installation onto it. I don't care about the data on this partition. Is there a ...