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 11-25-2020, 02:48 AM   #1
blooperx3
Member
 
Registered: Nov 2020
Posts: 67

Rep: Reputation: Disabled
My hdd won't mount - how can I tell how much data is on it & how might I get it to mount?


Code:
$ sudo mount -o rw /dev/sdb /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error.


xx@xx:~$ sudo dmesg | tail
[802] usb 2-1: SerialNumber: XXXXXXXXXX
[802] scsi host3: uas
[802] scsi 3:0:0:0: Direct-Access     SABRENT                   0109 PQ: 0 ANSI: 6
[802] scsi 3:0:0:0: Attached scsi generic sg1 type 0
[802] sd 3:0:0:0: [sdb] 11721045168 512-byte logical blocks: (6.00 TB/5.46 TiB)
[802] sd 3:0:0:0: [sdb] Write Protect is off
[802] sd 3:0:0:0: [sdb] Mode Sense: 67 00 10 08
[802] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[802] sd 3:0:0:0: [sdb] Optimal transfer size 33553920 bytes
[802] sd 3:0:0:0: [sdb] Attached SCSI disk


xx@xx:~$ sudo fdisk -l
Disk /dev/loop0: 29.9 MiB, 31334400 bytes, 61200 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


Disk /dev/loop1: 54.98 MiB, 57626624 bytes, 112552 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


Disk /dev/loop2: 255.58 MiB, 267980800 bytes, 523400 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


Disk /dev/loop3: 62.9 MiB, 65105920 bytes, 127160 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


Disk /dev/loop4: 49.8 MiB, 52203520 bytes, 101960 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


Disk /dev/nvme0n1: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDS500G3X0C-00SJG0                      
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: 1FA5A9AA-1B33-400E-8176-5712AF85ED60

Device           Start       End   Sectors   Size Type
/dev/nvme0n1p1    2048   1050623   1048576   512M EFI System
/dev/nvme0n1p2 1050624 976771071 975720448 465.3G Linux filesystem

Disk /dev/sdb: 5.47 TiB, 6001175126016 bytes, 11721045168 sectors
Disk model:                 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes

xx@xx:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0  29.9M  1 loop /snap/snapd/8542
loop1         7:1    0    55M  1 loop /snap/core18/1880
loop2         7:2    0 255.6M  1 loop /snap/gnome-3-34-1804/36
loop3         7:3    0  62.1M  1 loop /snap/gtk-common-themes/1506
loop4         7:4    0  49.8M  1 loop /snap/snap-store/467
sdb           8:16   0   5.5T  0 disk 
nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
└─nvme0n1p2 259:2    0 465.3G  0 part /

xx@xx:~$ blkid
/dev/nvme0n1p2: UUID="3c04d62b-2f1b-4514-bc63-94903fe82213" TYPE="ext4" PARTUUID="7a719eee-9f95-4693-8750-edac6411cdbf"

xx@xx:~$ sudo mount -o rw /dev/sdb1 /mnt
mount: /mnt: special device /dev/sdb1 does not exist.
The hdd may have a lot of data on it or it might not have any data on it which might explain why there is no partition on it. The hdd is relatively new (less 1 year) and if it has been used, it has been very rarely used other than to have added data to it.

Last edited by blooperx3; 11-25-2020 at 02:54 AM.
 
Old 11-25-2020, 03:11 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Post the output of the command:

sudo file -s /dev/sdb
 
1 members found this post helpful.
Old 11-25-2020, 05:56 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by blooperx3 View Post

The hdd may have a lot of data on it or it might not have any data on it which might explain why there is no partition on it. The hdd is relatively new (less 1 year) and if it has been used, it has been very rarely used other than to have added data to it.
sdb has no partitions and no recognizable filesystem. That's why you can't mount it.

It also has no LVM or MD RAID structures. lsblk would report them.
 
1 members found this post helpful.
Old 11-25-2020, 06:15 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Are you trying to access the disk through a Sabrent docking station? If this is the case then I wonder if what you're seeing is the docking station being reported rather than the actual disk.

For example, an empty dual disk docking station on my RasPi thinks there's /dev/sda attached but there's no drive:

Code:
[3612765.678051] usb 2-1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[3612765.708952] usb 2-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[3612765.708971] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[3612765.708987] usb 2-1: Product: ASM1156-PM
[3612765.709002] usb 2-1: Manufacturer: ASMT
[3612765.709016] usb 2-1: SerialNumber: 00000000000000000000
[3612765.712413] usb-storage 2-1:1.0: USB Mass Storage device detected
[3612765.712773] usb-storage 2-1:1.0: Quirks match for vid 174c pid 55aa: 400000
[3612765.713647] scsi host0: usb-storage 2-1:1.0
[3612766.778266] scsi 0:0:0:0: Direct-Access     ASMT     ASM1156-PM       0    PQ: 0 ANSI: 6
[3612766.779013] sd 0:0:0:0: Attached scsi generic sg0 type 0
[3612766.829328] sd 0:0:0:0: [sda] Attached SCSI removable disk
 
1 members found this post helpful.
Old 11-25-2020, 04:45 PM   #5
blooperx3
Member
 
Registered: Nov 2020
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Post the output of the command:

sudo file -s /dev/sdb
entire output:
Code:
/dev/sdb: data
 
Old 11-25-2020, 04:46 PM   #6
blooperx3
Member
 
Registered: Nov 2020
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
Are you trying to access the disk through a Sabrent docking station? If this is the case then I wonder if what you're seeing is the docking station being reported rather than the actual disk.

For example, an empty dual disk docking station on my RasPi thinks there's /dev/sda attached but there's no drive:

Code:
[3612765.678051] usb 2-1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[3612765.708952] usb 2-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[3612765.708971] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[3612765.708987] usb 2-1: Product: ASM1156-PM
[3612765.709002] usb 2-1: Manufacturer: ASMT
[3612765.709016] usb 2-1: SerialNumber: 00000000000000000000
[3612765.712413] usb-storage 2-1:1.0: USB Mass Storage device detected
[3612765.712773] usb-storage 2-1:1.0: Quirks match for vid 174c pid 55aa: 400000
[3612765.713647] scsi host0: usb-storage 2-1:1.0
[3612766.778266] scsi 0:0:0:0: Direct-Access     ASMT     ASM1156-PM       0    PQ: 0 ANSI: 6
[3612766.779013] sd 0:0:0:0: Attached scsi generic sg0 type 0
[3612766.829328] sd 0:0:0:0: [sda] Attached SCSI removable disk
The docking station works for my other hdd's.
 
Old 11-25-2020, 04:51 PM   #7
blooperx3
Member
 
Registered: Nov 2020
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
sdb has no partitions and no recognizable filesystem. That's why you can't mount it.

It also has no LVM or MD RAID structures. lsblk would report them.
Yes, but i need to know if there is data on there. If there isn't, then i can setup the partition, etc.
 
Old 11-25-2020, 05:44 PM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by blooperx3 View Post
Yes, but i need to know if there is data on there. If there isn't, then i can setup the partition, etc.
parted has a rescue command that looks for lost patitions. You can also use strings to find something on the disk. For example, pipe the output of strings to a dictionary.

If these simple approaches don't help, I would search for forensics tools that analyze disks. While most of those tools are likely to require a certain skill level that I definitely don't have, perhaps you can start with SIFT.

There is also PhotoRec. In spite of its name, it recovers any kind of files.

Last edited by berndbausch; 11-25-2020 at 05:50 PM.
 
1 members found this post helpful.
Old 11-25-2020, 07:08 PM   #9
blooperx3
Member
 
Registered: Nov 2020
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
parted has a rescue command that looks for lost patitions. You can also use strings to find something on the disk. For example, pipe the output of strings to a dictionary.

If these simple approaches don't help, I would search for forensics tools that analyze disks. While most of those tools are likely to require a certain skill level that I definitely don't have, perhaps you can start with SIFT.

There is also PhotoRec. In spite of its name, it recovers any kind of files.
I went into gparted and click under 'device' on 'data rescue' but got the following message. I tried it numerous times.
Code:
COMMAND GPART NOT FOUND: this feature uses gpart. PLease install gpart and try again. 

PHOTOREC says it will take like 100 hours to analyze.

Last edited by blooperx3; 11-25-2020 at 08:01 PM.
 
Old 11-25-2020, 08:59 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Without a filesystem it is impossible to know how much "data" is on the drive. If it just so happens the partition table was deleted and the underlying filesystem / data was still intact in most instances it can be restored.

Typically data is never deleted. When a file is "deleted" by the operating system its location is marked a unused. Eventually that disk location will be overwritten by another file but until then it exists and so searching for files might turn up lots of unwanted stuff.

Finding data is like searching for a needle in a haystack. Photorec searches the drive byte for byte looking for certain patterns that could be a valid file, so yes it will take a very long time.

This is not an easy task which is why you will see many many posts that having good backups is very important especially if you have stuff that you really do not want to lose. Since you have no idea if the drive has any data or not, used or not seems like a waste of time unless there is more to the story.

Last edited by michaelk; 11-25-2020 at 09:35 PM.
 
Old 11-25-2020, 09:23 PM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by blooperx3 View Post
COMMAND GPART NOT FOUND: this feature uses gpart. PLease install gpart and try again.
Use parted, the command line command. Or install gpart, as the message says (I have no idea what gpart is)
Quote:
PHOTOREC says it will take like 100 hours to analyze.
That's just four days. Shorter than waiting for an answer on Linuxquestions.

I once set up a server with MD RAID. Took a week to synchronize.
 
Old 11-28-2020, 06:36 PM   #12
blooperx3
Member
 
Registered: Nov 2020
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Without a filesystem it is impossible to know how much "data" is on the drive. If it just so happens the partition table was deleted and the underlying filesystem / data was still intact in most instances it can be restored.

Typically data is never deleted. When a file is "deleted" by the operating system its location is marked a unused. Eventually that disk location will be overwritten by another file but until then it exists and so searching for files might turn up lots of unwanted stuff.

Finding data is like searching for a needle in a haystack. Photorec searches the drive byte for byte looking for certain patterns that could be a valid file, so yes it will take a very long time.

This is not an easy task which is why you will see many many posts that having good backups is very important especially if you have stuff that you really do not want to lose. Since you have no idea if the drive has any data or not, used or not seems like a waste of time unless there is more to the story.
If there is data on the hdd then the hdd was used without me first creating a partition table /partition....almost definitely.
 
Old 11-28-2020, 06:38 PM   #13
blooperx3
Member
 
Registered: Nov 2020
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Use parted, the command line command. Or install gpart, as the message says (I have no idea what gpart is)

That's just four days. Shorter than waiting for an answer on Linuxquestions.

I once set up a server with MD RAID. Took a week to synchronize.
I'm thinking, correctly or otherwise, that if there was data put on the disk (and if there was, nothing was likely deleted being that it is a new hdd), that the data would be on the BEGINNING of the hdd and if photorec searches for an hour or a few and doesnt' find anything, then there is likely nothing on the drive.

Is this logical?
 
Old 11-28-2020, 06:44 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Ok, the output of the file command posted earlier did not find a valid filesystem either so we are still in the same predicament.

Last edited by michaelk; 11-28-2020 at 06:57 PM.
 
Old 11-28-2020, 07:31 PM   #15
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by blooperx3 View Post
I'm thinking, correctly or otherwise, that if there was data put on the disk (and if there was, nothing was likely deleted being that it is a new hdd), that the data would be on the BEGINNING of the hdd and if photorec searches for an hour or a few and doesnt' find anything, then there is likely nothing on the drive.

Is this logical?
No, this is based on assumptions. The biggest assumption being Photorec's mode of operation.

Having said that, if you put a filesystem on the non-partitioned disk, a superblock (or, depending on the filesystem type, an equivalent structure) should be right at the beginning. Judging from what you have reported, I doubt very much that this disk is formatted with a filesystem.
 
  


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
somebody can tell me why . tell me how i can slove this problem xiongzhongkai Linux - Newbie 4 08-26-2008 01:51 AM
Can any one tell me how i might go about installing network card? Kingsize Linux - Networking 3 04-10-2007 05:36 PM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

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

All times are GMT -5. The time now is 11:38 PM.

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