LinuxQuestions.org
Visit Jeremy's Blog.
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 08-31-2020, 05:29 AM   #1
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 43

Rep: Reputation: 15
Failed to read extended partition table (offset=xxx): Invalid argument


Hi,
I am trying to mount an old hard drive, the HDD is connected via USB.
Usually they mount automatically however, with this one it refuses to mount.
This is the output for fdisk.
Any help will be appreciated.
Code:
sudo fdisk -l -u /dev/sdb 
Failed to read extended partition table (offset=539080702): Invalid argument
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 122096646 sectors
Disk model: 00BPVT-22HXZT3  
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xda81b32c

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1            2048  29277975  29275928 111.7G 27 Hidden NTFS WinRE
/dev/sdb2  *     37750784  37955583    204800   800M  7 HPFS/NTFS/exFAT
/dev/sdb3        37955584 539078655 501123072   1.9T  7 HPFS/NTFS/exFAT
/dev/sdb4       539080702 976771071 437690370   1.6T  5 Extended
 
Old 08-31-2020, 05:38 AM   #2
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
fdisk says it's a 465GiB disk, but partitions 3 and 4 are each in the terabyte ranges. I conclude that the partition table is heavily damaged.

Perhaps plugging it into a Windows PC and attempting to repair it there is a solution.
 
Old 08-31-2020, 05:52 AM   #3
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 43

Original Poster
Rep: Reputation: 15
I don't have a windows PC, any way to fix it with Linux?
 
Old 08-31-2020, 06:00 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,142

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Have a look at testdisk - just use it to scan for lost partitions. Go to the site, read the doco carefully; the hands-on tutorials are handy.

You could rescue that third partition which is likely the major Windows system pretty simply by redefining the partition to cover the rest of the disk (after deleting part4) and work on the size of the filesystem to guess the true partition size. Then redefine the extended and go looking for logicals. Fiddly, and should be unnecessary as testdisk is very good usually.
 
Old 08-31-2020, 12:01 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,963

Rep: Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332
You might try to copy the disk image into your hdd.
sdb2 is probably irrelevant (just a small boot partition). sdb1 [probably] can be mounted, but you may need to specify the filesystem type. Obviously in readonly mode.
sdb3 and sdb4 are most probably useless (especially an extended partition itself contains no filesystem at all). If this partition table contains valid information at all.
The other way could be post #4, testdisk.
 
  


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
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
Error, some other host already uses address xxx.xxx,xxx,xxx ryan462 Linux - Networking 20 01-24-2010 11:14 PM
smbclient -M xxx.xxx.xxx.xxx Doesnt Work DiscreetControl Linux - Networking 7 12-28-2007 10:50 AM
Need to separate the following value 'xxx.xxx.xxx.xxx:xx:xx' SlowCoder Linux - General 3 09-14-2007 04:19 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM

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

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