Bancolini Nylux User Manual - page 26
APPENDIX B Formatting a Memory Card (SD card)
Insert the memory card in the terminal (see section 1.4).
The following procedure for formatting the memory card must be carried out if this is the first time the card
is used.
Firstly, the memory card must be partitioned after starting up a Nylux console (example made using a 1GB
SD card)
To partition proceed as follows:
●
start fdisk on the device: fdisk /dev/mmca1
● with the ‘p’ command visualize the table of partitions
● add a new primary partition using the ‘n’ command (indicate ‘1’ as the partition number and
confirm the other parameters to default values)
● finally, before proceeding to write with the ‘w’ command, use the ‘p’ command to check the
table of partitions: if the partition has been created correctly, the new table of partitions will
look like this:
Disk /dev/mmca1: 1015 MB, 1015808000 bytes
32 heads, 63 sectors/track, 984 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/mmca1 1 984 991840+ 83 Linux
Once the partition has been created, it needs to be formatted;
In the same console in which it was created, proceed with the following commands:
To format the partition use the following command:
# mke2fs /dev/mmca1
The display output achieved from the operation will be as follows:
mke2fs 1.40.2 (12-Jul-2007)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
124160 inodes, 247960 blocks
12398 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=255852544
8 block groups
32768 blocks per group, 32768 fragments per group
15520 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Finally, to start using the memory card it must be installed in the filesystem.
To install the partition:
# mount /dev/mmca1 /mnt/mmc
26