Author Topic: pros and cons of formating sd as ext2  (Read 3200 times)

bing

  • Newbie
  • *
  • Posts: 12
    • View Profile
pros and cons of formating sd as ext2
« on: June 21, 2004, 08:57:28 pm »
i just bought a 256MB SD card. thought i should hear opinions from fellow z users on the pros and cons of fat16 and ext2 on the card.

i guess one immediate advantage of using fat16 on the card is that i can insert it to a card reader attached to a windows desktop and access the data on the card conveniently.

but what about installing programs on the card? if i format it as ext2 and mount it, say, as /usr/local/bin, would that allow me to install programs on the card instead of in the internal memory?

your comments will be appreciated.
C860 with dynamism English conversion, 256MB Sandisk SD, Linksys CF WiFi card, nightly backup with ssh+rsync+burp

guest1

  • Guest
pros and cons of formating sd as ext2
« Reply #1 on: June 23, 2004, 06:36:50 pm »
anybody is able to read the followup post by tz on this subject?

==
pros and cons of formating sd as ext2
 bing 1 78 22nd June 2004 - 11:36 AM
Last Post by: tz

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
pros and cons of formating sd as ext2
« Reply #2 on: June 24, 2004, 12:39:27 am »
Quote
anybody is able to read the followup post by tz on this subject?

==
pros and cons of formating sd as ext2
 bing 1 78 22nd June 2004 - 11:36 AM
Last Post by: tz
this missing post was either deleted by tz (unlikely) or the tragic effect of the conversion/resync mishap from yesterday (see this thread)

tz - I apologize if your post was deleted
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
pros and cons of formating sd as ext2
« Reply #3 on: June 24, 2004, 08:06:20 am »
Quote
but what about installing programs on the card? if i format it as ext2 and mount it, say, as /usr/local/bin, would that allow me to install programs on the card instead of in the internal memory?

You could do that, or just install programs to the card via ipkg or the graphical package manager then they will be symlinked (this is probably the easier way).

ext2 is required (not strictly true, but true enough to make it painfuo otherwise) if you want to install most apps to the card.

There are no real advantages to fat16, except as you say being able to take the card out and put it in a card reader (or using usb-storage on a Windows machine). Note that on a Linux box you could also use usb-storage and a card reader with an ext2 formatted partition.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
pros and cons of formating sd as ext2
« Reply #4 on: June 24, 2004, 08:46:09 am »
Quote
There are no real advantages to fat16, except as you say being able to take the card out and put it in a card reader (or using usb-storage on a Windows machine). Note that on a Linux box you could also use usb-storage and a card reader with an ext2 formatted partition.


Si
The biggest advantage that fat16 has over ext2 (apart from the obvious that windows doesn't natively support ext2) is that fat16 doesn't go belly up if you are forced to shutdown the Z without unmounting the card first.

Ext2 is highly suspectible to filesystem corruption if it is not cleanly unmounted - this means that you can't just remove the card from the Z (even when turned off) and stick it into a card reader - it may mount cleanly or you may need to fsck it. This is one of the reasons that the big name linux distros are moving to journalling filesystems like ext3 or Reiserfs.

That being said, if you want to make use of symlinks and file permissions then fat16 is not what you want. Also fat16 has a tendancy to change the case of file names to lower case which may cause some problems as linux is case sensitive with regards to file names - unlike windows.

If you are going to be changing cards a lot then I'd suggest stiking with fat16, if you want ot install apps on sd card and will remember to unmount before removing the card the go with ext2

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

bing

  • Newbie
  • *
  • Posts: 12
    • View Profile
pros and cons of formating sd as ext2
« Reply #5 on: July 07, 2004, 10:34:47 pm »
thanks guys for the information and advice. i decided to stick with fat16 and i have had no problem making symbolic links and etc.

some packages allow me to install to the card directly. for those that don't, i just install them to the internal main memory and then move the binaries to the card - i have a bin directory on the card and it is symlinked to /home/zaurus/bin and is in the path. so i have no problem executing programs from the card.
C860 with dynamism English conversion, 256MB Sandisk SD, Linksys CF WiFi card, nightly backup with ssh+rsync+burp

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
pros and cons of formating sd as ext2
« Reply #6 on: July 07, 2004, 11:26:34 pm »
You can make symlinks from fat16 to the main memory, but you can't make a symlink on fat16 (it just doesn't support it). That is why some apps won't install to SD or CF, they need to make symlinks on the SD or CF, but can't if they are fat16 formatted.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

bing

  • Newbie
  • *
  • Posts: 12
    • View Profile
pros and cons of formating sd as ext2
« Reply #7 on: July 08, 2004, 12:14:35 am »
stu, you are right. it doesn't work. but that's not what i wanted to do anyways. so i am fine as long as i can symblink directories from the card to the main memory. :-)
C860 with dynamism English conversion, 256MB Sandisk SD, Linksys CF WiFi card, nightly backup with ssh+rsync+burp