Moxa W321-LX [37/80] Connecting storage peripherals

Moxa W341-LX [37/80] Connecting storage peripherals
W321/341 Linux Managing Embedded Linux
3-11
Connecting Storage Peripherals
The W321/341 supports PNP (plug-n-play), and hot pluggability for connecting USB mass storage
devices. W321/341 has an mdev auto mount utility that eases the mount procedure. The mdev auto
mount utility default only supports mount one partition automatically. For using SD memory card
storage, you should create one partition on a host computer. Here we create one partition on the Linux
host computer by the fdisk utility.
192.168.3.120 Putty
root@Moxa:/# fdisk /dev/mmcblk0
The number of cylinders for this disk is set to 15632.
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): p
Disk /dev/mmcblk0: 512 MB, 512229376 bytes
4 heads, 16 sectors/track, 15632 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-15632, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-15632, default 15632):
Using default value 15632
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table
root@Moxa:/#
Next, you can format the partition.
192.168.3.120 Putty
root@Moxa:/# mke2fs -t ext3 /dev/mmcblk0p1
After that you can remove the external storage and connected it to W321/341. The first connected SD
card storage device will be mounted automatically by mount to /mnt/sd. W321/341 will be
un-mounted automatically with umount when the device is disconnected.

Содержание

Похожие устройства

Скачать
Случайные обсуждения