1

I'm new to Ubuntu.

Yesterday I accidentally deleted my Virtual Machine Windows 7 (32 bit) in VirtualBox on host Ubuntu 17.10. After that I tried to recover using Testdisk. It's not recovered and another method tried using Photorec it recovered some files but not finished because my hard disk storage not enough. So I stopped after my notebook little bit hangs so that's why Restarted bot right now it's showing

dev/sda2 /30498816 /30457001 files, 121959007 /121965056 blocks
Zanna
  • 70,465
  • What’s your question? What are you trying to achieve? – David Foerster Feb 26 '18 at 15:03
  • 1
    Some tips: Keep backups, use a trash can / recycle bin instead of straight delete, testdisk should see & recover files and their names, photorec doesn't recover names or folders (everything's in a "big messy pile"). And recovering deleted files onto the same partition will just overwrite anything not yet recovered. Tried freeing some space to get it to boot again? – Xen2050 Feb 27 '18 at 02:18
  • Never attempt data recovery to the same partition. You should always work on an image or clone of the drive as discussed here – Elder Geek Mar 07 '18 at 19:14

1 Answers1

1

Boot your system and tap Esc after the BIOS screen to enter the GRUB menu, then press e to edit and append init=/bin/bash to the line starting with linux. Press Ctrl+x to boot, log in, and make your filesystem writable via mount -oremount,rw /. Navigate to the folder where the recovered files are and delete them as needed.

Alternatively, you can boot a live CD/USB and delete your recovered files from the live session after mounting your disk.