Partitioning SD-Card [duplicate]

Possible Duplicate:
How to format/partition SD card?

I want to partition SD-Card to use the Link2SD on android based mobile phone. I should make two partitions.

  • first a Fat partition for the user data
  • second an ext4 for the applications

How can I do this?


Solution 1:

There are many ways of doing it. I am assuming that you have a card reader.

Start gparted and make the partitions.

You can do it from the terminal.

List all disks

sudo fdisk -l

You need to figure out which disk is your card; it's usually something like /dev/sdc. I will use "xxx".

sudo fdisk /dev/xxx

Some fdisk commands:

  • d: delete partition
  • n: create a partition
  • l: list types
  • t: set type (c for fat32. 83 for Linux)
  • w: save
  • q: quit without making any changes

Then you create filesystems with a command:

sudo mkfs -t vfat -F 32 /dev/xxx1
sudo mkfs -t ext4 /def/xxx2