Questions tagged [ext3]

Ext3 is a linux filesystem.

ext3 (or third extended filesystem), is a journaled file system that is commonly used by the Linux kernel. It is the default file system for many popular Linux distributions. S

The filesystem was merged with the mainline Linux kernel in November 2001 from 2.4.15 onward.

Its main advantage over ext2 is journaling, which improves reliability and eliminates the need to check the file system after an unclean shutdown.

Its successor is ext4

See Wikipedia for details on ext and ext3.

125 questions
3
votes
1 answer

File timestamps precision - ext3 with nanoseconds, ext4 with milliseconds

It is said that ext3 supports file timestamp precision up to seconds and ext4 up to nanoseconds... What happens is that my old VPS running Ubuntu 12.04 with a ext3 filesystem always (as far as I can remember) supported nanoseconds very nicely, like…
Ricardo
  • 31
  • 2
3
votes
1 answer

journaling in ext3 - Documentation

I have been looking around for documentation on how journalling is implemented in ext3 and couldn't find any good resources. I am familiar with the internals of ext2 and have gone through the implementation of the same in Linux and Minix. Could you…
user277465
3
votes
2 answers

Should I fsck ext3 on embedded system?

We have a number of embedded systems requiring r/w access to the filesystem which resides on flash storage with block device emulation. Our oldest platform runs on compact flash and these systems have been in use for over 3 years without a single…
David Holm
  • 17,522
  • 8
  • 47
  • 47
3
votes
5 answers

Fast way to find the number of files in one directory on Linux

I am looking for a fast way to find the number of files in a directory on Linux. Any solution that takes linear time in the number of files in the directory is NOT acceptable (e.g. "ls | wc -l" and similar things) because it would take a…
HighCommander4
  • 50,428
  • 24
  • 122
  • 194
3
votes
2 answers

What is orphan list in ext3?

I've been looking at the ext3 source code to get some hints for my current work and orphan list is a term which I'm coming across very often. Please explain what is it. I'm aware of the directory and the block map structure and wanted to study the…
user1071840
  • 3,522
  • 9
  • 48
  • 74
3
votes
3 answers

Read blocks from an ext3 filesystem?

What's the easiest way to access an ext3 file system at the block level? I don't care for the files, or raw bytes, I just have to read the FS one block at a time. Is there a simple way to do this (in C)? Or maybe a simple app whose source I could…
klozovin
  • 2,363
  • 2
  • 22
  • 30
3
votes
2 answers

How to manage Linux file permissions in Java?

Is there any mechanism to get and set the file/directory permissions? For example, I want to show the permisssions of a file in a shell way: -rwxr-xr-- Is it possible to do this using Java? I know that there are some methods in the File class to…
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
3
votes
1 answer

Which datastructure do nodes of B-Trees use?

According to Knuth's definition, a B-tree of order m (the maximum number of children for each node) is a tree which satisfies the following properties: (1) Every node has at most m children. (2) Every node (except root) has at least ⌈m⁄2⌉…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
3
votes
1 answer

Efficient way to query or set the volume name of an ext3 partition under Linux?

Through a bit of digging, I've discovered how to set and get the volume name of an ext3 partition on my Linux box: set the volume label tune2fs -L MY-NEW-NAME /dev/disk/by-path/pci-0000:00:1f.2-scsi-2:0:0:0-part1 get the volume's current…
Jeremy Friesner
  • 70,199
  • 15
  • 131
  • 234
2
votes
2 answers

file rename on ext3 appears to break POSIX spec

I am struggling to understand what is going on in a test I am running. Test is two shell scripts running on the same machine. A: #!/bin/bash touch target; for ((i=0; i < 1000; i=i+1)); do echo "snafu$i" > $1/file$i; mv -f…
vladimir e.
  • 723
  • 3
  • 7
2
votes
1 answer

Linux Read Only Partition's data changes

I have a read only partition who's data is changing. The change occurs on the first mount only. Subsequent mounts do not change the partition data. Tried with ext3 and ext2 incase journalling was an issue ... no help. Tried tune2fs with -c -1 -i 0…
lostdev
  • 736
  • 8
  • 23
2
votes
1 answer

Ext2/3: Block Type Clarification: IND vs DIND vs TIND

I'm seeing references to "IND" vs "DIND" vs "TIND" block-types in a few places, whereas the definition in the code is very terse: (https://github.com/torvalds/linux/blob/master/fs/ext4/ext4.h#L362) #define EXT4_NDIR_BLOCKS 12 #define…
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
2
votes
0 answers

Can't add index to innodb table - "table '#sql_...' is full"

I have a frustrating problem here. I need to add an index to an innodb table which is a few gb in size. Every time I try this: alter table x add index y; I get Error Code : 1114 The table '#sql-5f87_30' is full I already have…
Rich
  • 21
  • 3
2
votes
1 answer

Is there an official specification for the ext2/ext3/ext4 filesystems?

I was wondering, for Bluetooth we have IEEE 802.15.1 standard, managed by Bluetooth Special Interest Group. For Wifi we have the IEEE 802.11 standards and also the Wifi Alliance. For NVMe SSDs on PCIe we have nvmexpress that regulate and publish its…
Lilás
  • 1,111
  • 1
  • 16
  • 29
2
votes
2 answers

Which granulary to choose for database table partitioning?

I have a 20-million record table in MySQL database. SELECT's work really fast because I have set up good indexes, but INSERT and UPDATE operation is getting to be really slow. The database is back-end of a web application under heavy load. INSERTs…
Milan Babuškov
  • 59,775
  • 49
  • 126
  • 179
1
2
3
8 9