Questions tagged [filesystems]

A file system is the specification of how files in a computer should be stored, named and organized. This tag should be used for generic file system questions. For specific file system questions (FAT, NTFS, ext4, ...) use the appropriate tag instead.

File Systems (or filesystems)

A file system is the specification of how files in a computer should be logically stored, named and organized. File systems present to users a human-readable format of data organization in the computer, where each file is a discreet unit of data.

File systems present only a logical format. They don't necessarily reflect the way the data is physically stored on a computer disk drive, or other storage device. Since the computer actually stores data in bits, data on a storage device lacks any structure; consisting of nothing more than a series of 1s and 0s.

File systems therefore give structure and meaning to that data, by — at the very minimum — giving an arbitrary collection of bits a file name and maintaining a record of this file physical location on the storage device.

Common Elements

Other than file names, common file systems also describe and maintain directories and file attributes, which serve as a means to further structure data organization and to give files specific purposes, security features or functionality.

File systems usually store this information in table-like format in a specific region of the storage device. Each file is listed on this table with its location, length and other properties clearly declared. An operating system that understands the filesystem format can then read this table to access a file in order to edit, rename, delete, move or alter any of its attributes.

File System Tags

These are well-known file systems with tags on this site, sorted in alphabetical order:

For more reading

File System, at Wikipedia

Various file system specifications

3275 questions
311
votes
9 answers

Why is there such a big difference between "Size" and "Size on disk"?

As you can see below, there is so much difference between the Size and Size on disk fields in my folder. Why is that? I know that Size on disk should be a little more than Size because of allocation units in Windows, but why that much of a…
vfsoraki
  • 2,037
175
votes
10 answers

How can a file size be zero?

Just something I ran into and couldn't think of a proper explanation. If I create an empty *.txt file on my PC and then look at its size, it shows 0. But how is that possible? I mean even if the file itself is empty, it still must have some size,…
Eugene S
  • 2,138
95
votes
6 answers

Directory vs. Folder

Are both names synonyms or should one prefer one name over the other on different platforms?
Mike L.
  • 5,747
  • 16
  • 51
  • 69
77
votes
4 answers

How can a file have been 'created' in 1641?

A few years ago, I stumbled on this file on our fileserver. And I wonder how can a file say it's been created in 1641? As far as I know, time on pc is defined by the number of seconds since Jan 1st, 1970. If that index glitches out, you can get Dec…
Fredy31
  • 1,135
30
votes
6 answers

What USB drive filesystem works out of the box on Windows, Linux, and OS X?

What USB drive filesystem works out of the box on Windows, Linux, and OS X so that, when I give a 64GB USB drive to my dad, I don't have to tell him to first type in sudo apt-get install exfat-fuse exfat-utils ntfs-3g in the terminal, for example?
Mihai
  • 938
29
votes
2 answers

what is the "~/.local" and can I delete it?

/home/user/.local is kinda big (~5.6Gb on debian squeeze and 3.7 on ubuntu 12.04) for me, so, can I delete it?
29
votes
7 answers

Is there a general term for the items in a directory?

I'm just curious if there's a standard computer term that encompasses everything in a directory, instead of always having to mention "files" and "(sub)directories/folders" separately. So you could say, loop through all the terms in dir_1. And just…
Mason
  • 421
13
votes
4 answers

Why do bigger clusters yield less capacity?

I was playing around with a thumb drive and I noticed a counter-intuitive trend. The bigger I make the cluster size (allocation unit size in windows, block size in linux), the less capacity gets reported. Which is weird, because basic logic dictates…
martixy
  • 915
13
votes
2 answers

How do I check the actual format of an image file?

I have a bunch of image files with the extension ".png", but I'm fairly sure some of them are actually JPEGs that were renamed to PNGs. As far as I know, simply renaming the file doesn't actually change the formatting, compression, etc., so how do I…
12
votes
5 answers

What is the difference between ./ and ../?

when we specify the file path some times we specify like ./filename and some time ../filename what is difference between these two?
nectar
8
votes
1 answer

Which file systems support newlines in file names?

For a programming challenge I need a filesystem which supports newline characters in filenames, so a file can be named something like: A filename with newlines I can't find any. Can anyone help me?
user36099
7
votes
2 answers

Let's say that your program is writing information to a file. How does the disk recover your file if there is a system crash?

And that system crash happens while your file is being written to by your program? Also, is it the case that when your program writes to the file, it actually isn't writing directly to disk, but rather to memory instead? Because it just seems like…
7
votes
2 answers

How does a case-insensitive filesystem access files?

A programmer at my work, who has used Linux all his life, was berating Windows for having a case-insensitive file system (among other things), which he said is the worst idea possible and can never be beneficial. I said that was just because he was…
Clonkex
  • 1,087
5
votes
2 answers

When pasting a file "over" another file with the same name, is there a brief moment during which neither file exists?

This used to worry me whenever I was replacing static HTML files in a shared web hosting environment. When pasting (or FTPing) a file "over" another file with the same name, is there a brief moment during which neither file exists? If I have…
5
votes
4 answers

Why isn't write-access to NTFS partitions provided with Mac OS X?

Does Microsoft simply not allow it or is it because Apple refuses to pay licensing? I know there are software workarounds, but my question is simply WHY?
Matias Nino
  • 1,656
1
2 3 4 5 6