Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does it make sense to format USB sticks with JFFS2?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Aug 05, 2008 9:54 pm    Post subject: Does it make sense to format USB sticks with JFFS2? Reply with quote

... as JFFS2 is there only to put a filesystem directly on a flash card. USB sticks do have their own intermediate layer, am I right? So is it advisable to format just about any USB memory stick?

Thanks in advance.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
jstead1
Guru
Guru


Joined: 01 Aug 2003
Posts: 427
Location: Oswego, NY where the snow is deep

PostPosted: Wed Aug 06, 2008 3:23 am    Post subject: Reply with quote

I am not familiar with JFFS2, but you should be able to format a USB drive with pretty much any file system. One thing that will help prolong the life of the USB drive is to disable access times (atimes). Otherwise, every time a file is accessed, the drive is updated with the latest access time, causing more writes on the drive. Unless knowing access times is important, it would be best to use a file system where access times are not used, or can be disabled.
_________________
jim
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Aug 06, 2008 8:06 am    Post subject: Reply with quote

jstead1 wrote:
I am not familiar with JFFS2, but you should be able to format a USB drive with pretty much any file system. One thing that will help prolong the life of the USB drive is to disable access times (atimes). Otherwise, every time a file is accessed, the drive is updated with the latest access time, causing more writes on the drive. Unless knowing access times is important, it would be best to use a file system where access times are not used, or can be disabled.

Thanks for the info. In fact I knew that access times were as lethal as you described. I asked the question because I read someone asking almost the same question and the reply was there is no need to use JFFS2 on USB pen drives. (Probably because there was already a certain level of abstraction inbetween; at least this is how I understood the answer.)

The purpose of JFFS2 is to spread block writes across all the available blocks to prevent writing to the same ones all over again.

An interresting question is about atimes: when I mount a device and I'm using XFCE4 the filesystems are mounted automatically. I have no fstab entry for these. So am I supposed to write UDEV rules to add the "don't use atimes" mount option or should every Desktop Manager be able to handle that? (I would be glad to see Desktop Manager handle that for me or at least provide options to disable access times. Putting an entry in fstab would kind of decrease flexibility to me...)
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Aug 06, 2008 2:40 pm    Post subject: Reply with quote

Quote:
The purpose of JFFS2 is to spread block writes across all the available blocks to prevent writing to the same ones all over again.


In most cases this is already done by the USB stick (should be called wear leveling) so doing it a second time is probably counter productive.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Aug 08, 2008 11:10 pm    Post subject: Reply with quote

drescherjm wrote:
Quote:
The purpose of JFFS2 is to spread block writes across all the available blocks to prevent writing to the same ones all over again.


In most cases this is already done by the USB stick (should be called wear leveling) so doing it a second time is probably counter productive.

Thanks, this is also what I understood after reading the post I talked about. If I've understood JFFS2 is usefull only when directly accessing the Flash memory hardware, i.e. without intermediate layers like the ones we have with USB flash memories.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum