SL-3100の完全復旧手順

OpenBSDを入れてたSL-C3100を完全に元通りにしたくなったので、本体のフラッシュメモリーとハードディスクを初期化した。何らかのトラブルでSL-C3100が起動しなくなった場合や、ハードディスクを別のマイクロドライブCFカードに入れ替えた場合にも有効だと思う。(メンテナンスカーネルすら起動しない場合は無理だけど)

  1. ザウルスサポートステーションから機種別サポート情報のSL-C3100→ダウンロード→本体ソフトウェアROMアップデート→SL-C3100の本体ソフトウェアROMアップデート手順にある「ステップ2 アップデートの準備をする」に従ってアップデート用メモリーカードを作成する。
  2. SL-C3100にステップ2で作成したアップデート用メモリーカードを装着する。
  3. ACアダプターを接続する。
  4. 本体裏側の電池交換スイッチを「解除(交換時)」側に切り替え、電池ぶたを取り外す。
  5. キーボードの[D]キーと[B]キーを押しながら「リセットスイッチ」をペンで押す。
  6. 電池ぶたを取り付け、電池交換スイッチを「ロック(使用時)」側に切り替える。
  7. [電源]ボタンを押して、しばらく待つとメンテナンスカーネルが起動する。
  8. 以下の画面通りに赤い文字の部分を入力してEnterキーを押す。
INIT: version 2.78 booting
INIT: Entering runlevel: 4

INIT: Sending processes the TERM signal

Lineo uLinux
Kernel 2.4.20 on an armv5tel
zaurus login: root
login[202]: root login  on `tty1`

# fdisk /dev/hda

The number of cylinders for this disk is set to 7936.
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): d
Partition number (1-4): 4

Command (m for help): d
Partition number (1-4): 3

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Partition number (1-4): 1

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-7936, default 1): (Enterキーを押す)
Using default value 1
Last cylinder of +size or +sizeM or +sizeK (1-7936, default 7936): 20

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (21-7936, default 21): (Enterキーを押す)
Using default value 21
Last cylinder of +size or +sizeM or +sizeK (21-7936, default 7936): 40

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (41-7936, default 41): (Enterキーを押す)
Using default value 41
Last cylinder of +size or +sizeM or +sizeK (41-7936, default 7936): (Enterキーを押す)
Using default value 7936

Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): c
Changed system type of partition 3 to c (Win95 FAT32 (LBA))

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
# mkfs.ext2 -j /dev/hda1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
2512 inodes, 10048 blocks
502 blocks (5.00%) reserved for the super user
First data block=1
2 block groups
8192 blocks per group, 8192 fragments per group
1256 inodes per group
Superblock backups stored on blocks:
        8193

Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accountomg information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c of -i to override.
# mkfs.ext2 -j /dev/hda2
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
2528 inodes, 10080 blocks
504 blocks (5.00%) reserved for the super user
First data block=1
2 block groups
8192 blocks per group, 8192 fragments per group
1264 inodes per group
Superblock backups stored on blocks:
        8193

Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accountomg information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first.  Use tune2fs -c of -i to override.
# mkfs.vfat -F 32 /dev/hda3
mkfs.vfat 2.8 (28 Feb 2001)
# mount -t ext3 -o noatime /dev/hda1 /hdd1
# mount -t ext3 -o noatime /dev/hda2 /hdd2
# mount -t vfat -o noatime,quiet,umask=000,iocharset=utf8 /dev/hda3 /hdd3
# tar zxvf /mnt/card/hdimage1.tgz -C /CFカードの場合は/mnt/cardではなく/mnt/cf)
hdd1/
hdd1/lost+found/
hdd1/.sys/
hdd1/.sys/hdimage2.tgz
hdd1/.sys/hdlist1.dat
# tar zxvf /hdd1/.sys/hdimage2.tgz -C /
hdd2/
hdd2/lost+found/
hdd2/.sys/
hdd3/Documents/
hdd3/Documents/Image_Files/
hdd3/Documents/Install_Files/
hdd3/Documents/Text_Files/
hdd3/Documents/Book_Files/
hdd3/Documents/Music_Files/
hdd3/Documents/Movie_Files/
hdd3/Documents/Web_Files/
hdd3/Documents/Web_Files/Bookmark_Files/
(中略)
hdd3/Documents/Template_Files/
# shutdown -h now

最後にSL-C3100の本体ソフトウェアROMアップデート手順にある「ステップ3 アップデートを行う」を行えば完全に元通りになる。
尚、コンテンツのホーム画面で「?」アイコンになっている「norikae」と「mobilemap」は、SL-C3100付属のインストールCD-ROMからインストールすることで元通りになる。