NASのOSを入れ替え

PC ENGINEのALIX3D2ボードを使ったNASは、3台ありファイルサーバーやミュージックサーバーとして運用している。ファイルサーバーとして使っていた1台がクライアントPCからアクセス出来なくなった。クライアントPCのOSをDebianの最新バージョンに更新してからのことなのはハッキリしているが何故そうなるのか分からなかった。NASのOSは、VoyageMPDだがミュージックサーバー2台はVer0.10.0でファイルサーバーはVer0.8.0だった。どうも最新のDebianは、ファイルサーバーのOSかsambaの古いバージョンには対応しなくなった様である。Ver0.10.0のミュージックサーバーはアクセスできるのでファイルサーバーのOSをVer0.10.0に入れ替えればOKなので作業することにした。Voyageのサイトは、urlが消滅していてOSをダウンロード不可能なので手持ちのメディアを探したが何故かかつてCDRに焼いたはずのディスクが行方不明である。0.8.0は有るが0.10.0がないのである。仕方ないのでミュージックサーバーのCFカードの中身をそっくり新しいCFカードにコピーすることにした。
ddコマンドでコピーすれば出来るのが最近の経験で分かっている。

作業環境をどうするか色々考えたがミュージックサーバーにカードリーダーを接続してCFカードを挿してwindowsマシンからリモートでddコマンドを打つのが手っ取りばやそうだと結論づけた。

問題のファイルサーバー Voyage0.8.0 

作業用に使うミュージックサーバー Voyage0.10.0
USBにカードリーダーを接続 CFカード4GBをセット

WindowsノートからTeraTermで操作 赤文字が今回打ったコマンド

 

Linux voyage 3.14.12-voyage-rt-rt9 #1 SMP PREEMPT RT Fri Apr 17 15:10:46 HKT 2015 i586


The programs included with the Debian GNU/Linux system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

permitted by applicable law.

 __  __

 \ \/ /___ __  __ ___  ___  ___    Useful Commands:

  \  // _ \\ \/ /,-_ |/ _ |/ -_)     remountrw - mount disk as read-write

   \/ \___/ \  / \___,\_  |\___|     remountro - mount disk as read-only

           _/_/        _'_|          remove.docs - remove all docs and manpages

     { V o y a g e } - L i n u x

      < http://linux.voyage.hk >   Version: 0.10.0 (Build Date 20150429)


Last login: Sat Mar 11 22:34:17 2023 from 192.168.0.6

root@voyage:~# fdisk -l


Disk /dev/sda: 3.8 GiB, 4017807360 bytes, 7847280 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x00000000


Device     Boot Start     End Sectors  Size Id Type

/dev/sda1  *        1 7839719 7839719  3.8G 83 Linux


Disk /dev/sdb: 3.8 GiB, 4034838528 bytes, 7880544 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0xa2697938


Device     Boot   Start     End Sectors   Size Id Type

/dev/sdb1  *       2048 6293503 6291456     3G 83 Linux

/dev/sdb2       6293504 7880543 1587040 774

root@voyage:~# dd if=/dev/zero of=/dev/sdb bs=1M count=8

8+0 records in

8+0 records out

8388608 bytes (8.4 MB) copied, 0.100534 s, 83.4 MB/s

root@voyage:~# fdisk -l


Disk /dev/sda: 3.8 GiB, 4017807360 bytes, 7847280 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x00000000


Device     Boot Start     End Sectors  Size Id Type

/dev/sda1  *        1 7839719 7839719  3.8G 83 Linux


Disk /dev/sdb: 3.8 GiB, 4034838528 bytes, 7880544 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

root@voyage:~# dd if=/dev/sda of=/dev/sdb bs=512k

7663+1 records in

7663+1 records out

4017807360 bytes (4.0 GB) copied, 393.609 s, 10.2 MB/s


root@voyage:~# fdisk -l


Disk /dev/sda: 3.8 GiB, 4017807360 bytes, 7847280 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x00000000


コマンドDevice     Boot Start     End Sectors  Size Id Type

/dev/sda1  *        1 7839719 7839719  3.8G 83 Linux


Disk /dev/sdb: 3.8 GiB, 4034838528 bytes, 7880544 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x00000000


Device     Boot Start     End Sectors  Size Id Type

/dev/sdb1  *        1 7839719 7839719  3.8G 83 Linux


root@voyage:~#


コメント

このブログの人気の投稿

BDP-S370 SACD SP/DIF同軸出力

LightMPD/upnpgw イーサネット分離モード

10~12cm用バックロードホーン