ext2 on flash memory
Eduard-Gabriel Munteanu wrote:
(...)
Quoted 5 lines
Your USB pendrive will wear faster if you use an inappropriate filesystem. Such filesystems require frequent writes and change their internal state often.
This could be alleviated by COWing the filesystem somehow and flushing writes when you're finished. But the modifications will be lost if crashes occur. The filesystem structures will still change a lot and require big writes to update it.
Really, why don't you try a more suitable fs for your pendrive, one that changes itself less than usual fs's?
Hmm, are there any fs (read+write) alternatives for pendrives?
jffs2 only works on mtd devices, and that excludes pendrives, which are block devices. I know LogFS will work with block devices one day, but currently, it doesn't (and is not in the kernel yet as well).
Also, ext2 provides a nice feature other filesystems lack: xip. Especially, if a pendrive is used as a rootfs for a small device.
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Quoted 2 lines · Tomasz Chmielewski
Also, ext2 provides a nice feature other filesystems lack: xip. Especially, if a pendrive is used as a rootfs for a small device.
Well, xip cannot work on NAND flash media, including USB pen drives, because the data is not mapped into the addressable memory space, so that is not really an interesting argument.
Arnd <><
Quoted 4 lines · Tomasz Chmielewski
jffs2 only works on mtd devices, and that excludes pendrives, which are block devices. I know LogFS will work with block devices one day, but currently, it doesn't (and is not in the kernel yet as well).
Actually, LogFS does work on block devices now. Performance on hard disks is quite bad. Hopefully that becomes untrue just as fast as your slightly outdated claim. :)
Jörn
Signature · 3 lines
Measure. Don't tune for speed until you've measured, and even then don't unless one part of the code overwhelms the rest. -- Rob Pike
Quoted 6 lines · Jörn Engel
Quoted 1 line · Tomasz Chmielewski
jffs2 only works on mtd devices, and that excludes pendrives, which are block devices. I know LogFS will work with block devices one day, but currently, it doesn't (and is not in the kernel yet as well).
Actually, LogFS does work on block devices now. Performance on hard disks is quite bad. Hopefully that becomes untrue just as fast as your slightly outdated claim. :)
Cool, does it mean we have the first Linux filesystem supporting compression, which can be used on USB-sticks (I don't count old ext2+compression patches)? :)
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Quoted 4 lines · Tomasz Chmielewski
Cool, does it mean we have the first Linux filesystem supporting compression, which can be used on USB-sticks (I don't count old ext2+compression patches)? :)
Indeed it does.
Jörn
Signature · 2 lines
Anything that can go wrong, will. -- Finagle's Law
Hi Jörn :)
* Jörn Engel <[email protected]> dixit:
Quoted 6 lines · Tomasz Chmielewski
Quoted 3 lines
Cool, does it mean we have the first Linux filesystem supporting compression, which can be used on USB-sticks (I don't count old ext2+compression patches)? :)
Indeed it does.
When do you think it will be included mainstream?
Raúl Núñez de Arenas Coronado
Signature · 2 lines
Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen!
Quoted 2 lines · DervishD
When do you think it will be included mainstream?
I am horrible at predictions, doubly so when concerning the future.
Several people believe it is good enough for -mm inclusion now. So it might make it for 2.6.23 or 2.6.24.
Jörn
Signature · 3 lines
There is no worse hell than that provided by the regrets for wasted opportunities. -- Andre-Louis Moreau in Scarabouche
Hi Jörn :)
* Jörn Engel <[email protected]> dixit:
Quoted 7 lines · DervishD
Quoted 1 line
When do you think it will be included mainstream?
I am horrible at predictions, doubly so when concerning the future.
Several people believe it is good enough for -mm inclusion now. So it might make it for 2.6.23 or 2.6.24.
I don't really give a heck about that, because I will be using that
pendrive only in my system, but I think that pendrives are pretty common nowadays, and using FAT with them is a waste. I don't like losing my metadata just because I have to copy my data on a pendrive. So it's good to see this filesystem mainstream'ed, it will be very good for small distros (specially now that most of mobos allow booting from USB sticks).
A pity that my digital camera won't want to use LogFS :((
Raúl Núñez de Arenas Coronado
Signature · 2 lines
Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen!
Quoted 2 lines · DervishD
A pity that my digital camera won't want to use LogFS :((That's quite ok, actually. FAT is perfect for digital cameras. All the unix file permissions, different owners/groups, etc. just get in the way. And wearout is not a problem in a digicam anyway.
Jörn
Signature · 2 lines
You can take my soul, but not my lack of enthusiasm. -- Wally
Hi Jörn :)
* Jörn Engel <[email protected]> dixit:
Quoted 6 lines · DervishD
Quoted 1 line
A pity that my digital camera won't want to use LogFS :((That's quite ok, actually. FAT is perfect for digital cameras. All the unix file permissions, different owners/groups, etc. just get in the way. And wearout is not a problem in a digicam anyway.
Yes, but I would like to share my SD and CF cards between Linux and
my camera without having to use FAT for that. Not very bad, anyway, but...
Raúl Núñez de Arenas Coronado
Signature · 2 lines
Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen!