LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-03-2017, 06:31 PM   #1
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 808

Rep: Reputation: 76
Can't read GPT disk in old notebook


I decided to bring my desktop hard disk with me on a trip. It is a 3TB disk on a USB enclosure. The notebook sees the hard disk but only sees one big partition but there are several partitions in that disk.

The notebook is old, but it does give me these options for BIOS setup:
- Legacy
- Native EFI (without CMS)
- Hybrid EFI (with CMS)

Neither of these fixes my problem.
 
Old 12-03-2017, 07:00 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,988

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
You don't say what tools you are using - or distro version.
Try parted from the CLI.
 
Old 12-03-2017, 07:53 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,426

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
My guess is that you have a 512/4096 translation problem either caused by the on board or USB controller. This was a recent thread but since you are going to reinstall the drive back into the desktop I would be reluctant to change anything.

https://www.linuxquestions.org/quest...on-4175618642/
 
1 members found this post helpful.
Old 12-03-2017, 08:31 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,988

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Hmmm - that was a strange issue, but it was a filesystem resolution; the partitions could still be seen. This looks to be different.
 
Old 12-03-2017, 08:53 PM   #5
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 202

Rep: Reputation: 63
Quote:
The notebook is old, but it does give me these options for BIOS setup:
- Legacy
- Native EFI (without CMS)
- Hybrid EFI (with CMS)
If the notebook supports Native EFI then it can't be that old.

You need to give much more detail on your hardware and on your linux version used.
 
Old 12-03-2017, 08:56 PM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,214

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
The notebook sees the hard disk but only sees one big partition but there are several partitions in that disk.
If this at a grub prompt then
Code:
insmod part_gpt

Last edited by colorpurple21859; 12-04-2017 at 04:02 PM.
 
Old 12-04-2017, 07:17 AM   #7
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: AntiX
Posts: 1,978

Rep: Reputation: Disabled
What file system is on your desktop drive, if it isn't a 'standard' Linux or DOS filesystem, you may need extra software to 'see' it. (raid - lvm - etc.)
 
Old 12-04-2017, 08:02 AM   #8
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 808

Original Poster
Rep: Reputation: 76
Hi, original poster here. I am running Debian 9, aka Stretch. That disk is running as external via USB. No LVM. Here is some output:

Code:
# fdisk -l
(internal disk omitted)
Device     Boot Start        End    Sectors Size Id Type
/dev/sdb1           1 4294967295 4294967295  16T ee GPT

# cfdisk /dev/sdb
                                        Disk: /dev/sdb
                        Size: 2.7 TiB, 3000592977920 bytes, 732566645 sectors
                                 Label: dos, identifier: 0x0255a6c8

    Device            Boot               Start               End           Sectors        Size        Id Type
>>  /dev/sdb1                                1        4294967295        4294967295         16T        ee GPT

Last edited by lucmove; 12-04-2017 at 01:36 PM.
 
Old 12-04-2017, 04:01 PM   #9
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 202

Rep: Reputation: 63
You should be using gdisk and cgdisk with a GPT disk as fdisk and cfdisk just show the single partition in the protective MBR. Older versions can't read GPT partition tables.

Code:
Device     Boot Start        End    Sectors Size Id Type
/dev/sdb1           1 4294967295 4294967295  16T ee GPT
4294967295 X 512 = 2.19902325510 = 2.2TB = 2TiB = 32 bit maximum size for MBR formatted disks
This partition just marks the disk as used for older partition tools such as older versions of fdisk and cfdisk.

If you want to see the GPT partitions on this disk you need to use gdisk and cgdisk.
 
1 members found this post helpful.
Old 12-04-2017, 04:39 PM   #10
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 808

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by tofino_surfer View Post
If you want to see the GPT partitions on this disk you need to use gdisk and cgdisk.
None of them is helping:

Code:
#> gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.1

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

Creating new GPT entries.

Command (? for help): q
Code:
cgdisk 1.0.1

                Disk Drive: /dev/sdb
              Size: 732566645, 2.7 TiB

Part. #     Size        Partition Type            Partition Name
----------------------------------------------------------------
            2.7 TiB     free space
 
Old 12-05-2017, 03:53 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,175

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
uh oh.
"Creating new GPT entries."

fdisk from Debian 9 should have been OK.

Did this usb enclosure ever work as expected on any system?

Pretty sure you will have to boot to uefi. The disk will have to be seen correctly in bios entry. uefi presents hardware to the system kind of unlike bios forces hardware on system.
 
Old 12-05-2017, 04:08 PM   #12
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 808

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by jefro View Post
uh oh.
"Creating new GPT entries."
I don't believe gdisk would make any changes to the disk without an express command and a confirmation.

Quote:
Originally Posted by jefro View Post
Did this usb enclosure ever work as expected on any system?
Yes, but with a 1TB disk formatted with MBR.
 
Old 12-05-2017, 08:22 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,175

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
I too think it should but seems an odd output statement.

Then I get the feeling there may be some limit to the box?? (enclosure I meant edited)

Last edited by jefro; 12-06-2017 at 05:43 PM.
 
Old 12-05-2017, 09:27 PM   #14
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 202

Rep: Reputation: 63
Quote:
Originally Posted by jefro View Post
Did this usb enclosure ever work as expected on any system?

Yes, but with a 1TB disk formatted with MBR.
It could be that it is the USB enclosure that is old and doesn't support GPT. In the original post the OP was claiming that the notebook was old but as it has native EFI it definitely supports GPT. The OP may need to get a newer USB enclosure.

I have found a couple of links that explain the problem with enclosures that only support 32-bit LBA which has a 2.2TB limit. Since GPT uses 64-bit LBA any such enclosures can't understand GPT.

https://drbobtechblog.com/not-all-us...-need-to-know/

https://superuser.com/questions/3084...sb-hard-drives

Quote:
Some enclosures have a 2TiB limit, irrespective of the partition type. This is because the USB-SATA bridge IC's firmware can only address 32-bit LBAs. The firmware in newer enclosures can address the full 48 bits.

Last edited by tofino_surfer; 12-07-2017 at 12:50 PM. Reason: Added web references
 
1 members found this post helpful.
Old 12-08-2017, 02:51 PM   #15
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 808

Original Poster
Rep: Reputation: 76
So I got a new case, rated to be 8TB compatible, and now it works.

FYI, fdisk and cfdisk work just fine.

Solved.
 
  


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 06:24 AM
[SOLVED] GPT hard disk support san2ban Dragora GNU/Linux-Libre 4 10-31-2014 11:15 PM
[SOLVED] GPT on 512B sector disk yenn Linux - Hardware 2 08-22-2013 11:57 AM
sda must have gpt disk label a.abdulna Linux - Newbie 1 03-11-2013 09:52 AM
Help!!! Unable to convert GPT disk!!! kramer2718 Linux - Software 2 03-14-2009 10:44 PM

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

All times are GMT -5. The time now is 07:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration