注:Ver. は LS-HGL ハックキットのバージョンです。
root@LS-HGL487:~# date Thu Nov 1 00:02:45 JST 2007 root@LS-HGL487:~# date 081317252008 Wed Aug 13 17:25:00 JST 2008 root@LS-HGL487:~#これは、08 月 13 日 17 時 25 分 2008 年にあわせた例です。
ADDRESS=192.168.2.44 NETWORK=192.168.2.0 NETMASK=255.255.255.0 BROADCAST=192.168.2.255 GATEWAY=192.168.2.1 NAMESERVER=192.168.1.2 HOSTNAME=hackkitという部分があります。この部分を環境に合わせます
変数 | 内容 | デフォルト値 |
ADDRESS | LS-HGL の IP アドレス | 192.168.2.44 |
NETWORK | LS-HGL を接続するネットワークアドレス | 192.168.2.0 |
NETMASK | LS-HGL を接続するネットワークのネットマスク | 255.255.255.0 |
BROADCAST | LS-HGL を接続するネットワークのブロードキャストアドレス | 192.168.2.255 |
GATEWAY | デフォルトゲートウェイ | 192.168.2.1 |
NAMESERVER | ネームサーバの IP アドレス | 192.168.1.2 |
HOSTNAME | LS-HGL のホスト名 | hackkit |
Apr 5 14:14:41 LS-HGL487 kernel: usb 1-1: new high speed USB device using ehci_platform and address 2 Apr 5 14:14:41 LS-HGL487 kernel: usb 1-1: configuration #1 chosen from 1 choice Apr 5 14:14:41 LS-HGL487 kernel: scsi2 : SCSI emulation for USB Mass Storage devices Apr 5 14:14:46 LS-HGL487 kernel: Vendor: ST325082 Model: 3ND06QAZ Rev: Apr 5 14:14:46 LS-HGL487 kernel: Type: Direct-Access ANSI SCSI revision: 02 Apr 5 14:14:46 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Apr 5 14:14:46 LS-HGL487 kernel: sdb: Write Protect is off Apr 5 14:14:46 LS-HGL487 kernel: sdb: assuming drive cache: write through Apr 5 14:14:46 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Apr 5 14:14:46 LS-HGL487 kernel: sdb: Write Protect is off Apr 5 14:14:46 LS-HGL487 kernel: sdb: assuming drive cache: write through Apr 5 14:14:46 LS-HGL487 kernel: sdb: sdb1 sdb2 sdb3 sdb4 Apr 5 14:14:46 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi disk sdb Apr 5 14:14:46 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0接続した HDD が自動的にマウントされた場合は umount します。
root@LS-HGL487:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 15351 14652 699 95% /initrd /dev/sda2 4994004 244460 4749544 5% / /dev/ram1 15360 104 15256 1% /mnt/ram /dev/sda1 988212 24220 963992 2% /boot /dev/sda6 237067816 340220 236727596 0% /mnt/disk1 /dev/usbdisk1_1 194443 11629 172775 6% /mnt/usbdisk1 root@LS-HGL487:~# umount /mnt/usbdisk1 root@LS-HGL487:~#
パーティション | 容量 | システム | 用途 |
/dev/sdb1 | 200MB | Linux | /boot |
/dev/sdb2 | 2GB | Linux | / |
/dev/sdb3 | 256MB | Linux swap | swap |
/dev/sdb4 | 残り全部 | Linux | データ |
実行例:
root@LS-HGL487:~# fdisk /dev/sdb The number of cylinders for this disk is set to 19457. 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/sdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 25 200781 83 Linux /dev/sdb2 26 87 498015 83 Linux /dev/sdb4 88 19457 155589525 5 Extended /dev/sdb5 88 104 136521 82 Linux swap /dev/sdb6 105 19457 155452941 83 Linux Command (m for help):もし上記のようにパーティションがあれば、 パーティションを消します
Command (m for help): d Partition number (1-6): 6 Command (m for help): d Partition number (1-5): 5 Command (m for help): d Partition number (1-5): 4 Command (m for help): d Partition number (1-6): 2 Command (m for help): d Selected partition 1 Command (m for help): p Disk /dev/sdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System Command (m for help):パーティションを切ります
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-19457, default 1): [Enter] Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-19457, default 19457): +200M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (26-19457, default 26): [Enter] Using default value 26 Last cylinder or +size or +sizeM or +sizeK (26-19457, default 19457): +2096M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (282-19457, default 282): [Enter] Using default value 282 Last cylinder or +size or +sizeM or +sizeK (282-19457, default 19457): +256M Command (m for help): n Command action e extended p primary partition (1-4) p Selected partition 4 First cylinder (314-19457, default 314): [Enter] Using default value 314 Last cylinder or +size or +sizeM or +sizeK (314-19457, default 19457): [Enter] Using default value 19457 Command (m for help): t Partition number (1-4): 3 Hex code (type L to list codes): 82 Changed system type of partition 3 to 82 (Linux swap) Command (m for help): p Disk /dev/sdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 25 200781 83 Linux /dev/sdb2 26 281 2056320 83 Linux /dev/sdb3 282 313 257040 82 Linux swap /dev/sdb4 314 19457 153774180 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. root@LS-HGL487:~#
root@LS-HGL487:/mnt/disk1/share/debian# sh LS-HGL_hackkit_Ver..sh formating hard drive .. mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 50200 inodes, 200781 blocks 10039 blocks (5.00%) reserved for the super user First data block=1 25 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. : : creating network_interfaces ... creating resolv.conf ... creating hosts ... creating hostname ... root@LS-HGL487:/mnt/disk1/share/debian#
電源スイッチを OFF にして LS-HGL をシャットダウンします。
|
楽天市場
livedoor デパート Sofmap TSUKUMO ネットショップ TWO TOP Yahoo!ショッピング パソQ ムラウチドットコム ヤマダ電機WEB アット・ニフティストア Joshin インターネットショッピング |
← ログインできるようにする |
LS-HGL ハックキット LinkStation/玄箱をハックしよう |
→ 最初の設定 |