[armadillo ~]# umount /mnt
Figure 7.3. Unmounting Storage
7.3. Changing and Formatting Storage Partitions
Normally, purchased microSD cards and USB memory come with one partition which is formatted with a FAT32 file-
system.
The fdisk command is used to alter the partition structure. An example of using the fdisk command to alter a microSD
card that has one partition so that it is split into two partitions is shown in Figure 7.4, “Altering Partitions with the fdisk
Command”. The existing partition is first deleted and then two new primary partitions are created. The first partition is
assigned 100MByte, and the second partition is assigned the remaining space. The first partition will be /dev/mmcblk0p1
and the second /dev/mmcblk0p2. For more details on using the fdisk command, please refer to its man page.
[armadillo ~]# fdisk /dev/mmcblk0
The number of cylinders for this disk is set to 62528.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): d
Selected partition 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-62528, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-62528, default 62528): +100M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (3054-62528, default 3054):
Using default value 3054
Last cylinder or +size or +sizeM or +sizeK (3054-62528, default 62528):
Using default value 62528
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
mmcblk0: p1 p2
Armadillo-440 LCD Model Development Set Startup Guide
Storage
53