disappearing partition trick, formatting micro sd, and random space consumed
First off I'd like to say sorry for starting a thread in General. I was thinking about starting it under hardware since its related to an SD card, then I was thinking I should put it under software since its related to mkfs. I was also thinking about going under the slackware area because I'm slacking. But hey....general seemed good.
Maybe someone can help me understand what I'm doing wrong, or at least sympathize and confirm the problem is real and not just in my head. So I fdisk a new partition and it shows up. Then I mkfs.vfat mmcblk0p1 and it vanishes. Code:
cg132@laptop:~$ sudo dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=1 Code:
cg132@laptop:~$ sudo dd if=/dev/zero of=/dev/mmcblk0 bs=10M count=1 How do I get my 20gb back? The card is blank as far as I can tell. Any suggestions? Cheers 132 |
I don't see you doing anything wrong. Perhaps the card is broken: http://forums.anandtech.com/showthread.php?t=2335234 (and many more links when you google for "check sd card").
|
The card is not bad. I've been using it to store a very large video game install, about 30gb, and the data always came back clean. Just to be sure I formatted the card in windows without issue. Trying not to advocate windows here but it seems to handle the card just fine. I flip over to *nix and the card acts normal now that windows molested it. I use SD cards frequently, and I've thrown out quite a few over the years, but I've never seen this before. Well I've seen all kinds of hocus pocus including the disappearing partition table, file system corruption, and dead cards that take data and comes back with gibberish. However I've never seen 20gb of gremlins consuming the card without any files being present. Thought I'd bring it up here to see if there was a solution. Figured there must be a better way to do things. I must admit this is the only SDXC(64gb) card I have. I haven't seen this problem on any SDHC(32gb) cards. I was saying I should skeet shoot it just to prevent the gremlins from spreading across my network, the internet, and possibly take over the world! :-P
|
Found my problem. EXFat. You can slap me with a rotten fish now. Guess SDXC requires exfat. vfat, ext2, ext3, ext4, reiserfs, jfs....none of them work. But exfat does. <sigh>
|
Thanks for the postback. That is seriously twisted.
|
Another thing I noticed is that in fdisk, you are not changing the partition type label to FAT. You're leaving it on "Linux". It really should be on one of the FAT options instead. That can be done with a "t" command in fdisk.
|
Checked....didn't help.
Code:
cg132@laptop:~$ sudo /sbin/fdisk -l /dev/mmcblk0 |
Just to be extra sure. I created a linux type partition table and formatted it with exfat. Looks better than the mess windows made of the partition table.
Code:
cg132@laptop:~$ sudo /sbin/fdisk -l /dev/mmcblk0 |
All times are GMT -5. The time now is 07:02 AM. |