Author Topic: Formatting Sd Card.. Fat16 Vs Ext2  (Read 10030 times)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« on: December 06, 2004, 03:24:51 pm »
I have an SL-5500 running standard Sharp Rom 3.13.
My SD card has been formatted as FAT16 and working perfectly.
I formatted it as ext2 (just to see what it would do).
During format I got the message "6269 blocks (5%) reserved for superuser".
A folder was created on the SD card "lost+found".

First, what is the folder for, and second what is the advantage/disadvantage of having the card formatted as ext2?

I seem to have had a bit more space formatted as FAT16.

Thanks, Doug
« Last Edit: December 06, 2004, 03:25:55 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

ThC

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #1 on: December 06, 2004, 04:31:33 pm »
with your card formated as ext2 you can install programs on it, create symlinks, manage rights on it etc ... disadvantage is that you can't use it directly in a camera or with a computer running windows ... there's also some SD cards wich don't work well when ext2 formated (like sandisk's) so if you experience problems with it you'd better switch back to FAT16 or try an "ext2-in-a-file" solution (search the forums for a how-to)
SL-C3000 - pdaXrom 1.1.0Beta1
SL-C860 - pdaXrom 1.1.0 RC8 (charging circuitry dead :( )
CF RamStar 512 Mb / Hitachi 4Gb microdrive (thanks to creative's muvo² :p)
SD Sandisk 1Gb / Viking 256 Mb
Linksys WCF13 CF wifi card

Anyone willing to donate for my work, please consider donate to pdaXrom and/or OE/OZ projects instead, I wouldn't have been able to do anything without them ...

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #2 on: December 06, 2004, 07:17:08 pm »
Quote
with your card formated as ext2 you can install programs on it, create symlinks, manage rights on it etc ...
I have been able to install some (not all) programs on it formatted as Fat16.
I really don't understand all the other stuff.

I also don't know what the "lost+found" folder is.
Any clues?
« Last Edit: December 06, 2004, 07:18:48 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

nmos

  • Newbie
  • *
  • Posts: 48
    • View Profile
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #3 on: December 06, 2004, 09:00:27 pm »
Quote
I also don't know what the "lost+found" folder is.

You know how in Windows when you do an improper shutdown and scandisk runs it dumps a bunch of *.chk files in your root directory?  Well in Linux with Ext2 the equivilant stuff ends up in lost+found.
Santa's elves beat the grinch like a drum.

SL-6000L Standard Sharp rom + Debian +XQT

macroexp

  • Newbie
  • *
  • Posts: 14
    • View Profile
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #4 on: December 21, 2004, 09:53:23 pm »
when you format the card with mke2fs you can pass the option -m 0 and it will not reserve any space for the superuser - this will make df show the "right" size (i.e. the same size you'd see on a fat16 format)

Since I think most Zaurus distributions run as root anyway, I think it is more appropriate to *not* reserve the default 5%, that is, to format using -m 0.

HTH!

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #5 on: December 24, 2004, 01:33:59 pm »
Quote
when you format the card with mke2fs you can pass the option -m 0 and it will not reserve any space for the superuser - this will make df show the "right" size (i.e. the same size you'd see on a fat16 format)
Well, whatever that command is, it did my sd card in.
It is no longer useable on my z.. system info shows it half full when it is empty, and I can't fdisk it or format it to either fat or ext2 on the z.
All I get are error messages for everything...

#umount /dev/mmcda1

#fdisk /dev/mmcda
Unable to open /dev/mmcda

#mkfs.ext2 /dev/mmcda1
mkfs.ext2: Device size reported to be zero. Invalid partition specified, or partition table wasn't rereadable after running fdisk, due to a modified partition being busy and in use. You may need to reboot to re-read your partition table

(rebooting does no good)

#mkfs.mdsos /dev/mmcda1
mkfs.msdos 2.8 (28 Feb 2001)
mkfs.msdos: Attempting to create a too large file system

It works ok on my laptop though... go figure.

Luckly, I have another card that I can use on my z.
I'M LEAVING THAT ONE ALONE!!
« Last Edit: December 25, 2004, 12:19:24 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #6 on: December 26, 2004, 09:52:05 am »
Well, I think I found out what the problem was.
I am running standard Sharp Rom 3.13 on SL-5500.
I had the updated Cacko kernel installed for the battery monitor use.

I re-flashed the ospack WITHOUT the cacko kernel, restored, and now the card seems to work ok.

Apparantly, there is a problem with the kernel that affected it.

I just thought I would pass this along.

Doug
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

macroexp

  • Newbie
  • *
  • Posts: 14
    • View Profile
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #7 on: December 28, 2004, 07:53:25 pm »
very bizarre... glad you got things back working -  I assure you mke2fs is the right way to make an ext2 filesystem, and that -m 0 isn't an option that would make any difference except to the filesystem created... Sounds like the kernel got confused on how to deal with the sd slot...

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #8 on: December 28, 2004, 09:05:52 pm »
Quote
I assure you mke2fs is the right way to make an ext2 filesystem, and that -m 0 isn't an option that would make any difference except to the filesystem created...
I used mkfs.ext2   --not--   mke2fs.
I didn't even realize there was a mke2fs.
I guess this was my mistake.
« Last Edit: December 28, 2004, 10:02:40 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

macroexp

  • Newbie
  • *
  • Posts: 14
    • View Profile
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #9 on: December 28, 2004, 10:17:52 pm »
Quote
Quote
I assure you mke2fs is the right way to make an ext2 filesystem, and that -m 0 isn't an option that would make any difference except to the filesystem created...
I used mkfs.ext2   --not--   mke2fs.
I didn't even realize there was a mke2fs.
I guess this was my mistake.
ah, well, one should be a symbolic link to the other - I don't think that could've made any difference.

Cassie6

  • Newbie
  • *
  • Posts: 3
    • View Profile
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #10 on: April 15, 2005, 05:15:43 pm »
Quote
Quote
Quote
I assure you mke2fs is the right way to make an ext2 filesystem, and that -m 0 isn't an option that would make any difference except to the filesystem created...
I used mkfs.ext2   --not--   mke2fs.
I didn't even realize there was a mke2fs.
I guess this was my mistake.
ah, well, one should be a symbolic link to the other - I don't think that could've made any difference.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=59458\"][{POST_SNAPBACK}][/a][/div]
 Hi there, I am quite (very) new in using more linux on my sl5500 with ROM3.1. Some time ago I placed sd=card but without any practical usage, sofar. Sionce my successful rom-upgrade I want to run more programms. So now I want to use this sd-card, but how do I format it, using which program? Please help me out, I am just less than a novice with Linux. thnx

Ram

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #11 on: May 02, 2005, 07:02:35 pm »
Quote
Well, whatever that command is, it did my sd card in.
It is no longer useable on my z.. system info shows it half full when it is empty, and I can't fdisk it or format it to either fat or ext2 on the z.
All I get are error messages for everything...

#umount /dev/mmcda1

#fdisk /dev/mmcda
Unable to open /dev/mmcda

#mkfs.ext2 /dev/mmcda1
mkfs.ext2: Device size reported to be zero. Invalid partition specified, or partition table wasn't rereadable after running fdisk, due to a modified partition being busy and in use. You may need to reboot to re-read your partition table

(rebooting does no good)

#mkfs.mdsos /dev/mmcda1
mkfs.msdos 2.8 (28 Feb 2001)
mkfs.msdos: Attempting to create a too large file system

It works ok on my laptop though... go figure.

Luckly, I have another card that I can use on my z.
I'M LEAVING THAT ONE ALONE!!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=58899\"][{POST_SNAPBACK}][/a][/div]

My SD Cards is stuffed, it's stuck in Read Only mode, unable to reformat it with the Z or from Windows / Linux Desktops. Taking it to work in the morning, maybe someone may have a Camera that will format it.

Ram
SL-5500, tkc Rom, 256mb Panasonic SD Card(Broken) Currently using 256 Scandisk, 64mb CF Card with slow USB Networking. Plus 1 dead SL-5000d :(

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #12 on: May 02, 2005, 08:09:12 pm »
Quote
My SD Cards is stuffed, it's stuck in Read Only mode, unable to reformat it with the Z or from Windows / Linux Desktops.
Did you check the little switch on the side that locks it in read only? I only ask because I have read where some users have found this locked! ('slightly moved'... enough to lock)

Greg

Ram

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://
Formatting Sd Card.. Fat16 Vs Ext2
« Reply #13 on: May 03, 2005, 08:35:38 am »
Quote
Quote
My SD Cards is stuffed, it's stuck in Read Only mode, unable to reformat it with the Z or from Windows / Linux Desktops.
Did you check the little switch on the side that locks it in read only? I only ask because I have read where some users have found this locked! ('slightly moved'... enough to lock)

Greg
[div align=\"right\"][a href=\"index.php?act=findpost&pid=77949\"][{POST_SNAPBACK}][/a][/div]

Switch checked numerus times, I asked a friend to see if he can format it in his camera.

Ram
SL-5500, tkc Rom, 256mb Panasonic SD Card(Broken) Currently using 256 Scandisk, 64mb CF Card with slow USB Networking. Plus 1 dead SL-5000d :(