Difference between revisions of "Formatting SD cards"

From Pandora Wiki
Jump to: navigation, search
m
m
Line 18: Line 18:
 
sudo fdisk /dev/mmcblk0 (use mmcblk1 for the second slot)
 
sudo fdisk /dev/mmcblk0 (use mmcblk1 for the second slot)
  
't' then '83' to change the partition type to linux, then 'w' to save.
+
# 't' then '83' to change the partition type to linux, then 'w' to save.
  
 
sudo mkfs.ext3 -m 0 /dev/mmcblk0p1 (or mmcblk1p1 for the second slot)
 
sudo mkfs.ext3 -m 0 /dev/mmcblk0p1 (or mmcblk1p1 for the second slot)
Line 36: Line 36:
 
Once installed, you can format a card like so:
 
Once installed, you can format a card like so:
  
<source lang="text">sudo mkfs.vfat /dev/mmcblk0p1 (or mmcblk1p1 for the second slot)</source>
+
<source lang="bash">
 +
sudo mkfs.vfat /dev/mmcblk0p1 # (or mmcblk1p1 for the second slot)
 +
</source>
  
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Revision as of 04:58, 19 June 2012

Formatting SD cards

The Pandora OS can read cards formatted with various filesystems including ext2 ext3 and fat32.

For NTFS, the If the Community Codec Pack must be installed.

If you have access to a desktop computer, it's a good idea to use the Panasonic SD Formatter, which can improve performance of SD cards.


ext3

To format a card ext3, insert the card into the Pandora, then open terminal, and type: [1]

sudo fdisk /dev/mmcblk0 (use mmcblk1 for the second slot)

# 't' then '83' to change the partition type to linux, then 'w' to save.

sudo mkfs.ext3 -m 0 /dev/mmcblk0p1 (or mmcblk1p1 for the second slot)

If you want to set a volume name then type:

sudo mkfs.ext3 -m 0 -L volumename /dev/mmcblk0p1

FAT32

The software to format FAT32 is not included with the Pandora, but can be easily installed. Open terminal, and type: [2][3]

sudo opkg update
sudo opkg install dosfstools

Once installed, you can format a card like so:

sudo mkfs.vfat /dev/mmcblk0p1 # (or mmcblk1p1 for the second slot)