How to format a partitioned sd card?

13,726

Try this:

  1. Insert sd card

  2. Open a terminal,

    Press Ctrl+Alt+T

  3. Run it:

    sudo -i
    umount /dev/mmcblk0p6
    umount /dev/mmcblk0p5     
    umount /dev/mmcblk0p3           
    umount /dev/mmcblk0p2         
    umount /dev/mmcblk0p1
    gparted
    
  4. In Gparted, create a new partition table on a sd card device:

  5. Select a sd card device.

  6. Choose: Device --- Create Partition Table.

  7. The application displays a Create partition table on /path-to-device dialog.

  8. Select a msdos partition table type.

  9. Apply

  10. Create a new partition.

  11. Select an unallocated space on the sd card device.

  12. Choose: Partition --- New. (The application displays the Create new Partition dialog)

  13. Specify the size and the location for the partition.

  14. Specify the type of partition.

  15. Specify the type of file system for the partition.

  16. Specify the label of the file system for the partition.

  17. Click Add to add the create partition operation to the operation queue.

Share:
13,726

Related videos on Youtube

Yahya Uddin
Author by

Yahya Uddin

CTO & Leader Developer of The Dealer App, with a Computer Science degree from University of Warwick (UK).

Updated on September 18, 2022

Comments

  • Yahya Uddin
    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
      Yahya Uddin over 8 years
      Yes this is what I mean by normal
    • HATEthePLOT
      HATEthePLOT over 8 years
      Good. Then use parted or for a terminal version use parted
  • HATEthePLOT
    HATEthePLOT over 8 years
    This does only half the trick. It was stated that a unified partition is needed.
  • Yahya Uddin
    Yahya Uddin about 8 years
    What should the file system type be?
  • kyodake
    kyodake about 8 years
    The one you need. FAT32 - ExFAT. Compatible with Microsoft or Ext3, Ext4, only Gnu/Linux