testdisk says no disk found

Using TestDisk to undelete files
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
gillesschaeffer
Posts: 2
Joined: 16 Nov 2018, 22:14

testdisk says no disk found

#1 Post by gillesschaeffer »

Hello,
I regularly use testdisk to undelete files or repair corrupted partition, and I am very happy with it.
Unfortunately I just tried it on my new dell ladtop under ubuntu, and running
> testdisk
I get the message "No harddisk found".
When I make explicit the location of the device (recovered using fdisk -l) with
> testdisk /dev/nvme0n1
I get "Unable to open file or device /dev/nvme0n1: Permission denied"
The permission are as follows:
> ls -l /dev/nvme0n1
brw-rw---- 1 root disk 259, 0 Nov 16 21:52 /dev/nvme0n1

photorec gives same messages

The disk is the internal disk on which my system is running, it does not appear to be corrupted.

The symptom appear to be similar to an issue with "System Integrity Protection" on mac os but
I'm on ubuntu 16.04 LT

Some help or alternative suggestion to undelete the file I accidentaly remove would be very helpful !
Thanks,
Gilles

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: testdisk says no disk found

#2 Post by cgrenier »

Can you try "sudo testdisk /dev/nvme0n1" or latest 7.1-WIP ?

gillesschaeffer
Posts: 2
Joined: 16 Nov 2018, 22:14

Re: testdisk says no disk found

#3 Post by gillesschaeffer »

Many thanks, it worked fine of course. I do not know why I didn't do that in the first place.
Sorry!

Locked