Page 1 of 2

No Harddisk Found

Posted: 16 Oct 2019, 02:32
by blabla1903
I am working on Ubuntu 18.04 . I deleted an important file with an extension .ipynb . I searched for similar cases and tried to use testdisk but it seems like I'm doing something wrong. Testdisk can not find any harddisk. I was going to make explicit the location of the device like it's been done in this case viewtopic.php?t=8161 but I don't know the exact location and fdisk -l doesn't work for me. It says :

Code: Select all

fdisk -l
fdisk: cannot open /proc/partitions: No such file or directory
I also tried

Code: Select all

df -Th
but don't know the which one to choose.

Re: No Harddisk Found

Posted: 20 Oct 2019, 08:36
by cgrenier
fdisk, testdisk and photorec need to be run as root.

Re: No Harddisk Found

Posted: 24 Oct 2019, 12:40
by blabla1903
cgrenier wrote: 20 Oct 2019, 08:36 fdisk, testdisk and photorec need to be run as root.
The thing is that I can run them with "sudo" but testdisk can't find any harddisk.

Re: No Harddisk Found

Posted: 24 Oct 2019, 13:57
by recuperation
How about "lsblk -l"?
How is your total hard drive configuration like?

Re: No Harddisk Found

Posted: 24 Oct 2019, 20:30
by blabla1903
recuperation wrote: 24 Oct 2019, 13:57 How is your total hard drive configuration like?
I'm not quite sure what you are asking :? but I only have my local disk C: which is my ssd.

Re: No Harddisk Found

Posted: 24 Oct 2019, 20:57
by recuperation
Now I am confused. You are running Linux. "C:\" is a windows term. It seems to be mounted as the c-folder.
Where is your operating system?
There is lacking information about from where your Linux starts. Without devices there is no Linux starting.

Re: No Harddisk Found

Posted: 24 Oct 2019, 22:48
by blabla1903
recuperation wrote: 24 Oct 2019, 20:57 Now I am confused. You are running Linux. "C:\" is a windows term. It seems to be mounted as the c-folder.
Where is your operating system?
There is lacking information about from where your Linux starts. Without devices there is no Linux starting.
Yes. My OS is windows 10 and I'm using Ubuntu(Windows subsystem for Linux) on windows 10.

Re: No Harddisk Found

Posted: 25 Oct 2019, 05:23
by recuperation
I doubt that your Linux subsystem gives you full system control.
Try running the Windows version of Testdisk on Windows 10.

Re: No Harddisk Found

Posted: 25 Oct 2019, 09:54
by blabla1903
recuperation wrote: 25 Oct 2019, 05:23 I doubt that your Linux subsystem gives you full system control.
Try running the Windows version of Testdisk on Windows 10.
Finally, thanks a lot :D . I somehow managed to recover my file thanks to you. I wish I could have done this process on Ubuntu because this way ıt requires too many unnecessary steps.

Re: No Harddisk Found

Posted: 25 Oct 2019, 10:00
by recuperation
I am glad to hear about every success story!
There is a possibility to mark threads as solved. I don't know if you can do that for your own thread or if Christophe Grenier has to do it.