Author Topic: Ext2 On A Cf Card  (Read 2805 times)

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Ext2 On A Cf Card
« on: December 15, 2004, 05:02:34 pm »
hi !

I would like to format my 256Mo CF card to ext2 in order to stock progs on it. I try to follow those instructions from pdaxrom homepage

Code: [Select]
When i'm installing programs(IPKs) to SD or CF card it fails?

A:
You must format the SD/CF card to ext2:
Format CF:
umount /dev/hda1
mkfs.ext2 /dev/hda1
mount /dev/hda1 /mnt/cf
Format SD:
umount /dev/mmcda1
mkfs.ext2 /dev/mmcda1
mount /dev/mmcda1 /mnt/card

but it does'nt work...

Code: [Select]
# umount /dev/hda1
umount: /dev/hda1 not mounted
# mkfs.ext2 /dev/hda1
mke2fs 1.34 (25_Jul_2003)
/dev/hda1 is mounted; will not make a filesystem here!

   Any idea ?

ThC

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
    • http://
Ext2 On A Cf Card
« Reply #1 on: December 15, 2004, 05:15:06 pm »
check you're not in /mnt/cf whiletrying these ... you could also try umount /mnt/card instead of /mnt/hda1 ... in last resort you can edit your /etc/fstab, comment the line which is mounting /dev/hda1 and reboot your Z (without the card) then re-insert it, format and then uncomment the line ... btw you shouldn't have to come to that
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 ...

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Ext2 On A Cf Card
« Reply #2 on: December 15, 2004, 05:20:24 pm »
tried with umount /mnt/card but then mkfs gives me the same while i am in the / directory...

murple

  • Newbie
  • *
  • Posts: 24
    • View Profile
Ext2 On A Cf Card
« Reply #3 on: December 15, 2004, 07:17:19 pm »
I dont know if its the same setup as with SDs, but when you format a SD its
/dev/mmcd/disc0/part1  rather than /dev/mmcda1

the cf might be similar to that, something like
/dev/hda/part1, /dev/hd/disc0/part1 or some such thing

just a stab in the dark tho
« Last Edit: December 15, 2004, 07:18:24 pm by murple »
[span style=\'font-size:8pt;line-height:100%\']--murple

...Duffman is thrusting in the direction of the problem!

860 pdaXrom rc5 / 1gb Transcend SD / Socket WiFi
6000L Sharp Rom / 256 SimpleTech SD / 4gb Microdrive
Linksys WCF12 WiFi, Pretec CF LAN
[/span]

conundrum

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Ext2 On A Cf Card
« Reply #4 on: December 15, 2004, 07:56:18 pm »
Murple, took me a while to see what I was doing wrong with pdaXrom and the SD card.  OpenZaurus was just /dev/mmcda.

Anyway, I sacrificed a CF card to test, and it works fine for me.  RC5/C860

Maybe you should try it without X.  Also, might as well do
Code: [Select]
cardctl status 0 and make sure its not some big problem.

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Ext2 On A Cf Card
« Reply #5 on: December 15, 2004, 07:56:19 pm »
Quote
I dont know if its the same setup as with SDs, but when you format a SD its
/dev/mmcd/disc0/part1  rather than /dev/mmcda1

the cf might be similar to that, something like
/dev/hda/part1, /dev/hd/disc0/part1 or some such thing

just a stab in the dark tho
Stab in the dark indeed   No, it's /dev/hda1.  Check the output of 'mount' with no arguments, it shouldn't show the cf card as mounted.

Dave

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Ext2 On A Cf Card
« Reply #6 on: December 16, 2004, 01:16:22 pm »
thanks guys ! it works ! Dunno what happended, but after many many tries, and finally a reboot, it worked !

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Ext2 On A Cf Card
« Reply #7 on: December 16, 2004, 01:16:39 pm »
thanks guys ! it works ! Dunno what happended, but after many many tries, and finally a reboot, it worked !

EDIT :

Man ! progs on the CF card are sooooooooo slow.... Plus everything doesn't work properly out of the box... Not so sure anymore it was a good idea...
« Last Edit: December 16, 2004, 03:53:13 pm by alan »

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Ext2 On A Cf Card
« Reply #8 on: December 23, 2004, 04:22:18 pm »
oki, it was definitly a bad idea... my cf card is much to slow...

now, how do i revert back ? mkfs.msdos ? mkfs.vfat ?

conundrum

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Ext2 On A Cf Card
« Reply #9 on: December 23, 2004, 10:05:56 pm »
Why don't you try before asking?  mkfs.vfat