beautypg.com

IBASE SMARC Evaluation Kit User Manual

Page 61

background image

Copyright © 2013 IBASE Technology Inc. All Rights Reserved.

35

IBASE Technology Inc.


NOTE

On most Linux host operating systems, SD card will be mounted automatically upon
insertion. Therefore, before running fdisk, please make sure that SD card is
unmounted
(via 'sudo umount /dev/sdb').

Type the following parameters (each followed by ):

u [switch the unit to sectors instead of cylinders]

d [repeat this until no partition is reported by the 'p' command ]

n [create a new partition]

p [create a primary partition]

1 [the first partition]

16384 [starting at offset sector #16384, i.e. 8MB, which leaves enough space for the kernel, the
boot loader and its configuration data]

[using the default value will create a partition that spans to the last sector of the
medium]

w [ this writes the partition table to the medium and fdisk exits]

The file system format ext3 or ext4 is a good option for removable media due to the built-in journaling.
Run the following command to format the partition: