Author Topic: Fubar'd My 4 Gb Sd -- Please Help  (Read 2949 times)

sleepy

  • Newbie
  • *
  • Posts: 33
    • View Profile
Fubar'd My 4 Gb Sd -- Please Help
« on: May 08, 2006, 11:22:40 pm »
Hey folks,

I picked up a 4 GB SD card which worked wonderfully with Cacko using the new SD module and also worked out of the box  with OZ GPE 3.5.4.1-beta2 (A-data 150X -- ~ $100 USD from zipzoomfly.com). Of course, not willing to leave well enough alone I decided I want to format it ext2 to faciliatate symlinking on the card. So, after foolishly messing about with mkfs.ext2 and fdisk on my linux machine I now have a SD card that thinks it's 1 GB  

Ideally I would like a 4 GB ext2 card but right now I would love to have it back to it's old 4 GB vfat self. I'm hoping that some fdisk guru can walk me through some incantation to restore it back to the right cylinder size, # of sectors, etc. If anyone has any other ideas I'm all ears -- you'll have my undying gratitude.

Thanks,
Sleepy

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Fubar'd My 4 Gb Sd -- Please Help
« Reply #1 on: May 09, 2006, 02:35:19 am »
easy....boot up your handheld and stick in your sd card.
open up terminal

okay do this first.
Code: [Select]
su
fdisk /dev/mmcda1
d
1
d
2
d
3
d
4
the d=delete and the 1-4 reffers to the partitions you created.  delete all

now create your partition table
Code: [Select]
n
p
1
1
988(this part select the highest number which will tell you in the line..so for my 2gb i did 988 cuz it asks me 1-988----and yours the number is much higher.this part is self explanatory)

now you are ready to create type of format.

Code: [Select]
t
6
w
the t=change partition id, 1=selects partition you want to mess with, 6=tells it to do fat16, w=tells it to write.
now you have fat16.  you must reboot or what ever so your permissions can revert back to normal.  I dont want to bable on changing permmissions.

and another thing, this should not be here.  should be in oz forums.  this is the sharprom forums.  
« Last Edit: May 09, 2006, 03:04:10 am by Cresho »
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

sleepy

  • Newbie
  • *
  • Posts: 33
    • View Profile
Fubar'd My 4 Gb Sd -- Please Help
« Reply #2 on: May 09, 2006, 04:38:54 pm »
Quote
easy....boot up your handheld and stick in your sd card.
open up terminal

okay do this first.
Code: [Select]
su
fdisk /dev/mmcda1
d
1
d
2
d
3
d
4
the d=delete and the 1-4 reffers to the partitions you created.  delete all

now create your partition table
Code: [Select]
n
p
1
1
988(this part select the highest number which will tell you in the line..so for my 2gb i did 988 cuz it asks me 1-988----and yours the number is much higher.this part is self explanatory)

now you are ready to create type of format.

Code: [Select]
t
6
w
the t=change partition id, 1=selects partition you want to mess with, 6=tells it to do fat16, w=tells it to write.
now you have fat16.  you must reboot or what ever so your permissions can revert back to normal.  I dont want to bable on changing permmissions.

and another thing, this should not be here.  should be in oz forums.  this is the sharprom forums. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126239\"][{POST_SNAPBACK}][/a][/div]

Brilliant! Worked like a charm  

Sorry about the offtopic post  

Sleepy

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Fubar'd My 4 Gb Sd -- Please Help
« Reply #3 on: May 09, 2006, 05:10:23 pm »
Really?  you actually understood it?  
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

sleepy

  • Newbie
  • *
  • Posts: 33
    • View Profile
Fubar'd My 4 Gb Sd -- Please Help
« Reply #4 on: May 09, 2006, 10:28:25 pm »
Quote
Really?  you actually understood it?   
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126318\"][{POST_SNAPBACK}][/a][/div]

Actually, I had tried to do the same on my laptop running Ubuntu but fdisk thought it was a 1 GB card (kernel 2.6.15.1). I'm guessing the 2.6.16 that comes with OZ allows fdisk to properly recognize the full 4GB. I did decide to format it ext2 instead of fat16 for improved flexibility (partition type 83 followed with an mkfs.ext).

Just so this isn't totally offtopic, the card did work well with Cacko 1.23 as well (C1000) but with Tetsu's updated sd driver package.

Thanks again for your help  

Sleepy