Solved: Dead laptop, NVME Win 10, need data, won't mount

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
User avatar
geekomatic
Level 4
Level 4
Posts: 229
Joined: Sun Jun 06, 2010 1:11 am
Location: Awesome Western Australia!

Solved: Dead laptop, NVME Win 10, need data, won't mount

Post by geekomatic » Tue Jun 12, 2018 9:03 am

So, that's it, in a nutshell.

Lady dumped her water glass onto the laptop. I've placed the Samsung 951 NVME into a PCIe adapter in my desktop. I'm accessing via live USB, Mint 17.3/64. Gparted can't see it. The only way I can see anything in a gui is via the Disks program.

That, shows the drive listed as: 256 GB Block Device, /dev/nvme0n1, partition type: basic data, contents: NTFS, not mounted.

It shows five partitions (/dev/nvme0n1p1-p5), including the main Windows partition (p3). The trouble is, I cannot get anything to mount it. I've had to mount "unclean/dirty" disks before as read-only. But for some reason, none of the old commands work. The last I tried left me asking for "file system type" and I tried everything beginning with NTFS. No-go.

Please help? Let me know what info I can post. I'll be here, trying anything for a few hours longer. :)

Realized I forgot this info (derp). I don't see the NVME at all.

Code: Select all

mint@mint ~ $ inxi -Fxz
System:    Host: mint Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2)
           Desktop: MATE 1.12.0 (Gtk 3.10.8~8+qiana)
           Distro: Linux Mint 17.3 Rosa
Machine:   Mobo: ASUSTeK model: P6X58D PREMIUM v: Rev 1.xx
           Bios: American Megatrends v: 1501 date: 05/10/2011
CPU:       Quad core Intel Core i7 930 (-HT-MCP-) cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22450
           clock speeds: max: 2801 MHz 1: 1600 MHz 2: 2801 MHz 3: 1600 MHz
           4: 1600 MHz 5: 1733 MHz 6: 1733 MHz 7: 1733 MHz 8: 1867 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Juniper XT [Radeon HD 5770]
           bus-ID: 04:00.0
           Display Server: X.Org 1.17.1 driver: vesa
           Resolution: 1280x1024@0.0hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.6, 128 bits)
           GLX Version: 3.0 Mesa 10.5.9 Direct Rendering: Yes
Audio:     Card-1 Advanced Micro Devices [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series]
           driver: snd_hda_intel bus-ID: 04:00.1
           Card-2 Intel 82801JI (ICH10 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k3.19.0-32-generic
Network:   Card-1: Marvell 88E8056 PCI-E Gigabit Ethernet Controller
           driver: sky2 v: 1.30 port: c800 bus-ID: 05:00.0
           IF: eth1 state: down mac: <filter>
           Card-2: Marvell 88E8056 PCI-E Gigabit Ethernet Controller
           driver: sky2 v: 1.30 port: d800 bus-ID: 07:00.0
           IF: eth0 state: down mac: <filter>
           Card-3: Realtek RTL8191SU 802.11n WLAN Adapter
           driver: r8712u usb-ID: 005-003
           IF: wlan0 state: N/A mac: N/A
Drives:    HDD Total Size: NA (-)
           ID-1: USB /dev/sda model: TransMemory size: 7.8GB temp: 0C
Partition: ID-1: / size: 5.9G used: 143M (3%) fs: overlay dev: N/A
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 38.5C mobo: 37.0C
           Fan Speeds (in rpm): cpu: 2008 psu: 629 sys-1: 0 sys-2: 1041 sys-3: 691
Info:      Processes: 238 Uptime: 4 min Memory: 859.4/12006.4MB
           Init: Upstart runlevel: 2 Gcc sys: 4.8.4
           Client: Shell (bash 4.3.111) inxi: 2.2.28 
Last edited by geekomatic on Tue Jun 12, 2018 12:07 pm, edited 1 time in total.

User avatar
geekomatic
Level 4
Level 4
Posts: 229
Joined: Sun Jun 06, 2010 1:11 am
Location: Awesome Western Australia!

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by geekomatic » Tue Jun 12, 2018 9:51 am

Both a "Lenovo" and a "Windows" partition shows up on boot up of the Live USB 17.3. This is what it shows when I try to open them:

Error mounting /dev/nvme0n1p4 at /media/mint/LENOVO: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=999,gid=999,dmask=0077,fmask=0177" "/dev/nvme0n1p4" "/media/mint/LENOVO"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/nvme0n1p4': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

When I tried the terminal commands I found, it asked me for a file type-- and didn't accept any of them I tried.

lsblk shows this:

mint@mint ~ $ lsblk -f
NAME FSTYPE LABEL MOUNTPOINT
sda
├─sda1
└─sda2
sr0
loop0 /rofs
nvme0n1
├─nvme0n1p1
├─nvme0n1p2
├─nvme0n1p3
├─nvme0n1p4
└─nvme0n1p5

I found this, but it refers to booting Linux FROM, not accessing as a data drive from Linux (though speaks of the adapter I'm also using): https://delightlylinux.wordpress.com/20 ... sing-nvme/

User avatar
ClixTrix
Level 5
Level 5
Posts: 747
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by ClixTrix » Tue Jun 12, 2018 9:56 am

No, I don't see the NVME listed either in inxi. I checked the specs on the P6X58D Premium motherboard and see the slots are PCI Express 2.0 (not 3.0). They also operate as follows:

3 x PCI Express 2.0 x16 slots (at x16/x8/x8 or x16/x16/x1 mode)
1 x PCI Express x1 slot
2 x PCI slots

No x4 Slot or setting? I believe most of the adapters operate with a x4 slot. Per my prior post (other thread), it really depends on what your MB supports for adding an adapter.

Which adapter did you purchase and what are its minimum requirements?
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-36-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung 960 EVO 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

User avatar
geekomatic
Level 4
Level 4
Posts: 229
Joined: Sun Jun 06, 2010 1:11 am
Location: Awesome Western Australia!

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by geekomatic » Tue Jun 12, 2018 10:05 am

Highlights

Product name: PCIE NVME m.2 SSD To PCIE X16 Expansion Card
Input interface: M-Key M.2 NVME ( Don't Support SATA Protocol m.2 NGFF )
Output interface: PCIE X16/X4
Support Slot: PCIE X16/X4
Support Devices: Various PCIE Protocols NVME m.2 SS
Support system: Windows 8 / 10 / Linux

What is in the box

1 x PCIE 3.0 X16 Adapter

As per most overseas stuff, it has all sorts of conflicting info. I know the mobo is 2.0, but I was sort of hoping it would be backwards compatible? I spent a while reading about all of the various M.2/SATA/NVME and I just cannot believe that they've done it again-- made a few dozen different sizes/keys/speeds/etc....

I have a newer PC which does have 3.0, but is my main working unit/would be a pain in the neck to pull it from it's spot, open, shift. Do you really think it's that? It is showing in Disks and in Caja, right now.

User avatar
ClixTrix
Level 5
Level 5
Posts: 747
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by ClixTrix » Tue Jun 12, 2018 10:13 am

Hmmmm......Well, I assume you have the card installed to an x16 slot. Interesting that lsblk shows the partitions and that mount error suggests the NTFS partition is locked due to Win10 running in Fast Boot. You'll need to mount the partition as Read-Only (ro mount option). I've done that before for "rescue" backup. Never on an NVME, but the idea is the same.
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-36-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung 960 EVO 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

User avatar
geekomatic
Level 4
Level 4
Posts: 229
Joined: Sun Jun 06, 2010 1:11 am
Location: Awesome Western Australia!

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by geekomatic » Tue Jun 12, 2018 10:24 am

Okay--

I know they want these posts to list everything you're tried, but it's been hours now and I think I tried everything I could find and have been knocked back each time.

Based on what you see it's called and detected as, can you please show me exactly what *you* would use in terminal to get it to mount read-only? I'll copy & paste.

If it doesn't work, I'll reply with the results. If I can't get it to go, I think I'll try Mint 18 & installing nvme-cli (found it online at github). I have no idea what it is or does-- I'm a straw-grasper- lol.

Cheers!

User avatar
ClixTrix
Level 5
Level 5
Posts: 747
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by ClixTrix » Tue Jun 12, 2018 10:49 am

Same mount command you previously tried for the NTFS partition, but use -o ro for read-only (similar to this using the correct partition name and your desired mount point name from prior post):

sudo mount -t ntfs-3g -o ro /dev/nvme0n1p4 /media/mint/LENOVO

I assume you're creating the mount point with sudo mkdir /media/mint/LENOVO prior to issue of mount.

Edit:

NVME-CLI has lots of nifty commands. Example to dump SMART for the drive:

Code: Select all

$ sudo nvme smart-log /dev/nvme0
[sudo] password for xxxxxx: 
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning                    : 0
temperature                         : 41 C
available_spare                     : 100%
available_spare_threshold           : 10%
percentage_used                     : 0%
data_units_read                     : 2,626,469
data_units_written                  : 2,203,378
host_read_commands                  : 34,604,455
host_write_commands                 : 22,263,567
controller_busy_time                : 147
power_cycles                        : 371
power_on_hours                      : 198
unsafe_shutdowns                    : 25
media_errors                        : 0
num_err_log_entries                 : 0
Warning Temperature Time            : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1                : 41 C
Temperature Sensor 2                : 47 C
Temperature Sensor 3                : 0 C
Temperature Sensor 4                : 0 C
Temperature Sensor 5                : 0 C
Temperature Sensor 6                : 0 C
Temperature Sensor 7                : 0 C
Temperature Sensor 8                : 0 C 
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-36-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung 960 EVO 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

User avatar
geekomatic
Level 4
Level 4
Posts: 229
Joined: Sun Jun 06, 2010 1:11 am
Location: Awesome Western Australia!

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by geekomatic » Tue Jun 12, 2018 11:44 am

Thank you!

Yes, I'd made the mount point, just as you did, but for some reason, it wasn't working when I tried to run the mount command.

I then tried plugging in an external USB drive in anticipation of copying the data and it didn't show up. I ran lsusb and I got, "input/output error"? Same for a few other generic commands.

So, I rebooted with an 18 USB and these commands worked. There must be something wonky with the 17.3 I had been using. I wish I'd thought of it before bothering people here....

Now I know the NVME adapter works in a 2.0 slot, so that's great. Other people here might be interested in it, too-- as these drives are coming down in price and are very fast. Even in the adapter, I moved 3GB from the SM951 NVME (in a 2.0 slot), out to external USB 3.0 and it took about 20 seconds! Wowza!

Thank you for your help-- very much appreciated.

Have a "G'day", from the other side of the pond. :)

User avatar
ClixTrix
Level 5
Level 5
Posts: 747
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Dead laptop, NVME Win 10, need data, won't mount

Post by ClixTrix » Tue Jun 12, 2018 11:57 am

Glad you got it figured-out. Hope you can recover all your friend's data for her.

You have a good one too and have fun with NVME-CLI.
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-36-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung 960 EVO 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

Post Reply

Return to “Hardware Support”