FreeBSD Data Rescue
出自KMU Wiki
(修訂版本間差異)
在2009年6月22日 (一) 10:30所做的修訂版本 (編輯) Cch (對話 | 貢獻) (→UFS fsck -y failed) ←上一個 |
在2009年6月22日 (一) 10:34所做的修訂版本 (編輯) (撤銷) Cch (對話 | 貢獻) 下一個→ |
||
第18行: | 第18行: | ||
tar -T /root/T2 -cf - | ssh admin@bak "cat > host-home.tar" | tar -T /root/T2 -cf - | ssh admin@bak "cat > host-home.tar" | ||
- | If ls can not see any files or directories | + | If ls can not see any files or directories, you may try |
* /usr/ports/sysutils/ffs2recov | * /usr/ports/sysutils/ffs2recov | ||
第25行: | 第25行: | ||
* /usr/ports/sysutils/autopsy | * /usr/ports/sysutils/autopsy | ||
- | e.g. | + | e.g. Using autopsy |
sudo autopsy localhost | sudo autopsy localhost | ||
add case -> add host -> add image -> ... | add case -> add host -> add image -> ... | ||
==Bad Partition Table== | ==Bad Partition Table== | ||
+ | |||
+ | ==Using magicrescue== | ||
/usr/ports/sysutils/magicrescue | /usr/ports/sysutils/magicrescue | ||
- | magicrescue | + | magicrescue can rescue following file types (ls /usr/local/share/magicrescue/recipes/) |
* avi | * avi | ||
第58行: | 第60行: | ||
magicrescue -r msoffice -r jpeg-jfif -r jpeg-exif -d ~/output /big/da0img | magicrescue -r msoffice -r jpeg-jfif -r jpeg-exif -d ~/output /big/da0img | ||
- | + | ===Using foremost=== | |
- | + | ===Using gptar=== | |
- | + | Reference | |
- | + | http://www.student.dtu.dk/~s042078/magicrescue/manpage.html | |
- | + | ||
- | + |
在2009年6月22日 (一) 10:34所做的修訂版本
在 FreeBSD 利用自由軟體搶救檔案
目錄 |
UFS fsck -y failed
If fsck -y UFS failed
fsck -y ... UNKNOWN FILE TYPE I=8408063 UNEXPECTED SOFT UPDATE INCONSISTENCY CLEAR? yes fsck_4.2bsd: bad inode number 8408064 to nextinode
Try to mount UFS read-only
mount -r find home -type f -and -size -1G -print > /root/T2 tar -T /root/T2 -cf - | ssh admin@bak "cat > host-home.tar"
If ls can not see any files or directories, you may try
- /usr/ports/sysutils/ffs2recov
- /usr/ports/sysutils/scan_ffs
- /usr/ports/sysutils/sleuthkit
- /usr/ports/sysutils/autopsy
e.g. Using autopsy sudo autopsy localhost add case -> add host -> add image -> ...
Bad Partition Table
Using magicrescue
/usr/ports/sysutils/magicrescue
magicrescue can rescue following file types (ls /usr/local/share/magicrescue/recipes/)
- avi
- flac
- gzip
- mp3-id3v1
- perl
- canon-cr2
- gimp-xcf
- jpeg-exif
- mp3-id3v2
- png
- elf
- gpl
- jpeg-jfif
- msoffice
- zip
e.g. 將欲搶救的硬碟拆下,用 USB-to-ATA/SATA 轉接器 magicrescue -r msoffice -r jpeg-jfif -r jpeg-exif -d ~/output /dev/da0 或 (避免多次讀取 /dev/da0) dd if=/dev/da0 of=/big/da0img magicrescue -r msoffice -r jpeg-jfif -r jpeg-exif -d ~/output /big/da0img
Using foremost
Using gptar
Reference