Hot answers tagged ext4
16
The mount option user only allows the filesystem to be mounted by any user. The rw option makes the filesystem not readonly. You will have to use permissions to make the parent directory writeable.
chmod 777 /media/foo
The chmod command you show only affects the existing files within /media/foo.
11
You can't disable journaling on NTFS.
That being said, the benefits are dubious these days. While writes are limited, the myths of write endurance existed from the first generation of SSDs that appeared in the enterprise market. I find it hard to believe that the same is still true ten years later.
For example, Corsair's blog posted this test.
...
10
I would consider using ext4 on brand new installations since the performance increase is pretty significant. I believe that ext4 is default for Ubuntu on the next release (9.10), but available but not default in the current release (9.04).
You can convert a filesystem currently as ext3 to ext4, but the performance increase may not apply to the existing ...
9
EXT4 above all says it will boot your OS faster. Ubuntu 9.04 should be booting up to 30% faster. If this is the only practicall use I would be stunned, since my Ubuntu boxes boot so fast I cannot even go get me a cup of coffee...
But you can use larger harddrives, have larger files, more security is built in to safeguard data from crash and last but not ...
8
You may have luck with:
http://extundelete.sourceforge.net/
However, I've never used it.
Warning: typically these days, filesystems don't support undelete. Trying to recover deleted files is an exercise in computer forensics and you're going to be very lucky to get them back. In particular, if you have written any more files to the disk, chances are your ...
7
Hmm, I haven't tried this, but Cygwin has mke2fs in the e2fsprogs package. Take a look at:
http://superuser.com/questions/314997/how-to-format-ext2-in-windows-xp and the caveat about special device names the Answer mentions: http://www.cygwin.com/cygwin-ug-net/using-specialnames.html
Cygwin is over at: http://www.cygwin.com/
5
As written in the manpages mke2fs is used for creating new filesystems, not changing existing ones.
I think the tool you are looking for is tune2fs, it can use the same parameter:
tunefs -O ^has_journal /dev/sdXY
Whatever you do, make a backup before you play with filesystems.
You might have to use the -f (force) parameter.
Check the manpages with man ...
5
First thing is:
Do not turn on your computer
Start it with a LiveCD or LiveUSB
Make a raw clone of the partition, using dd
Never mount the partition, but if you need to, mount as read-only
If your data is not encrypted, or is encrypted by blocks, there are tools that look for data in the disk independently of the filesystem. (e.g., photorec)
Extundelete ...
5
I'd advice you to wait a while before you switch to ext4, especially if you're on Ubuntu. There are nice performance and fragmentation related improvements in ext4, but it's not worth any system instability.
Read the blog post by Ted Ts'o, the ext4 maintainer, on the potential data loss due to delayed allocation: Delayed allocation and the zero-length file ...
5
Most likely neither. The size displayed by ls is the length of the file, however most modern filesystems support "Sparse Files" where empty blocks are not actually written to disk. Try running du -h /ssd/* and see what size it reports the files as. 'du' will display the amount of disk actually used, which should be fairly close (excluding filesystem ...
5
I have not tested this, but this project's driver claims to be able to let Windows access it. Whether there are specific applications that can, or cannot, use it, you would probably just have to test.
Support writing to ext4 volumes w/ flex_bg
and the FAQ says that these systems are supported:
Windows 2000, xp, 2003, Vista, Win7 (X86, AMD64)
I ...
5
Paragon Partition Manager 11 Free Edition is Windows-based, supports ext4 and is very easy to use .
Although claiming a smart resize/move wizard, I have no idea how smart it is on moving ext4 from its beginning, but being one of the best partition managers around it is certainly worth a try.
Another one that you could try is MiniTool Partition Wizard Home ...
4
What is 6G mainly used for, for journal, for redundancy, or for indexing?
(Not known yet.)
Why the remaining space 393G not 415G? There is a 22G hole which is rather big.
It's 5% reserved blocks for superuser, which is used to avoid fragmentation. You can adjust it to 1% by mkfs.ext4 -m 1.
What parameters would you advice if this ext4 ...
4
There are two main reasons for the performance difference, and two possible reasons. First, the main reasons:
Increased Performance of ext4 vs. NTFS
Various benchmarks have concluded that the actual ext4 file system can perform a variety of read-write operations faster then an NTFS partition. Note that while these tests are not indicative of real-world ...
4
It may not be as fast as the others, being only a userland fuse based system in Linux, but ZFS may fit the bill...
The name originally stood for "Zettabyte File System". The original name selectors happened to like the name, and a ZFS file system has the ability to store 258 zettabytes, where each ZB is 270 bytes.
ZFS is a 128-bit file system, so it ...
4
Ext2Fsd looks like what you are looking for.
Ext2Fsd is a file system driver that allows accessing (both reading and writing) EXT2, EXT3 or EXT4 partitions from Windows. It works with Windows 2000, XP, Vista and Windows 7.
Ext2Fsd has limited EXT4 support and by default it will load the filesystems in read-only mode, but you can force this if you ...
4
There is one file system which is supported by new Windows OS AND is faster than NTFS. It's exFAT. There's a possibility to use it for the system drive. But it's unknown what complications it might have.
You can certainly use it for other partitions though. It's faster with random read/write operations. Perfect for an SSD for example.
4
Short answer: no rush.
Longer answer:
I don't think it's always as simple as "use the latest release of a file system." Alos, as pointed out by @nagul, I don't think ext4 is more stable than ext3 at this point.
Even speed difference comparisons are not straightforward. Different file system types tend to perform better in different situations. There's ...
4
You may toss my answer to the wolves but it may give you a different perspective:
I have a netbook, an ASUS EeePC 900HA, and I've been on the hunt since last November when I bought it for a "fast boot" OS. The truth is, anything you may only want to wait seconds for (thus the fast boot) you should be capable of on your smart phone.
I eventually broke ...
4
"-i" returns the inode numbers (the number of "entries" in the "catalog of files"), not the block size (the space used by the files).
This is confirmed by the header of "df": Inodes IUsed IFree IUse%
Note the "I" in front of each number.
Remove the "-i" and it should give you correct numbers. Use "-hk" for human-readable numbers and block-size ...
4
The size reported by ls -l for a directory has no relationship with the cumulated size of files stored in it.
It is just, for most common file systems, the size in bytes that has been required to store the directory entries. This size grows by block size (eg: 4096, 8192, ...). How many entries can be stored in a block is file system dependent and vary also ...
3
A simple cache wouldn't work. A cache is about checking if you already have the answer and only reprocess if you don't. But in this case, a single missing entry would make others useless. So it would have to keep all directory sizes updated all the time.
Also don't underestimate the possible impact of your proposal. Back when journalling filesystems ...
3
I would use NTFS instead. It can easily be read/written to by Linux, Windows and OS X (among others).
Considering the intended use and the fact that it is an external drive, I see no reason why you should go through the hassle that using ext4 will be.
If this were your primary hard drive, perhaps the advantages of ext4 (briefly, less drive fragmentation ...
3
The best way is to mount using UUIDs, in your fstab:
UUID=c2ccbd00:ce414404:0ee05911:eebe2832 /media/Main ext4 defaults 0 0
UUID=b4973c41:e735e1c0:29e8be4b:4fe7c007 /media/Backup ext4 defaults 0 0
As pointed out by @Floyd, using labels is also nice, since you could create a new device with the same data and the same label if you need to change things. So ...
3
XFS is and always has been a journalling file system. It does not truncate files to a zero length and is the base file system for many enterprise storage appliances.
You do need correctly configured hardware (specifically to make sure volatile write caches are correctly handled in your storage with the barrier mount options).
If you see data loss on any ...
3
Update: well that was too easy
$ sudo tune2fs -l /dev/sda1
tune2fs 1.41.11 (14-Mar-2010)
Last mounted on: /
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 7028736
Filesystem created: Sat Nov 14 ...
3
Much faster fsck (ext3 can be terrible slow on larger filesystems)
Extents (make sure to reformat!) => less metadata overhead
ext4 can be used without journal e.g. for scratch directories => faster.
journal checksumming => higher safety in case of a crash
3
What do you need the drive to do? Performance often varies by file system type & what task is being performed.
Setting noatime on your partition or changing to a reiserfs might give some small performance boost, but you might create NFS problems for yourself. If the local ext4 disk is slower than an NFS mount, I think something else is going on. I ...
3
This was no big deal at all, here's what I did:
Edit /etc/fstab, replacing "ext3" with "ext4" for my root filesystem. (I also removed "barrier=1", which is now the default on ext4.)
Reboot into single user mode with read only root filesystem.
Run tune2fs -O extents,uninit_bg,dir_index /dev/DEV
Reboot, again into single user mode with read only root ...
3
I think it would be simpler to change the fstab entry to:
/dev/sda8 /media/foo ext4 rw,user,exec,umask=000 0 0
umask=000 means that anyone can read, write or execute any file or directory in foo.
The usual default is 022, which means that users cannot write.
Only top voted, non community-wiki answers of a minimum length are eligible

