| 5-29.Move to CompactFlash @ コンパクトフラッシュのパーティショニング(8Mコンパクトフラッシュ) $fdisk /dev/hdd ← 今回の開発機ではCFはIDEセカンダリーのSlaveに接続 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-246, default 1): 1 Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-246, default 246): 246 Using default value 246 Command (m for help): p Disk /dev/hdd: 2 heads, 32 sectors, 246 cylinders Units = cylinders of 64 * 512 bytes Device Boot Start End Blocks Id System /dev/hdd1 1 246 7856 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. $ A コンパクトフラッシュへext2ファイルシステムを作成する $mke2fs /dev/hdd1 mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 1968 inodes, 7856 blocks 392 blocks (4.99%) reserved for the super user First data block=1 1 block group 8192 blocks per group, 8192 fragments per group 1968 inodes per group Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 30 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. B コンパクトフラッシュをマウントする $mkdir -p /mnt/cf $mount /dev/hdd1 /mnt/cf lost+foundがある場合は削除する $cd /mnt/cf $rm -rf * $df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hdd1 7605 1 7200 1% /mnt/cf C 作成したファイルのコピー $cp -a /mnt/target2/* /mnt/cf/ D コンパクトフラッシュへブートローダーの導入 $cd /mnt/cf/etc $vi lilo.conf → lilo.confのサンプルは補足10.参照 $/mnt/tg2/sbin/lilo -r /mnt/cf E EDENへ装着そして起動・・・ |