LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2017, 12:07 AM   #1
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Rep: Reputation: 229Reputation: 229Reputation: 229
getting data off an SSD


My OS: Debian Jessie amd64

I have an SSD (call it sdb) that I used to backup files. I backed up by using Dolphin to just copy folders over that I needed, Documents, Videos, etc. After installing Debian to the original SSD (call it sda), I connected sdb to my machine to restore the data but it did not show up in Dolphin. So I ran fdisk and got this:

Code:
root@server:~# fdisk -l

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 452F960F-6B37-420C-9B0F-53650A3565D5

Device         Start       End   Sectors  Size Type
/dev/sda1       2048   1050623   1048576  512M EFI System
/dev/sda2    1050624 466704383 465653760  222G Linux filesystem
/dev/sda3  466704384 500117503  33413120   16G Linux swap

Disk /dev/sdb: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x29689d0f

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1        2048 250069675 250067628 119.2G  7 HPFS/NTFS/exFAT
I tried mounting sdb1 but get the error below, as you can see I tried different ways:


Code:
root@server:~# mount /dev/sdb1 /media/newhd
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

root@server:/dev# mount -t ntfs /dev/sdb1 /media/newhd
NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

root@server:/dev# mount -t ntfs /dev/sdb /media/newhd
NTFS signature is missing.
Failed to mount '/dev/sdb': Invalid argument
The device '/dev/sdb' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

root@server:/dev# mount -t ntfs-3g /dev/sdb1 /media/newhd
NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

root@server:/dev# mount -t ntfs-3g /dev/sdb /media/newhd
NTFS signature is missing.
Failed to mount '/dev/sdb': Invalid argument
The device '/dev/sdb' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

What can I do to get my data back?

Last edited by erik2282; 05-12-2017 at 12:09 AM.
 
Old 05-12-2017, 01:09 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Do you have an appropriate NTFS helper installed ?. ntfs-3g p'raps, but I don't use Debian.
Was it unmounted properly before extraction ?.
 
Old 05-12-2017, 06:26 AM   #3
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Yes, ntfs-3g comes with Debian Jessie by default. Im pretty sure I did the safe remove thing, not %100, but pretty sure...
 
Old 05-12-2017, 06:46 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Erk. Stick it in a Windoze box and see if it needs a chkdsk. Although 3g should tell you that if it could recognise the f/s.
 
Old 05-12-2017, 06:56 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,504

Rep: Reputation: Disabled
Suggest you do a 'dd' disk dump of it to a file to work on, always dodgy to work on ones only back up, I'm assuming it contains important data.

Likely it hadn't finished writing to disk when it was removed, try mounting your new 'image' to run a filesystem check on it.
 
Old 05-12-2017, 08:40 AM   #6
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Thanks syg00, I'll try that.

fatmac, good idea. I'll dd it before doing anything else.
 
Old 05-12-2017, 02:25 PM   #7
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
YOu could also try using ntfsfix /dev/sdb1 although it might be corrupt beyond a chkdsk.
 
Old 05-12-2017, 02:55 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
What that disk dynamic instead of basic?
 
Old 05-12-2017, 10:34 PM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
How did you format the disk? Dynamic, basic. ntfs-3g won't mount dynamic disks. You have to convert it to a basic disk. See this: https://mypkb.wordpress.com/2007/03/...o-basic-disks/
 
Old 05-12-2017, 10:56 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
The OP stated s?he was using Dolphin for backups prior to this issue.
 
Old 05-12-2017, 11:33 PM   #11
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by jefro View Post
What that disk dynamic instead of basic?
I'm not sure.
 
Old 05-12-2017, 11:36 PM   #12
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by AwesomeMachine View Post
How did you format the disk? Dynamic, basic. ntfs-3g won't mount dynamic disks. You have to convert it to a basic disk. See this: https://mypkb.wordpress.com/2007/03/...o-basic-disks/

Not sure, I thought it was NTFS, but not sure what is meant by dynamic and basic in this case. Thanks for the link, I'll look into it.
 
Old 05-12-2017, 11:37 PM   #13
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by syg00 View Post
The OP stated s?he was using Dolphin for backups prior to this issue.
Yes sir, thats correct. I just manually drag and drop in Dolphin gui.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access To Encrypted SSD Partition With Native Password in SSD>SATA Enclosure skidvicious Linux - Hardware 5 12-03-2015 04:40 PM
Data center SSD webtent Linux - Hardware 4 03-30-2015 06:11 PM
[SOLVED] Writing random data to SSD takes longer than I expected Z038 Linux - General 12 07-07-2014 08:35 AM
[SOLVED] Hard drive or SSD that always verifies data written? Ulysses_ Linux - Hardware 4 02-17-2013 11:42 AM
LXer: On-the-fly Data Compression for SSD's LXer Syndicated Linux News 0 02-23-2011 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration