Tagged Questions

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

learn more… | top users | synonyms (2)

0
votes
1answer
35 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
63 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
28 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
16 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
0answers
50 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
19 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 ...
1
vote
0answers
29 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
19 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
33 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
33 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
23 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
42 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
9 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
26 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
22 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
59 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
19 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
42 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
18 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
1answer
22 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
50 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
74 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
31 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
28 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
322 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 ...
1
vote
0answers
15 views

NFS Block Size Open File

If I open an NFS file for the first time, what exactly is it that gets "downloaded"? Is it just file metadata and subsequent client requests will request individual blocks? Is it the whole file, or ...
3
votes
1answer
94 views

cannot create special file /dev/pts/0

When using midnight commander in console, I cannot "toggle" the window (using CTRL-o Not an xterm or Linux console; the panels cannot be toggled however, my $TERM is set to linux. After some ...
2
votes
3answers
85 views

How to repair a file system corruption?

Debian on external USB SSD drive. There was some error in dmesg log file: ...[ 3.320718] EXT4-fs (sdb2): INFO: recovery required on readonly filesystem [ 3.320721] EXT4-fs (sdb2): write access ...
2
votes
1answer
31 views

Shared home directories with local duplication

I have a couple Linux computers which are all in the same network. Currently, I use rsync to copy my dotfiles and the like to each machine every couple of days from the master computer. Ideally, I ...
3
votes
1answer
26 views

How to find out how the filesystem was created?

You can create the filesystem with mkfs... -- how to find out not only what filesystem is used on given partition, but what parameters where passed to mkfs? So how to perform mkfs in reverse -- ...
0
votes
2answers
36 views

Disallowing blank space in file system naming

Most recent versions of most Linux distros allow blank space in file and directory naming. I was wondering if there is a way to disable that and go back to the old UNIX standard of no spaces in file ...
2
votes
1answer
185 views

What are functional differences between tree-like/hierarchical and flat file systems?

The only differences I can think of are all aesthetic. E.g. When you have many files, it will be hard for the user to navigate to the desired file because it wouldn't be organised nicely like in a ...
3
votes
0answers
136 views

Which file system (among XFS, BTRFS and EXT4 only) does provide the best data resilience to disk corruption? [closed]

Question: Given these three filesystems: XFS, BTRFS and EXT4, I'm wishing to know which does provide the best data resilience to data corruption in a setup without RAID. And, of course, why? ...
0
votes
1answer
57 views

Ext2 filesystem for /boot partition

Is the ext2 filesystem good for /boot partition? I set ext4 for / root partition, but wasn't sure which filesystem to select for the /boot partition, and I just set ext2. Does it matter in this case?
0
votes
0answers
72 views

Cannot mount fresh partition twice

I try to partition a harddrive with a script, where I have some trouble remounting the partition. This happens both this btrfs as well as with ext4. So I assume the problem is the partition table, and ...
6
votes
3answers
447 views

How can I make a special file that executes code when read from

Most files on a Linux system are normal files, i.e. they are saved on disk and reading from them just reads from a specified chunk of memory on the disk. How can I make something that behaves like a ...
0
votes
0answers
25 views

how to get filesystem creation time/date for vfat on linux

I want the date, when the filesystem on a usb stick was created. This would be the age of the stick in my case, since I have not recreated it. I have found how to do this for files and ext ...
3
votes
1answer
27 views

How do I change the OS block size

I am using SUSE 11SP3 and formatted the devices with a block size of 4KB using mkfs.ext3. /sys/block/sda/queue/logical_block_size and /sys/block/sda/queue/physical_block_size show the OS is using 512 ...
-1
votes
1answer
35 views

In Mac Os, what is .DS_store?

In each folder I find a hidden file called .DS_store? What is this exactly?
1
vote
0answers
42 views

changing /var in running system

I have the challenge that I cannot start a CentOS Linux server in single-user-mode, but I need to change the /var (currently part of /) to a new disk. My way would be: mount the new disk on a ...
3
votes
1answer
307 views

Do files change while passing from ext2 to ext3 to ext4?

If one creates a file on an ext2 (or ext3 or ext4) partition, then moves from one partition to another, each formatted differently, does any part of that file change? Once returned to the original ...
3
votes
0answers
33 views

How to change relatime access time update interval from 24 hours?

According to the RHEL 6 documentation about the Relatime Drive Access Optimization: The kernel used in Red Hat Enterprise Linux 6 supports another alternative — relatime. Relatime maintains atime ...
0
votes
0answers
19 views

Prime New GlusterFS Cluster w/ 24GB of Files

I am attempting to load my new glusterfs cluster on AWS with my existing files that total in size of over 24GB. From my calculations, it is going to take 8 days to transfer all the files via the ...
11
votes
1answer
136 views

When did directories stop being readable as files?

I have the 1st edition of The Unix Programming Environment book. In chapter 2, the authors state that directories are readable as files, and mention some facts about the format of these files. They ...
1
vote
1answer
57 views

Create a file that's really a network port

I have a program running on a cluster, and the output of the program is written to a log file which I specify. However, instead of writing it to a file, I want to write it to a network port, so that ...
2
votes
1answer
36 views

zfs deduplication “low” ratio

In Solaris 11, in a pool named mypool I activated deduplication with zfs set dedup=on mypool Then I created two 100 MB file: file1 and its copy file1copy. Only their names are different: their ...
2
votes
1answer
60 views

RHEL Error message mounting luks crypted filesystem at boot

I am configuring a luks crypted file system to be mounted at boot time using RHEL 6.5 I did all the configuration from command line and tt worked but printed an error message after asking for ...
2
votes
1answer
82 views

How creating forcefsck file triggers file system check on reboot?

What is the significance of the file /forcefsck? I understand by creating this file the file system check is enforced during the next reboot. But how does this work?
1
vote
2answers
704 views

Command not found problem in Linux-Ubuntu terminal

My friend is having problem in trying to call make to compile an application which both me and a second friend have previously successfully compiled. The file uses a "linux-devkit" pack that possess ...
0
votes
1answer
126 views

NTFS drive not mounting in Debian

This drive has been working fine for a while, but I recall having had some slight trouble getting it mounted in the past. Anyway, it was disconnected from the machine for some time and when I ...