Slashdot Mirror


How To Move Your Linux Systems To ext4

LinucksGirl writes "Ext4 is the latest in a long line of Linux file systems, and it's likely to be as important and popular as its predecessors. As a Linux system administrator, you should be aware of the advantages, disadvantages, and basic steps for migrating to ext4. This article explains when to adopt ext4, how to adapt traditional file system maintenance tool usage to ext4, and how to get the most out of the file system."

76 of 304 comments (clear)

  1. But does it run... by RiotingPacifist · · Score: 2, Funny

    reiser4?

    --
    IranAir Flight 655 never forget!
    1. Re:But does it run... by 2muchcoffeeman · · Score: 4, Funny

      Reiser4 will absolutely kill ext4.[/badtastedaemon]

      --
      Prevent Windows piracy. Use Linux instead.
    2. Re:But does it run... by Sentry21 · · Score: 5, Funny

      From what I've read, Reiser4 completely kills Ext4 in performance... then it disposes of ext4's kernel module, removes one of its redundant drives, and then cleans the free space left on its array.

    3. Re:But does it run... by electricbern · · Score: 5, Funny

      But it is too verbose, and that ends up being a problem.

      --
      alias possession='chmod 666 satan && ls /dev > il && tail daemon.log'
    4. Re:But does it run... by CatOne · · Score: 3, Funny

      How would you know? It's as if the old Ext4 system just... vanished.

      Even if you found a platter under the front seat.

    5. Re:But does it run... by erlehmann · · Score: 2, Funny

      Not only that. It killed my backup copies of bride.ru , i needed for, err science.

    6. Re:But does it run... by erlehmann · · Score: 5, Funny

      You apparently didn't get the whole picture. It's not about single files - Reiser4 is just a better choice for partitioning your wife.

    7. Re:But does it run... by AftanGustur · · Score: 2, Funny

      Well, you open up your computer to find that the hard drive has been removed ..

      And the rest of the PC interior has been carefully cleaned.

      --
      echo '[q]sa[ln0=aln80~Psnlbx]16isb572CCB9AE9DB03273snlbxq' |dc
  2. Not for the casual user by halivar · · Score: 4, Informative

    ext4fs is designed to be used in systems requiring many terabytes of storage and vast directory trees. It is unlikely the common desktop (or even, for that matter, the common server) will see appreciable performance increase with it.

    1. Re:Not for the casual user by Anonymous Coward · · Score: 5, Funny

      Do you realize how much porn some people have?

    2. Re:Not for the casual user by Vellmont · · Score: 5, Informative


      It is unlikely the common desktop (or even, for that matter, the common server) will see appreciable performance increase with it.

      Disk sizes are going up. In a few years you'll see a terabyte on a single drive. I'd also say that features like undelete, and online de-frag are important to anyone.

      So while you may not see any real performance increases, that's really beside the point.

      --
      AccountKiller
    3. Re:Not for the casual user by Anonymous Coward · · Score: 5, Funny

      Instead of waiting a few years, go to your local computer store. They should have terabyte drives now.

    4. Re:Not for the casual user by A+nonymous+Coward · · Score: 4, Funny

      Disk sizes are going up. In a few years you'll see a terabyte on a single drive. Unlike those two 1000 GB (or is it 1024) drives I have on my desk now.
    5. Re:Not for the casual user by miscz · · Score: 3, Interesting

      I can't wait for faster fsck. It takes something like an hour on my 500GB ext3 partition. Terabytes of storage are not that far away.

    6. Re:Not for the casual user by Uncle+Focker · · Score: 4, Informative

      Disk sizes are going up. Since last year we've seen a terabyte on a single drive. Fix'd it for you.
    7. Re:Not for the casual user by XenoPhage · · Score: 5, Funny

      All you young kids want these days is a faster, more convenient fsck.. What about the old days where fscking was about the technique, not the speed or the size...

      --
      XenoPhage
      Technological Musings
    8. Re:Not for the casual user by stuporglue · · Score: 3, Interesting

      I have the following disks in my computer:

      1 TB
      500 GB
      300 GB

      When they decide to fsck at the same time, it can take 1/2 hour or longer to get to the login screen.

      --
      https://www.facebook.com/digitizeicm -- Show your support for the digitization of the Iron County Miner newspaper archiv
    9. Re:Not for the casual user by dpilot · · Score: 2, Interesting

      It might be a win for me even today on my meager 300G MythTV media partition. I'm currently using xfs for that, but every now and then I hear about bad things on xfs with a power failure, and other times I hear that it can be physically hard on the hard drive. (excess head motion?) Of course other times I hear that xfs is the best thing since sliced bread, and is usable for ANY purpose with just a little tuning.

      I transcode my Myth stuff on an ext3 partition, and occasionally get complaints about the large data size without having the right options set. But it works.

      --
      The living have better things to do than to continue hating the dead.
    10. Re:Not for the casual user by LWATCDR · · Score: 3, Insightful

      But EXT4 because really useful when you have many terabytes of disk storage. With just one or two EXT3 is probably good enough.
      Now when we have ten TB drives....
      Good grief people Yea just keep a few thousand TV shows on your desktop.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    11. Re:Not for the casual user by LWATCDR · · Score: 2, Informative

      No file system likes a power failure. Bet a UPS that will shut down the PC. They are cheap.
      And if you care about that data make a backup and even better run a raid.

      Remember EVERY HARD DRIVE IS GOING TO FAIL SOMEDAY.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    12. Re:Not for the casual user by EvilRyry · · Score: 5, Interesting

      This is why we have XFS. I fscked a 9TB partition is under 10 minutes. Hopefully they've done some improvements for ext4 in this area. A volume that takes days to fsck might as well just die completely.

    13. Re:Not for the casual user by techno-vampire · · Score: 5, Funny
      I can't wait for faster fsck.


      I can tell you're a slashdotter. When most people fsck they want it to last as long as possible.

      --
      Good, inexpensive web hosting
    14. Re:Not for the casual user by drinkypoo · · Score: 4, Funny

      What about the old days where fscking was about the technique, not the speed or the size...

      I'm just happy when it's done for me, and I don't have to handle it manually. When fscking fails at the beginning, it can ruin your whole day if you're not an expert.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    15. Re:Not for the casual user by Daimanta · · Score: 4, Funny

      I fscked a 9TB partition is under 10 minutes. That's what you get when you throw a harddrive in a bathtub with water.
      --
      Knowledge is power. Knowledge shared is power lost.
    16. Re:Not for the casual user by diegocgteleline.es · · Score: 4, Interesting

      Ext4 has a lot of performance improvements, like extents or delayed allocation. Desktop users will notice that ext4 is much faster

      That said, ext4 is unstable. It can easily eat your data. Just say NO to moving your filesystem to ext4 - for now.

    17. Re:Not for the casual user by instagib · · Score: 2, Informative

      Correct, and that's why outsourcing your fscking needs is the way to go. These days it is more and more common to not maintain fscking resources inhouse; instead you choose from a variety of service level agreements who will take care of everything around fsck and related issues.

    18. Re:Not for the casual user by CrazedWalrus · · Score: 4, Funny

      No kidding. Sometimes I'm just not into fscking either, but if you're failing at the beginning, you may want to call an expert.

      Usually my problem is that my fsck gets a "fsck-completed-normally", when the media is really only half fscked.

      But don't worry -- fscking takes practice. If you got a quality media, you can half-fsck it many times before the media fails completely.

      May I also suggest fscking aids? There are many tools on the market that can help when your fscking routinely fails doesn't complete. They're usually lightweight and easy to use, and can help to save your media from getting fscked elsewhere.

      As you said, when all else fails, sometimes you really do just need to handle it manually.

    19. Re:Not for the casual user by stanleypane · · Score: 4, Funny

      You obviously haven't been married ;)

    20. Re:Not for the casual user by SpaceLifeForm · · Score: 3, Funny
      That should be 'dick' sizes if you're going to be waving your hard drives around here.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
    21. Re:Not for the casual user by erlehmann · · Score: 5, Funny

      Good grief people Yea just keep a few thousand TV shows on your desktop.
      This could make for RIAA settlements in an order of magnitude of the GDP of a small country !
    22. Re:Not for the casual user by glwtta · · Score: 2, Insightful

      ext4fs is designed to be used in systems requiring many terabytes of storage and vast directory trees

      Well yeah, but Slashdot seems like a pretty good place to find people who administer multi-TB systems, no?

      A terabyte isn't what it used to be (hell, 1TB SATA disks are pretty common) and ext3 sucks pretty hard even on a measly TB.

      Does the sub-TB desktop crowd even care about filesystems? I mean, they all pretty much work and these days the popular ones have pretty similar performance (on a single spindle, at least).

      --
      sic transit gloria mundi
    23. Re:Not for the casual user by Sancho · · Score: 2, Interesting

      Why not? When storage density gets so high and the drives get so cheap, why not rip all of your movies and store them on disk? I'm lazy, and don't want to get up to change the disk.

    24. Re:Not for the casual user by Sancho · · Score: 2, Interesting

      I have scripts to automate any digital conversions that I perform, so time isn't really a factor. It's easy enough to grab a stack of discs, set them by my workstation, and do the ripping while you're working on other tasks. If you have a media PC that you use to play back DVDs, you can perform the ripping there the first time that you want to watch the movie. Any time someone else wants to watch it, they can just watch the cached version.

      As for your other points, it's largely a packrat mentality. There have been times when I wished that I could rent a movie, only to find that it's no longer available on DVD. Sometimes Netflix has it, sometimes they don't, but when production stops, it stops, and as copies of the movie wear out, it becomes much harder to come by. That makes purchasing them and backing them up on magnetic media more attractive, even if I may not get around to watching the films again any time soon.

    25. Re:Not for the casual user by whmac33 · · Score: 3, Informative

      from
      man fsck
      "filesystems on different drives will be checked at the same time to utilize parallelism available in the hardware."

      If / is small it will be quicker. If / is a large partition then it hinders any parallelism.

                    The sixth field, (fs_passno), is used by the fsck(8) program to deter-
                    mine the order in which filesystem checks are done at reboot time. The
                    root filesystem should be specified with a fs_passno of 1, and other
                    filesystems should have a fs_passno of 2. Filesystems within a drive
                    will be checked sequentially, but filesystems on different drives will
                    be checked at the same time to utilize parallelism available in the
                    hardware. If the sixth field is not present or zero, a value of zero
                    is returned and fsck will assume that the filesystem does not need to
                    be checked.

    26. Re:Not for the casual user by Xabraxas · · Score: 3, Informative

      Ext4 has a lot of performance improvements, like extents or delayed allocation. Desktop users will notice that ext4 is much faster

      XFS has both extents and delayed allocation. I really don't know why we need Ext4. XFS has been a very solid fs for quite some time now, it's sad that more attention hasn't been payed to it from kernel hackers. The whole idea behind Ext4 seems to be more of a NIH syndrome than anything else. I could understand if it was radically different but it isn't.

      --
      Time makes more converts than reason
    27. Re:Not for the casual user by LWATCDR · · Score: 2, Interesting

      Yes I have thought about setting up a media PC but then I would have to set up an NAS and then I would want to move over to GigaE. Once I did that I would want to get an IPod Touch and write a WiFi based Universal remote program for it....
      It is just more productive to grab the DVD.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    28. Re:Not for the casual user by oddfox · · Score: 5, Insightful

      One of many reasons right here

      I messed around with Ext4 for a little while on my machine (Like a couple days, just toying with it and seeing how its performance compares to Ext3 and Reiser4) a while back, like maybe a little bit before it was merged as experimental in the mainstream kernel. It is fast, backwards-compatible and extremely featureful. XFS is not a bad filesystem, but it has some problems, in my eyes. Metadata-only journaling, aggressive caching that makes it a potentially dangerous choice if you don't have a UPS, very slow metadata and deletion operations.

      That's great that XFS has a lot of features Ext4 is bringing to the playing field, and has had them for a long time. To pretend, however, that the developers of Ext4 simply have a NIH syndrome is just silly and disregards the fact that there is a lot that Ext4 already provides that XFS doesn't, and even more that it will soon. You might not see what the big deal is, but really, I can assure you that it won't be very long before the new ideas Ext4 employs are in widespread use.

      Here's an interesting article that really caught my eye with this: "Storage snapshot: The financial firm has more than 14 Petabytes of active storage and plans to add "several more Pbytes" within the next 12 months."

      --
      "We invented personal computing." - Bill Gates
    29. Re:Not for the casual user by turing_m · · Score: 2, Informative

      Several points as to why the need for massive TB of storage of video (backups of course):
      1) People wanting a lossless copy of the original media. i.e. purists.
      2) Bonus content.
      3) HD video.
      4) Kids - they will want to watch different movies, over and over and over, at different ages.
      5) Watching a movie with friends.
      6) Keeping it all out of sight, out of mind.
      7) Wanting to keep the NAS within a small power threshold, i.e. more easily done with higher storage density/fewer HDD. Better for the environment too with fewer HDD.
      8) Never underestimate the bandwidth of a stationwagon full of HDD.
      9) As someone else said, the packrat mentality. Who knows when that movie you want to watch will be out of production or perhaps banned?

      --
      If I have seen further it is by stealing the Intellectual Property of giants.
    30. Re:Not for the casual user by Random+Walk · · Score: 2, Interesting

      XFS has that nasty 'security' feature that it will zero files that were open when the power failed. Never use XFS on hardware that has no battery backup to shutdown properly if you trip over the power cable.

    31. Re:Not for the casual user by MMC+Monster · · Score: 2, Insightful

      I buy movies when the run $5-15 at the local store. I like having the physical disc. I may watch a movie just once, but good ones I'll watch at least a few times or more.

      There's nothing better than to sit down with the wife one evening and use the remote and flip through the DVD collection on the TV and start the movie without having to get up and figure out what to watch.

      It also means we're more likely to watch something we both enjoy rather than whatever happens to be on the TV at that time.

      --
      Help! I'm a slashdot refugee.
  3. Wikipedia entry by drgould · · Score: 5, Informative

    Link to Ext4 entry on Wikipedia for people who aren't familar with it (like me).

    1. Re:Wikipedia entry by miscz · · Score: 3, Funny

      Because nobody on Slashdot knows that primary filesystem used on Linux is called Ext3 and we're too stupid to figure out what Ext4 might be. Come on.

    2. Re:Wikipedia entry by discord5 · · Score: 3, Funny

      Because nobody on Slashdot knows that primary filesystem used on Linux is called Ext3

      Now now, don't give us too much credit

      we're too stupid to figure out what Ext4 might be

      It's like ext2 times two, stupid.

    3. Re:Wikipedia entry by Anonymous Coward · · Score: 5, Funny

      My Linux box goes to ext11.

    4. Re:Wikipedia entry by ajayrockrock · · Score: 2, Funny

      It's like ext2 times two, stupid.


      No, wrong. it's the next stable release of ext. remember people, odd numbers are development, even numbers are stable!

      okay, mod me down, I should really come up with new jokes.
  4. Preempting the prefix war by A+beautiful+mind · · Score: 3, Insightful

    Yes, Terabyte is not entirely correct according to SI, but Tebibyte just sounds lame and language is a tool, to facilitate written and oral communication.

    Of course, in this case you have to balance the confusion stemming from the Tera in IT context meaning 1024 in some cases. To be honest, people insisting on the new naming, they should have come up with a sensible sounding name and promoted that. You have to remember that language, even technical language is for the people. There are lots of ways to craft a beautiful, logical, symmetrical language that no sane person would use because it just doesn't sound convenient.

    Maybe a linguist can pitch in to explain why tebibyte sounds so awful?

    --
    It takes a man to suffer ignorance and smile
    Be yourself no matter what they say
    1. Re:Preempting the prefix war by Dachannien · · Score: 4, Funny

      Maybe a linguist can pitch in to explain why tebibyte sounds so awful? Tebibyte-buh: It's bad-buh because-buh it makes-buh you sound-buh like Mushmouth-buh.

      Hey hey hey!

    2. Re:Preempting the prefix war by sconeu · · Score: 2, Funny

      If you define that 1 KB is 1 billion bytes, then they are are really fleecing you

      I'd say that i fyou define that 1KB is 1 billion bytes, then you've got bigger problems than the marketing departments of drive manufacturers.

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    3. Re:Preempting the prefix war by VirusEqualsVeryYes · · Score: 2, Interesting

      I am not a professional linguist, but I think I can explain.

      In any spoken language, different sounds are loosely associated with different ideas. As a simple example, voiceless sounds, like p, k, t, f, and s, are well suited for pointed use, as in pejoratives; and r, especially the alveolar trill variety, is associated with intimidation or primality. These associations are made either because it sounds like something else ("rrrr" sounds like an animal's growl or roar -- notice the Rs in "growl" and "roar"?) or because the sound serves a purpose (hard, clipped sounds serve well as punctuation -- notice all the hard sounds in "punctuate"?). In the latter case, combinations of sounds can invoke a wide array of ideas or feelings. Utilization of these things is key to a good punchline or to controlling semiconscious undertones of speech. I admire Dr. Seuss in particular for his mastery of sound combinations in making up suitable words to balance sing-song silliness with gravity and purpose.

      Now, returning to "tebibyte" and all the other -bibytes, soft, voiced consonants like B are associated with childishness (a baby might make these sounds), silliness, bounciness, or informality. Two Bs in a row are especially so: bib, baboon, babble, bob, boob. The reason tebibyte sounds "stupid" is that it describes a technical idea using unsuitable sounds.

      This being said, if you were used to using the word, you wouldn't think twice about it. You would probably complain about "flop" and "watt" in the same way if the words were new, but established use overrides the weak sound associations. The President could be instead called the Biggyloppalo and few would care, as long as the term were already established in the common vocabulary. I'd think people would move on even if a video game console were named something as ridiculous as "Wii" ... but that's just a wild guess.

      As for my opinion on the matter, I'm in favor of it. The SI prefixes are already assumed to be powers of 10 in all other fields except the computer and information sciences. Tebibyte will maybe sound silly for awhile, but the problem will go away given time. And I, for one, look forward to buying futuristic data storage without feeling a little cheated.

  5. To all ext3 users... by c0l0 · · Score: 5, Informative

    ...who are on the lookout for a new fs to entrust with keeping their precious data: make sure to check out btrfs ( http://oss.oracle.com/projects/btrfs/ ). It's a really neatly spec'd filesystem (with all the zfsish stuff like data checksumming and so on), developed by Oracle employees under GPLv2, which will feature a converter application for ext3's on-disk-format - so you can migrate from ext3 to the much more feature-packed and modern btrfs without having to mkfs anew.

    On a related sidenode: I'm very happy with SGI's xfs right now. ext\d isn't the only player in the field, so please, go out and boldly evaluate available alternatives. You won't be disappointed, I promise.

    --
    :%s/Open Source/Free Software/g

    YTARY!
    1. Re:To all ext3 users... by DJProtoss · · Score: 2, Insightful

      I agree btrfs looks nice, but its somewhat behind ext4 in terms of implmentation and stability (which is saying something) - theres the small matter of not yet handling E_NOSPACE, for instance

      --
      "Success is based on knowing how far to go in going too far"
    2. Re:To all ext3 users... by Anonymous Coward · · Score: 3, Interesting

      I'm an XFS fan as well. I have been using it for years. I usually have my root/boot partition as ext3 (so grub works) and all data on XFS.

      XFS kills ext in terms of not losing data. I have recovered lots of data from failed drives that were XFS formatted. Not so with ext3 which tends to flake out and destroy itself when it gets bad data.

      And don't even mention ReiserFS, that has always sucked. I have lost more data to Reiser than any other filesystem (ext is a close second though). Sometimes it would corrupt files just from rebooting the machine. I have never lost data on an XFS partition that wasn't due to hardware failure.

    3. Re:To all ext3 users... by Jherek+Carnelian · · Score: 4, Interesting

      btrfs -- How fast are deletes?

      ext3 is both so slow and so bottlenecked that mythtv had to implement a special "slow delete" mode which gradually truncates files instead of just unlinking them. Without the "slow deletes" mode, you get hiccups in any shows that are being recorded while old shows are deleted.

      On my system, deleting a 20GB file can take a minute on ext3 (and the filesystem is completely locked - all other processes are blocked), but on ntfs it is almost instantaneous.

    4. Re:To all ext3 users... by glwtta · · Score: 3, Insightful

      On a related sidenode: I'm very happy with SGI's xfs right now.

      I seem to be plugging XFS in every fs thread recently, so I'll second that - I'm really surprised it's not more popular.

      ext3 may have, more or less, caught up to XFS in IO speed recently, but file operations on large filesystems are still a disaster - just try deleting a 2TB tree with a couple million files in ext3, I dare you.

      --
      sic transit gloria mundi
    5. Re:To all ext3 users... by manitoulinnerd · · Score: 2, Informative

      I moved to XFS from Reiser3 and ext3 because of file delete times coming up on 2 years ago. XFS has lightening fast deletes of large files over Reiser3, I was blown away. I only use it on a data partition (/home) and have left the rest of my system on reiser3 or ext3. XFS has a great set of tools and is stable. I see no reason not to use it (at home at least).

      --
      Burn Bright or Fade Away
  6. Step 1 by vga_init · · Score: 2, Informative

    Step 1: Install Fedora 9

    OK, all done!

  7. undelete by Nimey · · Score: 4, Informative

    Oh, please. ext2 had "undelete" capability, just as it had filesystem compression capability. Neither were ever implemented.

    --
    Hail Eris, full of mischief...

    E pluribus sanguinem
    1. Re:undelete by jsm300 · · Score: 2, Interesting

      Huh? There are undelete tools for ext2. Undelete is impossible for ext3 since the information needed to do it is gone immediately once a file is removed, whereas it will still be present in a ext2 file system until it gets overwritten as new files are created.

  8. Indulging the prefix war by JustinOpinion · · Score: 4, Insightful

    Of course, in this case you have to balance the confusion stemming from the Tera in IT context meaning 1024 in some cases. It's worse than that. According to SI prefixes, "Tera" should mean 10^12 (1,000,000,000,000), but in common usage applied to computers it sometimes means 2^40 (1,099,511,627,776). But it also sometimes means "1024 Giga", where the Giga could be using either convention (and, for all you know, the "Mega" implied within could have been computed using either convention). So you can get a gradient of "mixed numbers" that conform to neither standard. You might say that only a non-professional would make such a stupid mistake... but on the other hand, if you see a column of numbers listed in "Gigabytes" and you want to convert them to Terabytes, what conversion factor would you use? How would you know what conversion factor the previous author had used? How could you guarantee that you were doing it right? Would you be able to confidently convert it into an exact number of bytes?

    Personally, I think the whole thing is a mess, and computer professionals should be working harder to enforce a consistent scheme. Unfortunately, only a minority of computer professionals seem interested in changing the status quo confusion.

    Maybe a linguist can pitch in to explain why tebibyte sounds so awful? I'm no linguist, but I don't think "Tebibyte" sounding silly is the real problem. I admit that I laughed when I first heard the binary prefixes. They sound lame. But who cares? "Quark" was silly when it was first coined. So was "Yahoo" and "Google" and "Linux" and "WYSIWYG" and "SCSI" and "Drupal" and so on... Silly names become second-nature once they are used enough.

    I think the real problem is that people, inherently, are loathe to change. They are more apt to come up with rationalizations and justifications for doing things "the old way" rather than put in the work to learn (and code!) a new system. Sorry if this sounds harsh, but I find the people who say the binary prefixes "sound dumb" or say that "the current (inconsistent)* system works fine" are just coming up with excuses to avoid doing the work to use a properly consistent standard/notation.

    Maybe you're right, and that if the new prefixes had sounded "cooler", then adoption would have been faster... but I'm not so sure. Even if true, it doesn't absolve any of us for allowing the confusion to persist: cool or not, we (geeks especially!) should have the discipline to use proper standards.

    * The current system can be roughly described as: SI prefixes are powers of 10 everywhere except in computer science, when they become powers of 2. But only when referring to memory, and some data structure sizes, but not when referring to transmission rates or disk space (unless it's a flash drive, sometimes), and other kinds of data structures.
  9. Re:Mere Mortals? by mweather · · Score: 2, Funny

    Do you think the public response would have been different had he been in a bar?

  10. Re:Wait, what? by Waffle+Iron · · Score: 4, Informative
    They're probably using a 64-bit number to hold the timestamp. That gives you 1.8e19 discreet time intervals, so you're going to get ridiculous precision, dates ridiculously far into the future, or both. I assume that they went for precision because that arguably has more potential for use in the real world than worrying about files thousands of years into the future.

    IIRC, today's PCs have high-resolution timers available that surpass the old 14.318MHz clock chip. If you can't get accurate nanoseconds out of the timers yet, they'll just round the numbers off. No big deal.

    BTW, NTFS uses 100ns timestamp granularity, and it was designed when systems were almost 100X slower than today. So it had a similar amount of overkill, but that certainly doesn't seem to have had any negative impact on the acceptance of NTFS.

  11. Re:But does it undelete... by mlwmohawk · · Score: 3, Informative

    The whole "undelete" thing is a DOS FAT stupidity. The *only* reason why people think that you *can* undelete is that the DOS FAT file system was designed in such a way that file changes could be recovered *IF* you managed not to change the file system too much. DOS being a mainly single tasker, with the exception of the standard "indos" flag games.

    POSIX was not and should not be designed in such a way that "undelete" is reliably possible. That's like saying can I unlight that match. Can I unbreak that egg?

    An unreliable system that may, on the odd chance that the file structure has not changed too much, recover files from a disk that have not been over-written yet is no replacement for NOT being an idiot and being careful when you delete something.

  12. Re:Better option: by jdinkel · · Score: 2, Insightful

    Buy a Mac, then won't even be tempted with having a choice of something better.

  13. Why bother? by jabuzz · · Score: 3, Informative

    ext4 is the biggest waste of time and effort in Linux. There are already good extent based filesystems for Linux. Why anyone would consider using what is an experimental filesystem for a multi TB production filesystem is beyond me.

    What ever they do XFS and JFS will have way more testing and use than ext4 will ever have. I just don't get the point of ext4. It would be far more useful to fix the one remaining issue with XFS, the inability to shrink the filesystem none destructively, than to flog the dead horse which is ext2/3 even more with ext4, which is not one disk compatible anyway.

    1. Re:Why bother? by skulgnome · · Score: 3, Insightful

      It has value as an experiment, even if it ultimately doesn't turn into much. These people have ideas, and they want to implement them. They aren't maintenance programmers and should not be shoehorned into that task even at the level of J. Random Person On Slashdot's thought.

      Remember how reiserfs was the first filesystem to have journaling in Linux, and how some people were ready to state that there is no need to do an ext3 any more?

    2. Re:Why bother? by clampolo · · Score: 2, Informative

      As for why we want more choice - look what happened with reiserFS. The development environment now only runs in a chroot jail ...

      Is Reiser4 really a dead project? (no pun intended) Seemed like it was just breaking some kernel coding standards but was working.

      Would be a shame for the project to get scrapped. The performance numbers were great (faster and files were smaller.) ext4 is a LOT less interesting.

  14. Re:But does it undelete... by Anonymous Coward · · Score: 3, Funny

    Perhaps you should try prm (pansy rm) or psh (pansy shell).

  15. Comment removed by account_deleted · · Score: 4, Funny

    Comment removed based on user account deletion

  16. What about comparison to other filesystems? by Khopesh · · Score: 4, Informative

    Those features may be new to ext3, but not to the real competitors. I see nothing that might grant an edge over JFS or XFS. The real justifications will come from performance tests.

    This reminds me of the recent NTFS article here, which actually suggested that since Hans Reiser is in jail and reiser4 is dead, we should consider NTFS. WTF? The ludicrousness of using NTFS as the primary filesystem is further justified in this article by its similar performance to ZFS, but both run in user-space (and are thus horrible in performance), so neither is really an option. What the heck is wrong with JFS and XFS?

    Here are some real comparisons: First, Wikipedia's Comparison of file systems gets you started with a nice mapping of features. Second, a benchmarking of filesystems from 2006 which is still quite applicable (though it doesn't yet cover ext4). What we need is a comparison of EXT4 to XFS and JFS (et al), with EXT2/3 in there for reference.

    Recall that the biggest reason for using ext3 is that it is supported best of all the filesystems. If all hell breaks loose, even Tomsrtbt (an ancient rescue floppy pre-dating knoppix) can fix it. Ext4 breaks this backwards-compatibility to ext2. Therefore, I see no reason to use it. One might as well use something more stable and proven, especially while we lack numbers suggesting it performs as well or better.

    --
    Use my userscript to add story images to Slashdot. There's no going back.
    1. Re:What about comparison to other filesystems? by Sentry21 · · Score: 3, Informative

      If your recovery procedures involve using pre-knoppix floppy recovery tools, you shouldn't be administering any systems with important data on them.

      Aside from the fact that no non-obsolete machine I've seen in the last few years has a disk drive, 'backwards compatibility with ext2' is a pretty lousy minimum requirement for a filesystem.

      Heck, I can do recovery on Ext2/3, ReiserFS, JFS, XFS, and more using only a few-dozen-meg Debian netinstall image. I don't even want to know what an Ubuntu or Knoppix LiveCD could recover from.

    2. Re:What about comparison to other filesystems? by oddfox · · Score: 2, Informative

      Here's an Ext4/XFS/ZFS benchmark

      I would like to see a more recent benchmark that did include JFS/Reiser/etc, though.

      --
      "We invented personal computing." - Bill Gates
  17. Re:But does it undelete... by EvanED · · Score: 2, Informative

    This suggestion is broken for a few reasons. ...

    Fifth, if you delete two files in different directories with the same name, both can't exist in the .Trash directory at the same time.

  18. Re:ext3 tops out at 16GB files? by Firefalcon · · Score: 2, Informative

    This may help (from <a href="http://en.wikipedia.org/wiki/Ext3">Wikipedia's ext3 entry</a>):

    "Block size     Max file size     Max filesystem size
    1KiB         16GiB         2TiB
    2KiB         256GiB         8TiB
    4KiB         2TiB         16TiB
    8KiB         2TiB         32TiB

    It should be noted that the 8 KiB block size is only available on architectures which allow 8 KiB pages (such as Alpha)."

  19. Ext4 still far from stable by Anonymous Coward · · Score: 2, Informative

    The article doesn't say this explicitly enough: if you like to keep your data, DON'T USE EXT4 YET! It is still in highly experimental stage. Try it out, fine... but not as the only copy of your data.

  20. Re:But does it undelete... by Blakey+Rat · · Score: 3, Insightful

    Please.

    The greatest feature of modern software is "Undo." Everything I can screw up on the computer should have an Undo-- that's what the Recycle Bin (or Trash Can for Mac users) is there for, although it's a bit more awkward than pressing control-Z.

    Call it stupidity if you want, but my system files (you know, the ones that file permissions actually protect from malware) are worth approximately zero, and my personal files (the ones that malware can delete no question asked) are worth hundreds of man-hours, if not thousands, and ten times that in dollar value.

    Windows Shadow Copy has an exact template on how to implement it, now go implement it.

    (And yes, I keep backups, as should everybody. But there's no excuse not to use spare disk space as another layer of defense.)

  21. Re:But does it undelete... by Pig+Hogger · · Score: 2, Informative

    In order to delete all your potential trash files you have to do the following (GNOME):

    1. sudo rm -rf $HOME/.Trash/*
    2. sudo rm -rf $HOME/.local/share/Trash/*
    3. for each mounted filesystem, do the following:
    if [ -d "${filesystem}/.Trash-${USER}" ]; then sudo rm -rf "${filesystem}/.Trash-${USER}" ; fi

    Er, no.

    Sorry, but no way I'm gonna have a script that contains "sudo rm -rf" on my system...