硬碟出現壞軌了,幾乎沒辦法讀出來,但是還是有機會的,比如說最近我的IBM T23 48GB的HD掛了... 1. 使用DRBL (drbl.nchc.org.tw)來做,也可以用Knoppix (這你就需要另外一個HD) 把硬碟放到DRBL client中,開啟DRBL client 2. 要有dd_rescue這個程式 http://www.garloff.de/kurt/linux/ddrescue/ or http://opensource.nchc.org.tw/redhat/apt/redhat/9/i386/RPMS.drbl/ddrescue-1.03-1drbl.i386.rpm 3. 比如說壞掉的是/dev/hda8 在DRBL client中 dd_rescue -v /dev/hda8 /home/drbl/t23_hda8_ddrescue 4. 等吧,可能會很久的...這case大概3個小時dump 25G的data,有時候在壞軌的地方讀超過30分鐘... 5. 先備份這個dd出來的檔案t23_hda8_ddrescue到其他地方 6. 完成之後,可以在server上 以原來的是reiserfs為例 reiserfsck t23_hda8_ddrescue 如果他說要做rebuild-tree,就這樣執行 reiserfsck --rebuild-tree t23_hda8_ddrescue 7. mount -o loop -t reiserfs t23_hda8_ddrescue /mnt/ 檔案就應該在/mnt/中了,不過有可能目錄會接錯,比如說我原來的home directory被接到dev下,稍微找一下應該可以找到... Good luck! Steven 2004/2/20 ps. 類似dd_rescue的軟體 a. GNU的ddresuce http://www.gnu.org/software/ddrescue/ddrescue.html b. dd_rescue + dd_rhelp (http://freshmeat.net/projects/dd_rhelp/) 這幾個可能速度更快,主要就是想辦法先找出badblock區域,然後dump的時候跳過? dd_rhelp用法example: dd_rhelp /dev/hda /dev/hdc dd_rhelp /dev/hda /media/mynewhd/somefile.dd ref: https://www.redhat.com/archives/linux-lvm/2005-January/msg00121.html ps. 2. dd_rescue (非gnu的)從version >=1.11之後,已經包含dd_rhelp了。