
Windows에서 Linux 하드 드라이브의 삭제된 파일을 복구할 수 있습니까?
최근에 일부 파일을 삭제했는데 rm filename
다시 복구하고 싶습니다.
Windows가 설치된 다른 하드 드라이브가 있습니다. 여기서 파일을 복구할 수 있습니까? 어떻게?
Windows가 아닌 경우 외부 Linux(예: USB)에서 어떻게 수행합니까?
답변1
이렇게 하려면 grep
and를 사용할 수 있습니다. dd
다른 디스크에서 실행
# grep -a -b "text in the deleted file" /dev/sdXY
530159385076:some text in the deleted file
# dd if=/dev/sdXY count=8 skip=$(expr 530159385076 / 512 - 4)
여기서 -a
디스크 자체를 보고 -b
바이트 오프셋을 인쇄합니다. count=8
8개의 블록이 필요합니다. skip
이 경우 4개의 블록이 반환됩니다. 필요에 맞게 조정하세요.