Questions tagged [ext4]

The ext4 or fourth extended filesystem is a journaling file system for linux/*nix developed as the successor to ext3.

461 questions
98
votes
10 answers

How to extend an ext4 partition and filesystem?

I have a 400GB disk with a 320GB ext4 partition. I would like to grow the ext4 partition to use the left space (80GB of free space). +--------------------------------+--------+ | ext4 | Free …
mimipc
  • 1,767
  • 2
  • 17
  • 27
60
votes
4 answers

Is it possible to on-line shrink a EXT4 volume with LVM?

Today I tried this on my machine with OpenSUSE 12.3 (kernel 3.7): # resize2fs /dev/mapper/system-srv 2G resize2fs 1.42.6 (21-Sep-2012) Filesystem at /dev/mapper/system-srv is mounted on /srv; on-line resizing required resize2fs: On-line shrinking…
Alicia
  • 755
  • 1
  • 5
  • 8
45
votes
3 answers

What is the maximum number of files a file system can contain?

Given the current structure of a directory entry on a ext4 file system on Ubuntu, what is the maximum number of files a file system can contain? What is the general method of calculating the maximum number of files a file system can contain?
user32678
42
votes
5 answers

Ext4 vs. XFS vs. Btrfs vs. ZFS for NAS

My use case: I have Ubuntu Server 18.04 installed on an M.2 SSD. I have a 4TB HDD I want to add as storage. Since it's mostly for large media files and backups, it won't be written to very often. Which filesystem do you think is best suited for this…
Alex Shaw
  • 529
  • 1
  • 4
  • 4
36
votes
1 answer

Why does deleting a big file take longer?

My understanding is that running rm on a file simply unlinks it, marking the space as free in the filesystem. It should then follow that deleting one file always takes roughly the same amount of time (i.e. delete speed is proportional to number of…
Tom Marthenal
  • 2,106
  • 7
  • 25
  • 37
33
votes
4 answers

Is there such a thing as a 'quick' format for ext4?

In Windows, it's very fast to format with NTFS. I have a low powered Linux machine, with little RAM. Formatting a 2TB volume to ext4 takes a long long time. Is there anything I can do to speed up the format? I can't imagine what takes so long? …
stuck
  • 667
  • 2
  • 10
  • 23
29
votes
2 answers

Transparent compression filesystem in conjunction with ext4

I am trying to test a project that needs compressed storage with use of the ext4 file system since the application I use relies on ext4 features. Are there any production/stable solutions out there for transparent compression on ext4? What I have…
user235918
  • 309
  • 1
  • 3
  • 7
26
votes
12 answers

Storing and backing up 10 million files on Linux

I run a website where about 10 million files (book covers) are stored in 3 levels of subdirectories, ranging [0-f]: 0/0/0/ 0/0/1/ ... f/f/f/ This leads to around 2400 files per directory, which is very fast when we need to retrieve one file. This…
BenMorel
  • 4,215
  • 10
  • 53
  • 81
22
votes
5 answers

How to clean up an unprocessed orphan inode list?

I tried to mount a formerly readonly mounted filesystem read-writeable: mount -o remount,rw /mountpoint Unfortunately it did not work: mount: /mountpoint not mounted already, or bad option dmesg reports: [2570543.520449] EXT4-fs (dm-0): Couldn't…
bmk
  • 2,239
  • 2
  • 15
  • 10
21
votes
7 answers

Which filesystem for large LVM of disks (8 TB)?

I have a Linux server with many 2 TB disks, all currently in a LVM resulting in about 10 TB of space. I use all this space on an ext4 partition, and currently have about 8,8 TB of data. Problem is, I often get errors on my disks, and even if I…
alphatiger
  • 221
  • 2
  • 6
21
votes
4 answers

"safe" ext4 configuration for systems running unattended

I have a system running linux that must run unattended for long periods of time. The system uses industrial CF card for storage. Most of the time there are no writes to flash, although every now and then some configuration data/settings can be…
Grodriguez
  • 242
  • 1
  • 2
  • 15
20
votes
5 answers

exportfs: Warning: /home/user/share does not support NFS export

'exportfs -r' returns me this error when I'm trying to export /home/user/share (ext4): exportfs: Warning: /home/user/share does not support NFS export. /etc/exports: /home/user/share 192.168.1.3 (rw,no_subtree_check) The system is Ubuntu 10.04…
Talis
  • 209
  • 1
  • 2
  • 3
19
votes
4 answers

Ensuring a repeatable directory ordering in linux

I run a hosted continuous integration company, and we run our customers' code on Linux. Each time we run the code, we run it in a separate virtual machine. A frequent problem that arises is that a customer's tests will sometimes fail because of the…
Paul Biggar
  • 328
  • 3
  • 9
19
votes
2 answers

ext4 file-system max inode limit - can anyone please explain?

Recently we had a problem where one of the ext4 file-systems seemed unable to handle very large number of files, more than 6mln in this case, in spite of having enough space. Is it 6mln the max number, an ext4 file-system can have when formatted…
MacUsers
  • 449
  • 2
  • 7
  • 13
18
votes
3 answers

Is there a way to protect SSD from corruption due to power loss?

We have a group of consumer terminals that have Linux, a local web server, and PostgreSQL installed. We are getting field reports of machines with problems and upon investigation it seems as if there was a power outage and now there is something…
Yehosef
  • 1,245
  • 2
  • 9
  • 10
1
2 3
30 31