RESETボタン - (2008/01/13 (日) 04:50:29) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
玄箱PROの本体背面にある赤いボタンがRESETボタンだ。
詳細は[[「山下康成氏:玄箱(KURO-BOX)/Pro をハックしよう」>http://www.yamasita.jp/linkstation/kuro-box_pro/index.html]]の[[「初期化/initialization」>http://www.yamasita.jp/linkstation/2007/03/070303_initialization.html]]に掲載されている。
玄箱PRO内部でこのボタンを監視しているのが/usr/local/bin/[[KeventHandller.sh]]であり、RESETボタンを押されたことを認識すると/usr/local/bin/[[InitDisk1.sh]]を実行する。
*HDDの初期化
Linuxの形式に初期化されていなければRESETボタンの長押しでHDDの初期化が開始される。
**シリアルコンソールでのログ
~ # SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sda: drive cache: write back
sda: sda1
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sda: drive cache: write back
sda: sda1
XFS mounting filesystem sda1
~ #
**telnetでのログ
telnetではコンソール上には何も表示されない。ある程度のタイミングを見計らって[[mountコマンド]]ででも確認すればいいだろう。
*パーティションの状態
[[fdiskコマンド]]で確認してみる。
~ # fdisk /dev/sda
The number of cylinders for this disk is set to 9729.
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/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 9729 78148161 83 Linux
Command (m for help):
パーティションは1つだけ切られている。デバイス名は「/dev/sda1」となる。
次に[[mountコマンド]]で確認する。
~ # mount | grep sda1
/dev/sda1 on /mnt/disk1 type xfs (rw)
~ #
xfs形式で/mnt/disk1にマウントされている。
*エラー
RESETボタンを長押しすることで発生するエラーには以下のパターンがある。
[[KeventHandller.sh]]([[InitDisk1.sh]])が反応する既定のエラーだけを列記するので、独自に記述したシェルスクリプトなどは考慮しない。
-[[(エラー)disk is already mounted!]]
-[[(エラー)disk is already formatted!]]
----
#right(){&counter(total)}
玄箱PROの本体背面にある赤いボタンがRESETボタンだ。
詳細は[[「山下康成氏:玄箱(KURO-BOX)/Pro をハックしよう」>http://www.yamasita.jp/linkstation/kuro-box_pro/index.html]]の[[「初期化/initialization」>http://www.yamasita.jp/linkstation/2007/03/070303_initialization.html]]に掲載されている。
玄箱PRO内部でこのボタンを監視しているのが/usr/local/bin/[[KeventHandller.sh]]であり、RESETボタンを押されたことを認識すると/usr/local/bin/[[InitDisk1.sh]]を実行する。
*HDDの初期化
Linuxの形式に初期化されていなければRESETボタンの長押しでHDDの初期化が開始される。
**シリアルコンソールでのログ
~ # SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sda: drive cache: write back
sda: sda1
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sda: drive cache: write back
sda: sda1
XFS mounting filesystem sda1
~ #
**telnetでのログ
telnetではコンソール上には何も表示されない。ある程度のタイミングを見計らって[[mountコマンド]]ででも確認すればいいだろう。
*パーティションの状態
[[fdiskコマンド]]で確認してみる。
~ # fdisk /dev/sda
The number of cylinders for this disk is set to 9729.
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/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 9729 78148161 83 Linux
Command (m for help):
パーティションは1つだけ切られている。デバイス名は「/dev/sda1」となる。
次に[[mountコマンド]]で確認する。
~ # mount | grep sda1
/dev/sda1 on /mnt/disk1 type xfs (rw)
~ #
xfs形式で/mnt/disk1にマウントされている。
*エラー
RESETボタンを長押しすることで発生するエラーには以下のパターンがある。
[[KeventHandller.sh]]([[InitDisk1.sh]])が反応する既定のエラーだけを列記するので、独自に記述したシェルスクリプトなどは考慮しない。
-[[(エラー)disk is already mounted!]]
-[[(エラー)disk is already formatted!]]
----
表示オプション
横に並べて表示:
変化行の前後のみ表示: