SDHC cards and GParted

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dragondave59

SDHC cards and GParted

Post by dragondave59 »

I need to reformat a 32 GB SDHC card that was originally formatted on a Samsung Mobile.

Whenever I try to use GParted it stalls if the card is unmounted when it starts. If it is mounted before GParted starts it shows up, but the program stalls when unmounting the drive which shows up as the following having used sudo fdisk -l in a CLI
Disk /dev/mmcblk0: 33.6 GB, 33554432000 bytes
256 heads, 63 sectors/track, 4063 cylinders, total 65536000 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: 0xbe5c828b

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 2048 65535999 32766976 c W95 FAT32 (LBA)

I'm running LM17 Mate and the GParted version is 0.18.0-1

Thanks in advance.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Buzzsaw
Level 6
Level 6
Posts: 1318
Joined: Sat Aug 23, 2014 12:53 pm

Re: SDHC cards and GParted

Post by Buzzsaw »

I would try wiping the whole card first using random data (not zeros), then try it in GParted:

Code: Select all

sudo dd if=/dev/urandom of=/dev/mmcblk0
User avatar
MartyMint
Level 7
Level 7
Posts: 1730
Joined: Thu Dec 27, 2012 10:50 pm

Re: SDHC cards and GParted

Post by MartyMint »

Does the card reader on your computer support SDHC (high capacity >4GB generally) cards?
dragondave59

Re: SDHC cards and GParted

Post by dragondave59 »

MartyMint wrote:Does the card reader on your computer support SDHC (high capacity >4GB generally) cards?
Yes. I can read the data on the drive.
PatH57

Re: SDHC cards and GParted

Post by PatH57 »

could you post this

Code: Select all

sudo parted /dev/mmcblk0 unit s print
also I saw LBA as flag witch should not be needed.
dragondave59

Re: SDHC cards and GParted

Post by dragondave59 »

PatH57 wrote:could you post this

Code: Select all

sudo parted /dev/mmcblk0 unit s print
also I saw LBA as flag witch should not be needed.
I get the following. And I have checked that the Lock switch is unlocked.

Warning: Unable to open /dev/mmcblk0 read-write (Read-only file system). /dev/mmcblk0 has been opened read-only.
Warning: Unable to open /dev/mmcblk0 read-write (Read-only file system). /dev/mmcblk0 has been opened read-only.
Model: SD APPSD (sd/mmc)
Disk /dev/mmcblk0: 65536000s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 2048s 65535999s 65533952s primary fat32 boot, lba

I have suddenly had a thought. Does an Android mobile lock down the SD card if you remove having used the "safe removal" method in settings?
DrHu

Re: SDHC cards and GParted

Post by DrHu »

So it seems to be a boot USB drive
--does the boot work ??

--edited section if read already (removed windows Blah Blah info)--
http://www.groovypost.com/howto/unmount ... d-sd-card/
--looks just like Linux, will unmounts the card.

Not sure what locked down means
--I doubt it changes the RW method for the card, I don't think it would turn RW into RO
  • When safely removing SDHC card
    --should only be stopping electrical flow, and flushing files write all to card (from cache presumably..)
You could try other format utilities, text mode types (if it is some GUI issue that is causing the problem and not the SDHC card mode itself..)
  • fdisk, possibly a better choice (as long as you format the correct device name..)
http://voidcast.wordpress.com/2010/02/1 ... on-ubuntu/
http://www.nico.schottelius.org/blog/fo ... 0-printer/

You can try troubleshooting the GPARTED (parted) issues..
http://gparted-forum.surf4.info/viewtopic.php?id=13963
--it might be PARTED which may not like the CHS settings for an SDHC but would be ok with a real hard drive
PatH57

Re: SDHC cards and GParted

Post by PatH57 »

how do you actually read the card on the laptop, is there an adapter? built in? double check the lock
what's the brand and model of the card?
boot with the card inserted.

Code: Select all

sudo umount /dev/mmcblk0

Code: Select all

dosfsck -a -w -v /dev/mmcblk0

Code: Select all

sudo mount -a
Locked

Return to “Beginner Questions”