New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
_murray_
Old
(Last edited by _murray_; 17th June 2011 at 08:15 PM.)
#61  
Member
Thanks Meter 1
Posts: 30
Join Date: Sep 2010
Quote:
Originally Posted by codeworkx View Post
Today (03312011) we've fixed a corrupted sdcard for real!

On your Phone:
1. parted /dev/block/mmcblk0
2. print and write down
3. delete all partitions
4. recreate partitions (see point 2)
5. format mmcblk0p1 with vfat
6. format mmcblk0p2 with ext4 (example: mke2fs -q -L data -b 4096 -m 0 -F /dev/block/mmcblk0p2)
7. reboot :)

Done on CyanogenMod 7.

Is there any guide for the steps. I do not have enough knowlage for the steps. At least it will be good to see what should we write in adb.

Thanks in advance

EDIT: I have found a guide at the topic below

Link

I will try as soon as i finish reading
 
_murray_
Old
#62  
Member
Thanks Meter 1
Posts: 30
Join Date: Sep 2010
I parted the mmcblk0 and then printed. tried to remove the partitions with rm 1 and rm 2 commands, everything went fine. But when i again printed, partitions were still there.

I tried to made random partitions to show the problem. You can see it below.

Any ideas or suggestions?


Code:
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Model: MMC M8G4DD (sd/mmc)
Disk /dev/block/mmcblk0: 8221MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.8kB  6208MB  6208MB  primary  fat32        lba
 2      6208MB  8221MB  2013MB  primary               lba

(parted) rm 1
rm 1
rm 1
(parted) rm 2
rm 2
rm 2
(parted) mkpart primary 0 2000
mkpart primary 0 2000
mkpart primary 0 2000
Warning: You requested a partition from 0.00B to 2000MB.
The closest location we can manage is 512B to 32.3kB.
Is this still acceptable to you?
Yes/No? y
y
y
(parted) print
print
print
Model: MMC M8G4DD (sd/mmc)
Disk /dev/block/mmcblk0: 8221MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.8kB  6208MB  6208MB  primary  fat32        lba
 2      6208MB  8221MB  2013MB  primary               lba

(parted) mkpart primary 6208 8221
mkpart primary 6208 8221
mkpart primary 6208 8221
Error: Can't have overlapping partitions.
(parted)
 
phzi
Old
#63  
Senior Member
Thanks Meter 25
Posts: 168
Join Date: Jul 2009
There is no universal internal sd card fix. It's a hardware problem. Return it for repair.

Sent from i9000m on cm7, with xda premium.
 
urhhoney
Old
#64  
Member
Thanks Meter 2
Posts: 50
Join Date: Jul 2010
Quote:
Originally Posted by codeworkx View Post
Today (03312011) we've fixed a corrupted sdcard for real!

On your Phone:
1. parted /dev/block/mmcblk0
2. print and write down
3. delete all partitions
4. recreate partitions (see point 2)
5. format mmcblk0p1 with vfat
6. format mmcblk0p2 with ext4 (example: mke2fs -q -L data -b 4096 -m 0 -F /dev/block/mmcblk0p2)
7. reboot :)

Done on CyanogenMod 7.
i have my Nexus S internal sd not working (it shows everything i can read data but doesnt write)...
can you plz plz plz plz plz post me how to do it with nexus s

please paste the command lines i have to execute...
 
messo500
Old
#65  
Junior Member
Thanks Meter 0
Posts: 10
Join Date: Feb 2008
I have the same problem too
 
schreibman
Old
#66  
Member
Thanks Meter 16
Posts: 82
Join Date: Nov 2011
Location: Plano
Question Can someone help with the format for Nexus S

I wanted to see if someone might help me with this process on a Nexus S (4g). I have the partition information below, but before I proceed I am unclear on the format of the commands to use to recreate the structure correctly.

I would be very appreciative if anyone could help me, I am using adb shell, and I think I am close:



~ # fdisk -l /dev/block/mmcblk0
fdisk -l /dev/block/mmcblk0

Disk /dev/block/mmcblk0: 15.9 GB, 15925772288 bytes
1 heads, 16 sectors/track, 1944064 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 1944064 15552511+ ee EFI GPT
Partition 1 does not end on cylinder boundary
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Model: MMC SEM16G (sd/mmc)
Disk /dev/block/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 538MB 537MB ext4 system
2 538MB 1612MB 1074MB userdata
3 1612MB 15.9GB 14.3GB fat32 media

(parted)
 
leenchan
Old
#67  
Junior Member
Thanks Meter 3
Posts: 19
Join Date: May 2009
i have the problem. i will try it now
 
lightsun47
Old
#68  
Junior Member
Thanks Meter 0
Posts: 19
Join Date: Oct 2011
Sorry for bumping old thread but anybody has got any guides on how to partition and use adb commands for this? The link for the guide on top of this page is not so good. Can't understand from where to start and do what. Thanks.
 
lightsun47
Old
#69  
Junior Member
Thanks Meter 0
Posts: 19
Join Date: Oct 2011
^ Anyone?
 
antonorono
Old
#70  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Dec 2009
Default no escape

hello
I have the same issue. There is simply a partition which can't be deleted, rewritten, flashed over ...
I have just return from service shop and they were not able to flash new rom with factory tools.
The only solution I see is change motherboard. At least a parts of your loved mobile will stay with you ...