Author Topic: 16Gb SD card Formatting?  (Read 3174 times)

Offline paf077

  • Full Member
  • ***
  • Posts: 85
Re: 16Gb SD card Formatting?
« Reply #15 on: May 05, 2012, 02:00:34 PM »
On my above post, "after" I slid the switch SD in write mode, I had to "reboot with the card inserted". Then it worked.


Well these don't work any way, even with tape on the side opening. The write protect is in a file on the cards, so I need a way to low level write to these so I can reformat them after so they can be used  normally. I even tried HDDGuru in winXP and it reported that it was successful but as soon as the card is removed and then re-inserted, all the files are still there!!

Paf

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: 16Gb SD card Formatting?
« Reply #16 on: May 06, 2012, 06:03:28 AM »
I have a similar card reader on my system, may be the following info could be of some help:

dmesg output after inserting an SD card
Quote
mmc0: card b231 removed
mmc0: new SD card at address b231
mmcblk0: mmc0:b231 SD02G 1.89 GiB
 mmcblk0: unknown partition table

fdisk -l output:
Quote
Disk /dev/mmcblk0: 2032 MB, 2032664576 bytes
4 heads, 16 sectors/track, 62032 cylinders, total 3970048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mmcblk0 doesn't contain a valid partition table

the card was effectively not partitioned, after adding a partition using fdisk:
Quote
Disk /dev/mmcblk0: 2032 MB, 2032664576 bytes
4 heads, 16 sectors/track, 62032 cylinders, total 3970048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0e43d7bb

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048     3970047     1984000   83  Linux

notice the not conventional naming of device and partition(s).

AS

Offline paf077

  • Full Member
  • ***
  • Posts: 85
Re: 16Gb SD card Formatting?
« Reply #17 on: May 06, 2012, 06:21:46 AM »
I have a similar card reader on my system, may be the following info could be of some help:

dmesg output after inserting an SD card
Quote
mmc0: card b231 removed
mmc0: new SD card at address b231
mmcblk0: mmc0:b231 SD02G 1.89 GiB
 mmcblk0: unknown partition table

fdisk -l output:
Quote
Disk /dev/mmcblk0: 2032 MB, 2032664576 bytes
4 heads, 16 sectors/track, 62032 cylinders, total 3970048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mmcblk0 doesn't contain a valid partition table

the card was effectively not partitioned, after adding a partition using fdisk:
Quote
Disk /dev/mmcblk0: 2032 MB, 2032664576 bytes
4 heads, 16 sectors/track, 62032 cylinders, total 3970048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0e43d7bb

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048     3970047     1984000   83  Linux

notice the not conventional naming of device and partition(s).

AS

Hi AS, mine  reports that it's fat 32, but even trying to zero it with dd doesn't work.

Here's the output of fdisk -l:
 
Quote
Disk /dev/mmcblk0: 16.0 GB, 16034824192 bytes
117 heads, 23 sectors/track, 11638 cylinders, total 31318016 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            8192    31318015    15654912    c  W95 FAT32 (LBA)
[root@localhost ~]#


Paf

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: 16Gb SD card Formatting?
« Reply #18 on: May 06, 2012, 06:29:54 AM »
Exactly which dd command did you used ?

Offline paf077

  • Full Member
  • ***
  • Posts: 85
Re: 16Gb SD card Formatting?
« Reply #19 on: May 06, 2012, 06:52:09 AM »
Exactly which dd command did you used ?
I have a similar card reader on my system, may be the following info could be of some help:

"dd if=/dev/zero of=/dev/mmcblk0"

It ran for almost 20 minutes and reported 0bytes in and 0bytes out and all  the files are still there

Paf

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: 16Gb SD card Formatting?
« Reply #20 on: May 06, 2012, 07:08:59 AM »
please run the following command:
Code: [Select]
lspci -nnkand extrapolate the info related to the SD device, something like:
Quote
08:05.2 SD Host controller [0805]: O2 Micro, Inc. Integrated MMC/SD Controller [1217:7120] (rev 02)
        Subsystem: Dell Device [1028:0275]
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci-pci

also, which kernel are you running ?
Code: [Select]
uname -r

Offline paf077

  • Full Member
  • ***
  • Posts: 85
Re: 16Gb SD card Formatting?
« Reply #21 on: May 06, 2012, 08:02:45 AM »
ok lspci -nnk :
Code: [Select]
15:00.2 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 21)
        Subsystem: Lenovo Device [17aa:20c8]
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci-pci

kernel:
2.6.38.8-pclos3.bfs

Paf

nb: It is clearly marked "READ ONLY" on the card
« Last Edit: May 06, 2012, 08:05:56 AM by paf077 »

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 638
  • I Only 'Clean' Windows !.
Re: 16Gb SD card Formatting?
« Reply #22 on: May 07, 2012, 05:05:25 PM »
I tried with GParted and it always report a problem of read only,


Have you tried renewing the 'Partition table' with 'GParted ' ?
Then format it to Fat32.

I had a similar problem with a USB stick .

Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Offline paf077

  • Full Member
  • ***
  • Posts: 85
Re: 16Gb SD card Formatting?
« Reply #23 on: May 08, 2012, 08:43:24 AM »
I can't do anything in GParted.  If dd can't zero the card them I'll probably throw them all out.

Paf