$HOME 디렉터리에 단일 파일 복원

$HOME 디렉터리에 단일 파일 복원

실수로 도망가서 +로 rm -r /home/xralf빠르게 Ctrl죽였습니다 C.

모든 것이 괜찮아 보였지만 .vimrc나에게 중요한 것이 빠졌다는 것을 깨달았습니다.

나는 다음 명령을 시도했습니다.

$ extundelete /dev/sda5 --restore-file /home/xralf/.vimrc
extundelete: failed to read-only open device "/dev/sda5": Error code 13

파일을 복원하려면 뭔가 잘못된 것 같습니다. 장치를 마운트 해제해야 합니다.

여기에 설치됩니다:/dev/sda5 on /home type ext4 (rw)

  • 이 파일을 복구할 수 있나요 .vimrc?
  • 어떻게 다시 설치하시겠습니까? 문제는 디렉토리가 필요할 때 발생합니다 $HOME .

LiveCD이제 내 노트북에 없어져서 사용할 수 없습니다 . USB내 노트북은 어느 쪽에서도 부팅을 지원하지 않습니다.

다음을 사용하여 명령을 실행하십시오 sudo.

sudo extundelete /dev/sda5 --restore-file /home/xralf/.vimrc
WARNING: Extended attributes are not restored.
WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set.
The partition should be unmounted to undelete any files without further data loss.
If the partition is not currently mounted, this message indicates 
it was improperly unmounted, and you should run fsck before continuing.
If you decide to continue, extundelete may overwrite some of the deleted
files and make recovering those files impossible.  You should unmount the
file system and check it with fsck before using extundelete.
Would you like to continue? (y/n) 

답변1

Error code 13EACCES- 액세스 위반입니다.

장치에서 읽을 수 있는 권한이 없습니다. 슈퍼유저로 명령을 실행합니다 sudo extundelete .... 즉, .

답변2

오류는 sda가 ext4이고 ext3을 사용하려고 하기 때문에 발생합니다.

관련 정보