EXT4 on USB Pen Drive - Will Journaling seriously hurt it?

Discussion in 'Off Topic Discussion' started by Trenton_net, Jun 12, 2016.

  1. Trenton_net

    Trenton_net AKA SUPERCOM32

    Joined:
    Apr 13, 2007
    Messages:
    2,378
    Likes Received:
    58
    Hey everyone,

    So I have this USB pen drive from Kingston that I've installed Linux on. These days with wear leveling, do I need to be worried about journalling and it killing my drive prematurely? Some people say they disable journalling at the expense of data integrity (if you don't unmount clean all the time or something), but maybe the 'cost' of journalling is worth it, since wear leveling and the life of your USB drive will be longer than any amount of damage journalling could do?

    Any computer experts here want to weigh in on this? :)
     
  2. MNKyDeth

    MNKyDeth Member

    Joined:
    Jan 16, 2016
    Messages:
    10
    Likes Received:
    1
    I run Linux on all my computers and servers except one Trenton_net. My advice, keep the journaling. Buy another usb stick and dd the stick you use normally to the new (backup) one. This way if there is ever an issue you can just slap in the backup usb stick.

    You can disable the journaling if you like.
    http://fenidik.blogspot.com/2010/03/ext4-disable-journal.html

    I mean, usb sticks are what $10-30 depending on size?

    Lots of info out there on dd

    http://serverfault.com/questions/141283/how-to-clone-a-usb-flash-drive-using-dd
     
  3. rso

    rso Gone. See y'all elsewhere, maybe.

    Joined:
    Mar 26, 2010
    Messages:
    2,190
    Likes Received:
    447
    Don't worry about it. Most likely scenario, you'll buy a new stick because this one's become too small before it wears out, unless you generate enough data to completely overwrite the whole stick every 1-2 days.
     
  4. Trenton_net

    Trenton_net AKA SUPERCOM32

    Joined:
    Apr 13, 2007
    Messages:
    2,378
    Likes Received:
    58
    Ah I see. Do you guys think that disabling Journaling would increase performance by a significant amount on a USB pen drive (3.0)? I assume the benefits I would receive would be marginal?
     
  5. sp193

    sp193 Site Soldier

    Joined:
    Mar 28, 2012
    Messages:
    2,217
    Likes Received:
    1,052
    USB 3.0 is 5Gbit. Is your thumb drive really a USB 3.0 device?
    Anyway, it is 5Gbit, nearly as fast as SATA II. If your device is really that fast, I doubt that you would notice a difference between your USB disk and an internal HDD.

    Filesystems are usually designed to have minimal overhead. I wouldn't think that journaling would cause that much of a performance impact, that it would be a cause of concern.
     
  6. rso

    rso Gone. See y'all elsewhere, maybe.

    Joined:
    Mar 26, 2010
    Messages:
    2,190
    Likes Received:
    447
    As sp said, the difference is minimal. But why not do your own measurements? You can freely toggle journalling on existing partitions.

    If you really need performance: The bottleneck is flash access, so go with an external SSD instead of a (physically) tiny thumb drive = more flash chips to access in parallel = moar fastar.
     
  7. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    Just because usb 3 is 5gb, that doesn't mean all devices attached to it are 5gb...
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page