LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-09-2015, 04:05 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Cannot access GPT disk through USB interface


I am testing a number of 3.5" hard disks. The disks have intermittent failures in a NAS device.

I have a USB/SATA enclosure which originally came with a 1 TB disk. I am testing a 3 TB disk with a GPT partition table.

This is what I see in /var/log/syslog:
Code:
Mar  9 20:47:23 donald-pc kernel: [613149.313768] sd 30:0:0:0: [sdb] 1565565872 512-byte logical blocks: (801 GB/746 GiB)
Mar  9 20:47:23 donald-pc kernel: [613149.314382] sd 30:0:0:0: [sdb] Write Protect is off
Mar  9 20:47:23 donald-pc kernel: [613149.314384] sd 30:0:0:0: [sdb] Mode Sense: 23 00 00 00
Mar  9 20:47:23 donald-pc kernel: [613149.315004] sd 30:0:0:0: [sdb] No Caching mode page found
Mar  9 20:47:23 donald-pc kernel: [613149.315007] sd 30:0:0:0: [sdb] Assuming drive cache: write through
Mar  9 20:47:23 donald-pc kernel: [613149.348343]  sdb: unknown partition table
I don't understand the 801GB size, but that might be due to an unreadable partition table.

Then using parted I see this:
Code:
root@donald-pc:~# parted /dev/sdb
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Error: Invalid argument during seek for read on /dev/sdb
Retry/Ignore/Cancel?
OK, the disk condition is unknown, so this is possible.

However, when I insert an identical disk which has been performing perfectly in the NAS, I receive exactly the same error.

Question is: Has the USB/SATA interface any influence on reading the disk when it is larger than a certain size?

jlinkels
 
Old 03-09-2015, 05:03 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
What is the output of:
Code:
# gdisk -l /dev/sdb
 
Old 03-09-2015, 06:25 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
This seems more like invalid data than a hardware error, isn't it?

Code:
GPT fdisk (gdisk) version 0.8.10

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Disk /dev/sdb: 1565565872 sectors, 746.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 8EE70EA7-5A50-4036-BA6B-1423B41854E2
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 8-sector boundaries
Total free space is 3907073537 sectors (1.8 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1           65536        42008576   20.0 GiB    0700  primary
   2        42008584      1953525106   911.5 GiB   0700  primary
root@donald-pc:~#
jlinkels

Last edited by jlinkels; 03-09-2015 at 06:27 PM.
 
Old 03-09-2015, 07:59 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
While I was experimenting with gdisk, this information was shown:

Code:
Disk /dev/sdb: 1565565872 sectors, 746.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 5F080231-6918-42E3-B8D9-1B61021ABC21
That is weird for a 3 TB disk.
Is there anything which could have ruined the size information.
Are there any tools to further query the disk?

jlinkels
 
Old 03-09-2015, 08:03 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Well, Google is also helpful.

http://askubuntu.com/questions/15168...tu-12-04-64bit

So the answer is: yes, it is likely the external USB/SATA interface is likely the culprit.

That answers this question, up to the next problem!

jlinkels
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't get rid of GPT disk label rbdavis Linux - General 16 02-05-2017 05:24 AM
[SOLVED] GPT hard disk support san2ban Dragora GNU/Linux-Libre 4 10-31-2014 10:15 PM
can't access USB disk now and then eteck Linux - Hardware 1 10-04-2010 01:50 PM
usb disk access gone wonky patostevens Slackware 4 06-01-2010 10:24 AM
help with usb external hard disk and wireless interface mkhan919 Linux - Newbie 1 01-02-2007 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:55 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