How to format a partitioned sd card?
Try this:
Insert sd card
Open a terminal,
Press Ctrl+Alt+T
Run it:
sudo -i umount /dev/mmcblk0p6 umount /dev/mmcblk0p5 umount /dev/mmcblk0p3 umount /dev/mmcblk0p2 umount /dev/mmcblk0p1 gparted
In Gparted, create a new partition table on a sd card device:
Select a sd card device.
Choose: Device --- Create Partition Table.
The application displays a Create partition table on /path-to-device dialog.
Select a msdos partition table type.
Apply
Create a new partition.
Select an unallocated space on the sd card device.
Choose: Partition --- New. (The application displays the Create new Partition dialog)
Specify the size and the location for the partition.
Specify the type of partition.
Specify the type of file system for the partition.
Specify the label of the file system for the partition.
Click Add to add the create partition operation to the operation queue.
Related videos on Youtube
Yahya Uddin
CTO & Leader Developer of The Dealer App, with a Computer Science degree from University of Warwick (UK).
Updated on September 18, 2022Comments
-
Yahya Uddin over 1 year
I have a SD card that has several partitions on it.
Running
sudo fdisk -l
gives me:Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 2121093 1056451 c W95 FAT32 (LBA) /dev/mmcblk0p2 2121728 15333375 6605824 5 Extended /dev/mmcblk0p3 15333376 15398911 32768 83 Linux /dev/mmcblk0p5 2129920 2252799 61440 c W95 FAT32 (LBA) /dev/mmcblk0p6 2260992 15333375 6536192 83 Linux
Note all the above devices does not show up when I disconnect the SD card, hence I can assume all the above is related to the SD card.
Note the SD card is 8GB.
How can I format the SD card so that it behaves like normal?
-
Yahya Uddin over 8 yearsYes this is what I mean by normal
-
HATEthePLOT over 8 yearsGood. Then use
parted
or for a terminal version useparted
-
-
HATEthePLOT over 8 yearsThis does only half the trick. It was stated that a unified partition is needed.
-
Yahya Uddin about 8 yearsWhat should the file system type be?
-
kyodake about 8 yearsThe one you need. FAT32 - ExFAT. Compatible with Microsoft or Ext3, Ext4, only Gnu/Linux