2

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?

1

1 Answer 1

5

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
1
  • 2
    The direct and clean linux way. But I think vfat -F has a space before 32 Commented Jun 8, 2014 at 13:54

Not the answer you're looking for? Browse other questions tagged .