Creates standard Linkstation/Kurobox partitions (3 partitions)
# mfdisk -d 3 /dev/hda
delete partition 1
delete partition 2
delete partition 3
create partitions...
limit = 257039
start = 63, stop(limit) = 257039
limit = 771119
start = 257040, stop(limit) = 771119
limit = 321669494
start = 771120, stop(limit) = 321669494
The partition table has been altered!
Syncing disks.
#
make filesystem
# mkfs -j /dev/hda1
mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
32128 inodes, 128488 blocks
6424 blocks (5.00%) reserved for the super user
First data block=1
16 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
# mkfs -j /dev/hda3
(the same as above, omitted)
make hda2 swap
# mkswap /dev/hda2
Setting up swapspace version 1, size = 263204864 bytes
mount hda1 as /mnt
# mount /dev/hda1 /mnt
# mount /dev/hda3 /mnt2
From your other box,
ftp into kurobox and transfer
image.zip from the CD
or download to /mnt2
% cd /cdrom
% ftp 192.168.11.150
ftp> cd /mnt2
ftp> put image.zip
We need some tools later, so transfer files for
binutils, bzip, make.
(この他に、binutils, bzip, make を転送しておきます。)
ftp> lcd binary
ftp> put binutils-2.10.91.0.2.tar.gz
ftp> put bzip2-1.0.2.tar.gz
ftp> put make-3.79.1.tar.gz
ftp> quit
Back in telnet session:
# cd /mnt2
# unzip image.zip
Archive: image.zip
inflating: tmpimage.tgz
# cd /mnt
# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram0 9677 5132 4545 53% /
/dev/hda1 124427 4127 113876 3% /mnt
/dev/hda3 157929924 87664 149819804 0% /mnt2
# tar zxf /mnt2/tmpimage.tgz
# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram0 9677 5133 4544 53% /
/dev/hda1 124427 81149 36854 69% /mnt
/dev/hda3 157929924 87664 149819804 0% /mnt2
# ls /mnt2
image.zip lost+found tmpimage.tgz
# ls -l /mnt2
-rw-r----- 1 root root 27786607 Oct 7 21:08 image.zip
drwxr-xr-x 2 root root 16384 Oct 7 21:06 lost+found
-rw-r--r-- 1 root root 28296345 Oct 19 2004 tmpimage.tgz
#
# write_ok
(これは大切です。EM から通常モードへの移行の指示です)
# reboot