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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-12-2017, 12:07 AM
|
#1
|
Member
Registered: May 2011
Location: Texas
Distribution: debian, ubuntu, centos stream
Posts: 849
|
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.
|
|
|
05-12-2017, 01:09 AM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,440
|
Do you have an appropriate NTFS helper installed ?. ntfs-3g p'raps, but I don't use Debian.
Was it unmounted properly before extraction ?.
|
|
|
05-12-2017, 06:26 AM
|
#3
|
Member
Registered: May 2011
Location: Texas
Distribution: debian, ubuntu, centos stream
Posts: 849
Original Poster
|
Yes, ntfs-3g comes with Debian Jessie by default. Im pretty sure I did the safe remove thing, not %100, but pretty sure...
|
|
|
05-12-2017, 06:46 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,440
|
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.
|
|
|
05-12-2017, 06:56 AM
|
#5
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,940
Rep: 
|
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.
|
|
|
05-12-2017, 08:40 AM
|
#6
|
Member
Registered: May 2011
Location: Texas
Distribution: debian, ubuntu, centos stream
Posts: 849
Original Poster
|
Thanks syg00, I'll try that.
fatmac, good idea. I'll dd it before doing anything else.
|
|
|
05-12-2017, 02:25 PM
|
#7
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323
Rep: 
|
YOu could also try using ntfsfix /dev/sdb1 although it might be corrupt beyond a chkdsk.
|
|
|
05-12-2017, 02:55 PM
|
#8
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
What that disk dynamic instead of basic?
|
|
|
05-12-2017, 10:34 PM
|
#9
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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/
|
|
|
05-12-2017, 10:56 PM
|
#10
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,440
|
The OP stated s?he was using Dolphin for backups prior to this issue.
|
|
|
05-12-2017, 11:33 PM
|
#11
|
Member
Registered: May 2011
Location: Texas
Distribution: debian, ubuntu, centos stream
Posts: 849
Original Poster
|
Quote:
Originally Posted by jefro
What that disk dynamic instead of basic?
|
I'm not sure.
|
|
|
05-12-2017, 11:36 PM
|
#12
|
Member
Registered: May 2011
Location: Texas
Distribution: debian, ubuntu, centos stream
Posts: 849
Original Poster
|
Quote:
Originally Posted by AwesomeMachine
|
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.
|
|
|
05-12-2017, 11:37 PM
|
#13
|
Member
Registered: May 2011
Location: Texas
Distribution: debian, ubuntu, centos stream
Posts: 849
Original Poster
|
Quote:
Originally Posted by syg00
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.
|
|
|
All times are GMT -5. The time now is 02:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|