Might be worth deleting all of the existing partitions before you start creating new ones.
I did that previously... I just forgot to show it.
Also you could try setting the partition type (type m to see what the command should be).
"l" if the command to "list known partition types". It lists 24*4=96 different parition types. I was looking for FAT16 (so that Windows and my digital camera would be able to read it too), but there appear to half a dozen variations of FAT16 in the list, and I don't know which one it is.
When I load up FDISK, it says:
# fdisk /dev/mmcda1
Warning: invalid flad 0x0000 of partition table 5 will be corrected by w(rite)
Command (m for help):
Does that mean that the partition was created incorrectly?
I would have suggested that you made a primary partition but it shouldn't stop you from doing what you are doing.
I agree. I should've gone with primary. I wasn't thinking. If the partition were on the internal flash then it would have to be extended, but this is a separate card, so it wouldn't have needed to be extended. I've gone through this whole process maybe a dozen times anyways and I'll probably do it again, so next time I'll make it primary.
try..
mount -t ext2 /dev/mmcda1 /mnt/card
# mount -t ext2 /dev/mmcda1 /mnt/card
mount: Mounting /dev/mmcda1 on /mnt/card failed: invalid argument
You should find that suspending the Z with the card in (or inserting the card) causes a mount that works fine.
Suspended and restored the unit and the card still wasn't mounted. Also tried reinserting it.
I was in SU when I suspended the unit. Whne it came back on, it said:
#
[1]+  Stopped     su
bash-2.05$
I assume that linux doesn't let SU exist through a suspend/restore. ...but when I type "exit", I have to type it like 3-4 times and it keeps telling me that there are stopped jobs.
BTW: If you are using the Cacko 1.21b ROM then I would suggest ext3 is a better choice.
I'm still hoping for FAT16... since that's what the digital cameras use and Windows would recognize it.
Use..
mke2fs -j /dev/mmcda1
for ext3 - you do need a ROM/Kernel with an ext3 module though.
Is there a FAT16 solution? Which MKFS command is used for FAT16? (I couldn't find a good format command for it)
I would suggest a new partitioning scheme starting with the 'o' command in fdisk to clear the existing table, create a new primary partition (number 1) that uses the whole card, use the w command to write the table and you are ready to mke2fs.
Final BTW: The version of mke2fs that mkfs is chaining to is not the version from the IPK, it's not showing 1.35, it is showing 1.19. Try using mke2fs instead of mkfs, I think that your mkfs may be linking against a previous version of mke2fs (not sure but there may be one present in the busybox util).
# fdisk /dev/mmcda1
Warning: invalid flad 0x0000 of partition table 5 will be corrected by w(rite)
Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous content won't be recoverable.
Warning: invalid flad 0x0000 of partition table 5 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1005, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1005, default 1005): 1005
Command (m for help): p
Disk /dev/mmcda1: 1038 MB, 1038352896 bytes
32 heads, 63 sectors/track, 1005 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/mmcda1p1 1 1005 1013008+ 83 Linux
Command (m for help):
Ah.... I just I've figured out something... I need to now change the System ID of the partition from "Linux" to somehting else... I'll try FAT16 (ID: 6).
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 6
Changed system type of partition 1 to 6 (FAT16)
Command (m for help): w
The partition table has been altered!
Calling ioct1() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
#
Ok... now how do I format it to 1 GB FAT16 in the terminal?
# mkfs.vfat /dev/mmcda1
mkfs.vfat 2.8 (28 Feb 2001)
# mount /dev/mmcda1
#
The card shows up!
bash-2.05$ cd /mnt/card
bash-2.05$ mkdir test
mkdir: Cannot create directory 'test': Read-only file system
bash-2.05$
We've now come in full circle. This is what I got previously when I put the card in the Zaurus directly from the having formated it in my Digital Camera (via Windows).
Why does Linux think this is a read-only file system? I think THAT might be the real problem here... Did I choose the wrong Partition type? (If so, which FAT16 in the long list should I have chosen?). ...Does the Zaurus work with Fat16 MMC/SD cards?... or is everyone going to EXT2/3?
Also, what's the advantage of EXT2/3 over FAT16? Does it have a journaling filesystem? What else?
Thanks for your help!!