前々からやろうと思っていたpdaXromのインストールに、いよいよ挑戦してみようと思います。
pdaXromはリナザウ標準のQtopiaと入れ替えて使うXウィンドウシステムをベースにした代替OSです。
画面を見れは一発ですが、もう思いっきりLinuxです。
FirefoxとかThunderbirdとか。。Qtopia環境では動かすことができないX Windowアプリケーションを色々と動かすことができます。
動作もQtopiaよりも軽いのかな?
当然メーカー保証外、完全自己責任ですが、これを導入しないわけにはいきません。
pdaXromの最新バージョンは今のところbeta4になり、SL-C3200対応と謳っているものはおそらくbeta3になると思うのですが、ここはあえて安定しているという噂のbeta1をインストールすることにします。
新しいバージョンのものは大容量(1GB以上)のSDカードも使用できないようです。
またインストールの方法ですが、Qtopia環境とデュアルブートができるようにするつもりです。
Qtopiaの環境を削除してpdaXromを入れるのが素直で簡単なやりかたなんだと思いますが、まだQtopiaの環境も取っておきたいし、SL-C3200はHDDを搭載しています。
pdaXromをHDDにインストールすることで、Qtopiaとのデュアルブート環境を構築することにしました。
従って、手順としては、
・pdaXrom用のパーティションの作成
・インストールイメージのinitrd.binから、rootfsの取り出し
・インストール&設定
という感じになるでしょうか。
まずはパーティションの作成から始めます。
pdaXrom用のパーティションはhda3パーティションを切り直してhda4として作成します。
パーティションを切り直す際にhdd3の内容はすべて消去されてしまうので、まずはバックアップを取ります。
hda3は/hdd3ディレクトリにマウントされていますので、/hdd3配下のファイルをtar.gzで圧縮して、SDカードにバックアップします。
ただ、/hdd3にあるdict1フォルダとdict2フォルダに関しては、それぞれ350MB、500MBとサイズが大きいです。
これらのバックアップを取ると時間も容量も取ってしまうのですが、ザウルスに付属のCDに同じデータが収録されているので、わざわざバックアップはとりませんでした。
後で、CDからコピーします。
ターミナルを起動して以下のコマンドでバックアップを取得します。
bash-2.05$ su - # swapoff /hdd3/swapfile # cd /hdd3 # tar cvf - ./Documents ./swapfile | gzip -c > /mnt/card/backup.tar.gz |
うちのザウルスは/hdd3にswapファイル(swapfile)を作成しています。
そのため、2行目のコマンドでswapファイルを無効化し、バックアップ対象にもswapfileを含めています。
バックアップを取得したら、いよいよパーティションを作成するわけですが、パーティションの作成はメンテナンスモードにて行います。
まずは、以下の手順でメンテナンスカーネルを起動します。
・電源を落とし、電池ぶたを開きます。 ・[D]キーと[B]キーを押しながら、電池の左にあるの小さいリセットボタンを押します。 ・電池ぶたを閉めてロックします。 ・電源を入れると、メンテナンスカーネルで起動します。 ・メンテナンスカーネルが起動すると、「zaurus login:」と表示されます。 ・ユーザー「root」でログインします。(パスワードはなし) |
一度hda3パーティションを削除して、新たにhda3とpdaXrom用にhda4を作成します。
下記コマンドのうち、太字の部分が入力した箇所です。
fdiskでの内容ですが、
・hda3の削除
・hda3を4.7GBのサイズで作成
・hda4を1GBのサイズで作成
・hda3のファイルシステムをvfat(FAT32)に変更
という感じで実行しています。
# fdisk /dev/hda
The number of cylinders for this disk is set to 11905. 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/hda: 6144 MB, 6144284672 bytes 16 heads, 63 sectors/track, 11905 cylinders Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System /dev/hda1 1 20 10048+ 83 Linux /dev/hda2 21 40 10080 83 Linux /dev/hda3 41 11905 5979960 c Win95 FAT32 (LBA)
Command (m for help): d Partition number (1-4): 3
Command (m for help): p
Disk /dev/hda: 6144 MB, 6144284672 bytes 16 heads, 63 sectors/track, 11905 cylinders Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System /dev/hda1 1 20 10048+ 83 Linux /dev/hda2 21 40 10080 83 Linux
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (41-11905, default 41): <空エンターを入力> Using default value 41 Last cylinder or +size or +sizeM or +sizeK (41-11905, default 11905): 9825
Command (m for help): p
Disk /dev/hda: 6144 MB, 6144284672 bytes 16 heads, 63 sectors/track, 11905 cylinders Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System /dev/hda1 1 20 10048+ 83 Linux /dev/hda2 21 40 10080 83 Linux /dev/hda3 41 9825 4931640 83 Linux
Command (m for help): n Command action e extended p primary partition (1-4) p Selected partition 4 First cylinder (9826-11905, default 9826): <空エンターを入力> Using default value 9826 Last cylinder or +size or +sizeM or +sizeK (9826-11905, default 11905): <空エンターを入力> Using default value 11905
Command (m for help): p
Disk /dev/hda: 6144 MB, 6144284672 bytes 16 heads, 63 sectors/track, 11905 cylinders Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System /dev/hda1 1 20 10048+ 83 Linux /dev/hda2 21 40 10080 83 Linux /dev/hda3 41 9825 4931640 83 Linux /dev/hda4 9826 11905 1048320 83 Linux
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): p
Disk /dev/hda: 6144 MB, 6144284672 bytes 16 heads, 63 sectors/track, 11905 cylinders Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System /dev/hda1 1 20 10048+ 83 Linux /dev/hda2 21 40 10080 83 Linux /dev/hda3 41 9825 4931640 c Win95 FAT32 (LBA) /dev/hda4 9826 11905 1048320 83 Linux
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. #
|
パーティションの作成が終了したら再度fdiskを実行し、hda4が作成されていることを確認します。
# fdisk /dev/hda
The number of cylinders for this disk is set to 11905. 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/hda: 6144 MB, 6144284672 bytes 16 heads, 63 sectors/track, 11905 cylinders Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System /dev/hda1 1 20 10048+ 83 Linux /dev/hda2 21 40 10080 83 Linux /dev/hda3 41 9825 4931640 c Win95 FAT32 (LBA) /dev/hda4 9826 11905 1048320 83 Linux
Command (m for help): q
#
|
新規に作成したパーティションをフォーマットします。
hda3はvfatで、hda4をext3でフォーマットします。
# mkfs.vfat -F 32 /dev/hda3 # mke2fs -j /dev/hda4 |
パーティションの作成&フォーマットが終了したら、リナザウを再起動します。
メンテナンスカーネルを終了するためには、shutdownコマンドで終了してからリセットをする必要があります。
まず、以下のコマンドでシャットダウンします。
シャットダウンしたら、以下の手順で再起動させます。
・電池ぶたを開きます。 ・電池の左にあるの小さいリセットボタンを押します。 ・電池ぶたを閉めてロックします。 ・電源ボタンを押して再起動します。 |
リナザウが起動したら、最初に取得したバックアップを復元します。
bash-2.05$ su - # cd /hdd3 # gunzip -c /mnt/card/backup.tar.gz | tar xvf - |
また、バックアップを取らなかったdict1フォルダとdict2フォルダは、PC経由でCDからコピーしてください。
以上で、pdaXrom用にパーティションを作成することができました。
次はインストールイメージから
rootfsを取り出します。