Questions tagged [filesystems]

A file system (or filesystem) is a means to organize data expected to be retained after a program terminates by providing procedures to store, retrieve and update data, as well as manage the available space on the device(s) which contain it.

A file system (or filesystem) is a means to organize data expected to be retained after a program terminates by providing procedures to store, retrieve and update data, as well as manage the available space on the device(s) which contain it. A file system organizes data in an efficient manner and is tuned to the specific characteristics of the device. A tight coupling usually exists between the operating system and the file system. Some file systems provide mechanisms to control access to the data and metadata. Ensuring reliability is a major responsibility of a file system. Some file systems allow multiple programs to update the same file at nearly the same time.

1986 questions
8
votes
4 answers

How can I reduce resource usage when copying a large file?

I need to move a large file (corrupt MySQL table ~40GB) onto a seperate server in order to repair it. (When trying to repair on my production server, it quickly killed the server). In order to do this, I want to rsync the .frm, .MYI and .MYD files…
Jon M
  • 457
  • 1
  • 6
  • 11
8
votes
1 answer

Mount XFS partition with < 4k block size

I have an XFS partition with a 64k blocksize. But I can only mount it in Ubuntu 10.10 when the blocksize is the default of 4k. How can I mount a partition with the larger blocksize? This works: sudo mkfs.xfs /dev/sdb1 -b size=4k -d agcount=32 -l…
ensnare
  • 2,212
  • 7
  • 24
  • 40
8
votes
5 answers

Does ZFS cache Compressed or Uncompressed data in a ZFS file-system with compression turned on?

ZFS supports file-system compression and it also caches frequently or recently accessed data. If a system has lots of CPU but the underlying data storage system is slow. It is possible that ZFS would perform better with compression turned on. This…
700 Software
  • 2,233
  • 10
  • 49
  • 77
8
votes
2 answers

Ext4 partition bigger than 2TB?

Is there a way to make partition bigger than 2 TB on ext4 file system ?? Im trying to do that on debian but get message Partition size can not exceed 2TB ...
B14D3
  • 5,188
  • 15
  • 64
  • 83
8
votes
3 answers

On linux, what does it mean when a directory has size 0 instead of 4096?

Here's a strange thing I haven't seen before -- a directory whose size is reported by ls as 0 instead of 4096, and I can't create any files within it. # ls -ld lib home drwxr-xr-x. 2 root root 0 Feb 7 03:10 home <-- it has zero…
kdt
  • 1,400
  • 3
  • 22
  • 34
8
votes
2 answers

How can root user create file/directory unwritable for itself?

Normal users can chmod files to make them unaccessible like evgeniy@ubuntu:~$ touch test evgeniy@ubuntu:~$ chmod 444 test evgeniy@ubuntu:~$ echo 'test' > test bash: test: Permission denied Can something like this be simulated for the root user?
Ev Dolzhenko
  • 205
  • 2
  • 5
8
votes
6 answers

how to do filesystem testing?

I am planning to test a filesystem. What all should i consider to do. or how to accomplish the same. Are there are any tools to test a filesystem or any reliable references? Purpose: Planning to shift from ext3 to EFS.
Viky
  • 648
  • 2
  • 7
  • 11
8
votes
2 answers

df shows negative values for used?

I have a CentOS 5.2 server and running df -h I get this: Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 672G -551M 638G 0% / /dev/hda1 99M 12M 82M 13% /boot tmpfs …
GriffinHeart
  • 411
  • 6
  • 14
8
votes
2 answers

Setup symbolic link where users can access it with FTP

I have a folder on a server where a client of mine has a bunch of folders that they upload images and what not for a site, I do a symbolic link to those folders to the root of the website. This way I can give them ftp access to upload whatever they…
dan.codes
  • 193
  • 1
  • 1
  • 4
7
votes
5 answers

How to write a sparse Linux (EXT4) disk image without writing gigabytes of zeros?

I have a 64 GB Linux disk image with ~50 GB of unused space across the partitions. The file is sparse, so it only takes ~14 GB on disk. But if I dd the image, it writes the full 64 GB, which takes quite a while. Is there any way I can do the…
7
votes
1 answer

Cannot shrink btrfs filesystem although there is still data and metadata space left : ERROR: unable to resize '/home': No space left on device

I cannot shrink btrfs filesystem although there is still data and metadata space left : $ sudo btrfs filesystem resize -11G /home;echo $? Resize '/home' of '-11G' ERROR: unable to resize '/home': No space left on device 1 Here are some btrfs…
SebMa
  • 359
  • 1
  • 10
7
votes
2 answers

How to implement document management for non-technical end-users?

I've entered a corporate Windows-based environment where document management includes folder naming conventions with numeric or alphabetic prefixes (e.g. 1 Admin, 2 Executive, 3 Marketing) and file naming conventions with embedded dates and initials…
eft
  • 354
  • 5
  • 6
7
votes
4 answers

are EBS volumes wiped after use?

I tried to recover some data from an ebs volume on which I accidentally ran wipefs on. I used PhotoRec (http://www.cgsecurity.org/wiki/PhotoRec)... and it got my files back but also a ton of other files that did not belong to me. It got images,…
steve landiss
  • 399
  • 1
  • 3
  • 8
7
votes
1 answer

Ubuntu server ext4 hitting 65000 subdirectory limit

I have a Ubuntu 14.04 server that is failing to create a new directory beyond the 65,000 directory. I have run a tune2fs -l and can see that the dir_nlink flag is set. Does anyone know what else can be checked to allow this to occur? I have many…
gregjkm
  • 71
  • 2
7
votes
3 answers

What does sunit=0 and swidth=0 mean for XFS file system?

I created an XFS file system using default parameters at the time of creation of a system. Now looking at the output of xfs_info, it show 0 for the values of sunit and swidth. I can't seem to find an explanation of what 0 means in this context. …
mhucka
  • 679
  • 4
  • 10
  • 22