Ubuntu가 게스트 계정 데스크탑에서 파일을 삭제했습니다.


8

Ubuntu 12.10이 있고 손님 계정을 사용하고있었습니다. 데스크탑에서 일부 파일을 다운로드하고 사용 후 m / c를 종료했습니다. 오늘은 게스트 계정에 로그인하여 해당 파일을 복사했지만 놀랍게도 해당 파일이 사라지고 데스크탑이 깨끗해졌습니다. 종료시 우분투가 손님 계정에서 모든 파일을 삭제한다고 생각합니다.

잃어버린 파일을 복구하도록 안내해 주시겠습니까?

감사


Yes, ubuntu deletes all files from the guest account on reboot, and i dont think that there is any easy way to recover those
Sam

This is how Ubuntu guest account works, so that one get cannot see what the other guest downloaded. if you use the guest account, copy the files you need in an USB drive before you log off.
user68186

1
Actually I didn't knew about this fact. I will keep it in mind or better I will disable guest account.
Sandy

답변:


12

Ubuntu's Guest account is a special type of account, which has its home directory set to the mount point of a tmpfs filesystem, which is used to store data which does not need to be persisted after a reboot.

The data in tmpfs is stored in RAM backed up by the swap space, so it is likely the data had never been written to disk in the first place, so there's basically nothing to recover.

More details on tmpfs.

If you're curious how guest account is set up, you can study /usr/sbin/guest-account, which is a shell script used to create/remove a guest account.


1

Try TestDisk:

sudo apt-get install testdisk

It's an all purpose filesystem recovery tool. To recover deleted files do this:

  1. Open TestDisk in terminal as root:

    sudo testdisk
    
  2. Select the HDD that contains your Ubuntu Partition

  3. Select your Partition Tabel format(Usually Intel but may be EFI on 2TB+ HDDs)

  4. Select "Analyse-->Quick Search"

  5. Once it finishes scanning select your Ubuntu Partition and then press P

  6. Browse to the Home Folder and see if you can find the deleted files and if so use c to copy them to a safe location

  7. Now press q continuously to leave TestDisk safely.

EDIT: I just retried this and it doesn't seem TestDisk can find deleted folders, I'll double check though.


Sergey has reminded me that the Guest account is not stored on Disk so recovery by any means, even my above method, will most likely not work. Sorry.
japzone
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.