Author Topic: Which filesystem?  (Read 2530 times)

dsavard

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://
Which filesystem?
« on: November 11, 2004, 10:14:48 am »
I just received my 1GB Lexar SD Card and I would like to know which filesystem is preferrable to format it?

I don't plan to use this SD card in any non-Linux device, so I don't see any need to stick with the FAT format, unless there is an obscur reason for such a choice.

I am planning to eventually switch to OZ or at last experiment with. Is there any problems flashing from a SD and/or CF storage other than FAT?

Which filesystems are supported? Any problems when suspending/resuming?

So, I am seeking for you advise.
JID: AchilleTalon-myjabber.net[/font]
___________________________________
Zaurus SL-6000L
HAiCOM HI-303 MMF CF GPS Receiver
Targus Universal Wireless Keyboard
Verbatim SD 64 MB
Lexar 32x 1GB SD
Lexar 4x 1GB CF
Sharp CE-170TS Serial cable
___________________________________

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Which filesystem?
« Reply #1 on: November 11, 2004, 11:10:20 am »
If you want to switch ROMs you do need a FAT-formatted card for that. For the 5500 it has to be a CF card, I don't know about the 6000. If you flash from SD the first partition on your SD card will need to be FAT (but you can have multiple partitions - check ZUG howtos).

There is one good reason to have a non-FAT filesystem: FAT does not support symbolic links (making the computer believe a file is somewhere when in reality it is somewhere else). These are necessary for some programs' function and such programs cannot be installed to a FAT-formatted card.

As for which filesystem is the best: JFFS2 was developed specifically for flash cards and has some nifty features (uniform wear distribution, write minimization). I believe OZ supports it though I'm not sure (and I definitely don't know about other ROMs). The other choice is ext2 which is definitely supported in OZ and elsewhere.

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

el_borak

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
Which filesystem?
« Reply #2 on: November 11, 2004, 01:13:48 pm »
Quote
As for which filesystem is the best: JFFS2 was developed specifically for flash cards and has some nifty features (uniform wear distribution, write minimization).
No, jffs2 was specifically designed for writing to embedded flash, not to removable flash cards.  These already have their own levelling and wear algorithms.

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Which filesystem?
« Reply #3 on: November 11, 2004, 04:34:15 pm »
Thanks for the clarification. One learns something new every day
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

nexxusone

  • Newbie
  • *
  • Posts: 25
    • View Profile
Which filesystem?
« Reply #4 on: November 18, 2004, 01:14:26 pm »
I'll be receiving my 1GB SD card shortly. I'm really considering Ext3. Are there any reasons why I should definitely NOT do this? I plan to use my Z largely for emergency support situations, and waiting 20 minutes for fsck is something I'd rather not do.

Thanks!

thesing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Which filesystem?
« Reply #5 on: November 18, 2004, 04:54:03 pm »
AFAIR it is not good to use a journaling fs like ext3, because it writes quite often to the same sectors.
Cheers,
Thomas

SL5500G Angstrom-unstable with Kernel 2.6 in devellopment
C3100 mostly occupied by my girlfriend ;)

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Which filesystem?
« Reply #6 on: November 18, 2004, 05:52:22 pm »
Actually I prefer ext3 although if you have a card large enough to accomodate the loss with the minimum journal size reiserfs (again if you have a module/kernel support) may be worth a look.

Judging from the information that kopsis posted regarding write spreading technology present on SD cards I don't see that having a journal based fs is cause for concern in wearing out cards prematurely.

ref. How to format a CF or SD as ext3 under Cacko, and why ext3 is better than ext2

I would much rather my data was intact and if I do crash the Z the journal will pick that up. I have a 512Mb SD card at the moment that I have run for quite a while on ext3 and it's been great, I'm waiting for a 2Gb SD card to come through any day now for about 1.5x the price I paid for the 512Mb card so I think I'm much more likely to change the card before it wears out.

Now you may think I'm more extravagant than most with the card purchases but wear times are being quoted in the range of tens of years because of the write spreading technology so I think my philosophy on cards is probably safe for most people.

- Andy
« Last Edit: November 18, 2004, 05:59:50 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card