BTOパソコン 【Storm】
PC一式1式19500円?!
BTOパソコン (Sycom)
見積もりしてみる?
今のPCの価格感がわかります
BTOパソコン (FRONTIER)
見るだけ無料
アウトレットPCをチェック
Dospara(ドスパラ)
限定特価品はチェックしましょう

【キーマンズネット】
企業で導入するIT製品選びをサポート

システム導入事例、
技術解説等が豊富、
セミナー参加、情報収集に最適。
PCパーツ(クレバリー)
特価情報はチェックしましょう



トップページへ(コンテンツまだまだあります)

KNOPPIX(3.6)を使用したハードディスクデータ救済方法




ここではOS(Windows9X、2000、XP)が起動しなくなった場合、HDD内のデータを救済する方法を紹介します。
具体的救済方法はHDD内のデータ−をネットワーク経由でKNOPPIXのSAMBAを使用し吸い出す方法です。
(WindowsNT4.0Server、Windows2000Pro、WindowsXPProでOKでした。)

この方法は強力で会社等で悪意を持って実行するとHDD内のデータが漏洩します。
これを防ぐにはPCにBIOSレベルでパスワードを設定しましょう。

ここではツールの使い方、方法等を紹介しているだけであり、このページを参考に作業を行い、
データ等が消失、漏洩しても、管理人は一切責任を持ちません。 あくまでも自己責任でお願いします。




KNOPPIXとはCDのみでブート可能な Linux ディストリビューションです
knoppixのホームページ


必要な環境と条件、メディア

条件
・OSが立ち上がらないPCでKNOPPIXが起動すること
・PC2台をネットワークでつなぐ環境(HUBとLANケーブル×2) 
・HDDが物理的に壊れていないこと

メディア
・FDD(あると便利) 1枚
・CD−R(700MB)1枚

環境
・データを救済するPCが必要
救済PCの条件
・ネットワーク共有が出来ること
・救済するデータが格納できる容量がHDD内にあること
・CD−Rドライブがついていること
  (KNOPPIXのメディアがあればいらない)
・ADSL以上のネットワークでインターネットにつながっていること
 (KNOPPIXのメディアがあればいらない)

KNOPPIXを使用したHDDデータ救済方法(画面は3.3ですがほとんど一緒です)

(各画面はクリックすると拡大します)

1.KNOPPIX(ダウンロード)
以下のページをクリックし
「knoppix_v3.6_20040816-20040914.iso」をダウンロードする。
http://www.dnsbalance.ring.gr.jp/archives/linux/knoppix/iso/


2.KNOPPIX(CD作成)
上記でダウンロードしたファイルをCD-R(700MB)に焼く
  (ISOデータが650MBを超えているので注意しましょう)
ISOファイルなのでdvddecrypterで書き込めます。
(CD−R書き込みソフトがない方は参照してね)
dvddecrypterインストール方法はこちら

3. BIOSの設定
書き込み完了後、データ救済したいPCのBIOSを起動し、
   CDBOOTを可能に設定する。
  ・PCの電源を入れたら「Delete」や「F1」等(PCのマニュアルを見ましょう)を押してBIOSを起動する
  ・起動順序はHDDよりCD−ROMが優先になるように設定(SAVEを忘れずに)

4.KNOPPIX(BOOT)
データ救済したいPCにKNOPPIXのCDを入れて、CDでBOOTする。
以下の画面で「エンター」キーを押す

5.KNOPPIX(ネットワークの設定)
KDE→KNOPPIX→Network/Internet→ネットワークカードの設定
自分の環境に合ったネットワークを設定する

6.KNOPPIX(ハードディスクのマウント)
画面上に出力されているHDDをすべてシングルクリックし中身を確認
(救済したいデータがあるかどうかを確認する)

ここでHDDの内容が見えれば救済できる可能性が高いです。

救済したいデータを見つけたらハードディスクのマウントポイントを覚えておきましょう。

必ずしも以下の通りではないが、IDEのHDDでは以下の場合が多い
KNOPPIXから見えるHDD
Cドライブは/mnt/hda1
Dドライブは/mnt/hda2

(USBメモリ等を使用してcpコマンドでコピーも可能)

(この時点でHDDが表示されていない場合はHDDが物理的に壊れている可能性がある)



7.KNOPPIX(Rootshell起動)
KDE→KNOPPIX→Rootshell
コンソールを開く

8.KNOPPIX(samba設定事前準備)
rootになる

# su -

マウントポイントを覚えておきましょう
#df -k

smb.confが読み込み専用なので消す
#rm -f /etc/samba/smb.conf

CDから smb.confをコピー
#cp /KNOPPIX/etc/samba/smb.conf /etc/samba/

smbpasswdが読み込み専用なので消す
#rm -f /etc/samba/smbpasswd

CDからsmbpasswdをコピー
#cp /KNOPPIX/etc/samba/smbpasswd /etc/samba/

デフォルトで設定されているユーザー「knoppix」を使用しsambaのパスワードを設定
#smbpasswd knoppix

パスワード入力(ここで設定したユーザー名とパスワードで共有ドライブに接続します)
New SMB password:knoppix

パスワード再入力
Retype new SMB password:knoppix


9.KNOPPIX3.6(samba設定)
#vi /etc/samba/smb.conf

;
; /etc/samba/smb.conf
;
; Sample configuration file for the Samba suite for Debian GNU/Linux
;
; Please see the manual page for smb.conf for detailed description of
; every parameter.
;

[global]

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
printing = cups
printcap name = cups
load printers = yes
guest account = nobody
invalid users = root

; "security = user" is always a good idea. This will require a Unix account
; in this server for every user accessing the server.
security = user

; Change this for the workgroup your Samba server will part of

#コメントアウト
#
workgroup = WORKGROUP
#↓以下に変更(自分のワークグループ)
workgroup = network

#コメントアウト
#
server string = %h server (Samba %v)

#2行追加(コンピュータ名)
server string =gapo
netbios name = gapo


; If you want Samba to log though syslog only then set the following
; parameter to 'yes'. Please note that logging through syslog in
; Samba is still experimental.
syslog only = no

; We want Samba to log a minimum amount of information to syslog. Everything
; should go to /var/log/{smb,nmb} instead. If you want to log through
; syslog you should set the following parameter to something higher.
syslog = 0;

; This socket options really speed up Samba under Linux, according to my
; own tests.
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096

; Passwords are encrypted by default. This way the latest Windows 95 and NT
; clients can connect to the Samba server with no problems.
encrypt passwords = true
passdb backend = smbpasswd guest

; It's always a good idea to use a WINS server. If you want this server
; to be the WINS server for your network change the following parameter
; to "yes". Otherwise leave it as "no" and specify your WINS server
; below (note: only one Samba server can be the WINS server).
; Read BROWSING.txt for more details.
wins support = no

; If this server is not the WINS server then specify who is it and uncomment
; next line.
; wins server = 172.16.0.10

# If we receive WINS server info from DHCP, override the options above.
include = /etc/samba/dhcp.conf

; Please read BROWSING.txt and set the next four parameters according
; to your network setup. There is no valid default so they are commented
; out.
; os level = 0
; domain master = no
; local master = no
; preferred master = no

; What naming service and in what order should we use to resolve host names
; to IP addresses
name resolve order = lmhosts host wins bcast

; This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

; Name mangling options

preserve case = yes
short preserve case = yes

; This boolean parameter controlls whether Samba attempts to sync. the Unix
; password with the SMB password when the encrypted SMB password in the
; /etc/samba/smbpasswd file is changed.
unix password sync = false

; For Unix password sync. to work on a Debian GNU/Linux system, the following
; parameters must be set (thanks to Augustin Luton
; <aluton@hybrigenics.fr> for sending the correct chat script for
; the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

; The following parameter is useful only if you have the linpopup package
; installed. The samba maintainer and the linpopup maintainer are
; working to ease installation and configuration of linpopup and samba.
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

; The default maximum log file size is 5 MBytes. That's too big so this
; next parameter sets it to 1 MByte. Currently, Samba rotates log
; files (/var/log/{smb,nmb} in Debian) when these files reach 1000 KBytes.
; A better solution would be to have Samba rotate the log file upon
; reception of a signal, but for now on, we have to live with this.
max log size = 1000

obey pam restrictions = yes

; Some defaults for winbind (make sure you're not using the ranges
; for something else.)
; winbind uid = 10000-20000
; winbind gid = 10000-20000
; template shell = /bin/bash

; ISOLATIN1 with euro sign

#3行コメントアウト
#
unix charset = iso-8859-15
# display charset = iso-8859-15
# dos charset = 850

#↓以下に変更(文字コード設定)
unix charset = euc-JP
display charset = cp932
dos charset = cp932

[homes]
comment = Home Directories

#browseable = no
#↓以下に変更(ブラウズできるように)
browseable = yes

; By default, the home directories are exported read only. Change next
; parameter to "no" if you want to be able to write to them.

#
read only = yes
#↓以下に変更(書き込みできるように)
read only = no

; File creation mask is set to 0700 for security reasons. If you want to
; create files with group=rw permissions, set next parameter to 0775.
create mask = 0700

; Directory creation mask is set to 0700 for security reasons. If you want to
; create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0700

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
guest ok = no
read only = yes
write list = knoppix


[printers]
#プリンタは使用しないのでコメントアウト
#↓変更(コメントアウト)
#
printer admin = knoppix
# comment = All Printers
# browseable = no
# path = /tmp
# printable = yes
# public = no
# writable = no
# create mode = 0700

; A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server's CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
;
; The next two parameters show how to auto-mount a CD-ROM when the
; cdrom share is accesed. For this to work /etc/fstab must contain
; an entry like this:
;
; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
;
; The CD-ROM gets unmounted automatically after the connection to the
;
; If you don't want to use auto-mounting/unmounting make sure the CD
; is mounted on /cdrom
;
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom

#以下を4行追加
#↓追加
[mnt]
path = /mnt
writeable =yes
brouseable = yes



10.KNOPPIX(samba起動)
# /etc/init.d/samba start

これで救済される側のPCの準備は整いました。

KNOPPIXの設定保存(おまけ)

「KDE→KNOPPIX→Configure→KNOPPIXの設定を保存」
でFloppyに設定が保存できます。(フロッピーはフォーマットしておきましょう)

次回起動の際には「4.KNOPPIX(BOOT)」の画面で
knoppix floppyconf
と入力します。

救済する側のPCの準備です。

こちらは簡単でネットワーク共有するだけです。

1.救済する側のPCの準備
Windowsを起動する

ネットワークの設定を行い、KNOPPIXにPINGを打つ。通ればOK。

KNOPPIX(ネットワークの設定)で設定したIP

2.ネットワーク共有1(例はWindows2000)
「マイコンピュータ」で右クリックし、
「ネットワークドライブの割り当て」を選択

3.ネットワーク共有2(例はWindows2000)

「ドライブ」は空いているところを選択し
「フォルダ」 欄は「\\IPアドレス\HDDのマウントポイント」

KNOPPIX(ハードディスクのマウント)でマウントしたHDDをつなぎます

フォルダ例

\\192.168.100.3\mnt(IDE全部の例)
\\192.168.100.3\mnt\hda1(IDEのHDD、Cドライブの例)
\\192.168.100.3\mnt\hda5(IDEのHDD、Dドライブの例)

うまくいかなかったらWindows側でワークグループを「WORKGROUP」にしてみましょう。
/etc/samba/smb.confのworkgroupを変えてsambaを再起動してもOKです。
workgroup = 自分のワークグループ名


4.ネットワーク共有3(例はWindows2000)

パスワードを聞いてくるので
ユーザー名:knoppix
パスワード:knoppix
KNOPPIX(samba設定事前準備)で設定したパスワードを入力する


ネットワーク共有できるのでデータを吸出し、救済しましょう。



おまけ

もうひとつの救済手段(HDDがIDEの場合)
WindowsのPC(タワー型がベスト)を用意し、
OSが起動しなくなったマシンからHDDを取り出し、
セカンダリマスター(ジャンパーを変える必要がないので)として認識させる。

ノートPCなどでは難しいですが、復旧用PCを用意できればこちらのほうが楽ですね。


以上