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
Post Reply
Message
Author
gillesschaeffer
Posts: 2
Joined: 16 Nov 2018, 22:14

testdisk says no disk found

#1 Post by gillesschaeffer » 16 Nov 2018, 22:33

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

Sponsored links

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

Re: testdisk says no disk found

#2 Post by cgrenier » 17 Nov 2018, 18:41

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 » 18 Nov 2018, 23:34

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest