LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 04-26-2007, 05:58 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
I screwed up a 4gb mmc card


hi,

i bought myself one of these... http://www.mobymemory.com/proddetail.asp?prod=TS4GBMMC4 the other week, 4gb MMCplus card for my phone. and somehow, i *think* via fdisk i recreated a default partition table on it, which changed the reported geometry of the card. i can't remember the original specs but it now lists it as a 1014mb card, 1015 cylinders of 1mb each. i can put a partition on it and format it (ends up at about 970mb), but can't copy any data to it at all, which doesn't really seem that suprising.

anyone have any ideas how i may be able to revert the geometry to something legitimate? is this somehow related to the fact that it's a MMCplus card not a standard MMC one... would using a presumably MMC only card reader introduce an issue like this? i assume it wouldn't as standard, but i (apparently) made other simpler mistakes like trying to format the card on the phone itself (nokia 6230i) which is a big no no it seems, and went downhill from there...

any clues guys? xp fixes more than welcome too if they exist...
 
Old 04-26-2007, 07:19 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
well - if all else fails, you could buy a 2nd one, dd an image from that and dd it back to your one, and send the new card back within the 2 weeks allowes :-)
 
Old 04-26-2007, 07:45 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Original Poster
Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
interesting... that surely wouldn't be able to actually change the geometry would it? obviously this geometry data is stored somewhere on the device, as i've managed to change it though...
 
Old 04-26-2007, 08:22 AM   #4
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Are you sure the phone can handle a 4gb card? I had to upgrade my Palm T5 to go past 2gb as I recall, and before that if I tried to format a larger card in it same thing would happen. Pretty sure I used dd to blow away the first 512 bytes, then just formated it normally in Linux -- it was a regular CF card though, not MMC (plus or otherwsie), so not 100% sure same would work for you.
 
Old 04-26-2007, 08:35 AM   #5
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
Quote:
Originally Posted by acid_kewpie
interesting... that surely wouldn't be able to actually change the geometry would it? obviously this geometry data is stored somewhere on the device, as i've managed to change it though...

i did that with a 1GB cf card i once screwed up
 
Old 04-26-2007, 08:38 AM   #6
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
send it back, say there was some *werid* problem with it
 
Old 04-26-2007, 08:52 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,437

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Quote:
Originally Posted by acid_kewpie
interesting... that surely wouldn't be able to actually change the geometry would it? obviously this geometry data is stored somewhere on the device, as i've managed to change it though...
First sector.
 
Old 04-26-2007, 08:58 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Original Poster
Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
yeah well £16 from amazon market place doesn't seem like it's really worth bothering with...
 
Old 04-26-2007, 08:58 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Original Poster
Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
Quote:
Originally Posted by syg00
First sector.
yeah that occurred to me as i typed really...
 
Old 04-26-2007, 09:38 AM   #10
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
you could dd if=/dev/zero of=/dev/sda (or whatever your mmc card occurres as)
and the do a simple format

some cards are not all that happy with them being partitioned :-{
 
Old 04-26-2007, 09:45 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Original Poster
Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
no no change, tried that a few times, the card itself is still reported as 1gb by fdisk. i thought i might hav ebeen able to get somewhere using sfdisk as you can aritificially lie to it about what the sector sizes and cyliners are but that'll create a partition of an illegal size, but the device still reports as 1gb throughout..
 
Old 04-26-2007, 10:26 AM   #12
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
A guy on another forum said the 6230i and the 4gig MMC cards want to be in a FAT16 format. Don't know if it's true or not. Good luck.
 
Old 04-26-2007, 10:50 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Original Poster
Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
yeah i think my problems originally started when i tried to format it as fat32... either way my problems have dropped way way down the stack, nowhere near being able to care about the filesystem in question.
 
Old 04-26-2007, 11:08 AM   #14
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
If you have access to a FreeBSD system, you could use the disklabel command. I'm not aware of a Linux command that would do a similar function. Using disklabel you can change the geometry of the disk, or at least what it thinks it is. Check out disklabel for more info on the command.
 
Old 04-26-2007, 05:53 PM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,437

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
My 4 Gig USBkey (note, not MMC) shows;
993 Cylinders, 128 heads, 63 sectors/track

If you're in the mood to play, maybe try that.
As always, all care no responsibility ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to enable mmc card ? jabka Linux - Laptop and Netbook 4 02-07-2007 03:53 PM
SD/MMC-Card Reader hubideg Suse/Novell 2 05-17-2006 09:31 PM
MMC/SD card reader jnsg Slackware 11 04-18-2006 03:36 AM
Accessing MMC card in Laptop built-in MMC Card Slot with knoppix bröggle Linux - Laptop and Netbook 0 08-18-2004 09:44 AM
Zaurus (SL-5600) and MMC card Justin205 Linux - Laptop and Netbook 1 10-07-2003 12:55 AM


All times are GMT -5. The time now is 09:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration