LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2013, 05:47 AM   #1
unixunderground
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Rep: Reputation: Disabled
Question External HD partitions disappeared after installing it directly to computer via SATA


I had an external 4TB drive (WD MyBook) that had been working without issues for several months, that I now decided to mount on the same computer, but only via SATA , as to get faster transfer speeds than via USB 2.0 .

So anyways, I removed it from its enclosure, connected it via SATA, booted the computer but then when I tried mounting it, issues started arising.

First of all, I launched gparted, which showed the disk as "unallocated" and printed a "Error: Unable to open /dev/sda - unrecognised disk label."

So then I googled a bit, and followed this guide I found online.

That solved the "unrecognized disk label" issue right away, but however upon opening gparted again, the entire disk is still being showed as "unallocated"

How could this happen? Is there any way to fix this or should I consider all my files and partitions permanently deleted? What did I do wrong?

BTW, I am running Debian 7 Wheezy with everything updated to the latest releases.

Thanks in advance to anyone who will take time to help me out

EDIT:
Here's an fdisk -l , which as you can see seems to be indicating that the disk is empty, even though it most definitely isn't.
Quote:
Disk /dev/sda: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders, total 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000cc802

Device Boot Start End Blocks Id System

Disk /dev/sdb: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders, total 156312576 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 identifier: 0x000b8fe1

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 149886975 74942464 83 Linux
/dev/sdb2 149889022 156311551 3211265 5 Extended
/dev/sdb5 149889024 156311551 3211264 82 Linux swap / Solaris

Last edited by unixunderground; 11-02-2013 at 06:15 AM.
 
Old 11-02-2013, 12:47 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Check if the drive uses some form of encryption?
 
Old 11-02-2013, 04:50 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,127

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by unixunderground View Post
What did I do wrong?
- not properly investigating the issue
- not understanding the ramifications of following that internet advice
- not taking a backup
...

What is most important is the messages (see dmesg) at time of error. If there were any.
As the parted doco says mklabel writes a new partition table - by definition empty. The fdisk listing is looking at the partition table, not what's actually on the disk, so your data is probably "safe".
Given the size of the disk, I'd be guessing gpt as the proper (initial) partition structure (label type) - but that shouldn't of itself cause a problem. I'm surpised parted (and gparted) couldn't handle gpt, so the problem is likely something else.
"testdisk" is the normal answer to partition screw-ups, and appears to support gpt. It may be able to rebuild a gpt partition structure to get at your data - most people report good things about it.
 
  


Reply

Tags
externalharddrive, hard disk, partitions, sata, usb



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
Connect 3.5" SATA HDD to Laptop directly over SATA into bay (not Firewire and USB) browny_amiga Linux - Hardware 15 12-07-2012 04:33 PM
troubles mounting USB pendrives, external e-sata HD or PC partitions on gnome [ITA]freeware Debian 4 10-16-2010 05:16 AM
Installing Debian to a hard drive that is connected to the computer by a SATA card aarcov Linux - Hardware 6 06-16-2010 08:15 AM
Installing IDE HD on computer with SATA - dual boot XP - Ubuntu intended Nermi Linux - Hardware 4 02-10-2010 09:37 PM
no SATA when compiled directly (SATA on SCSI) evil_empire Linux - Hardware 5 02-13-2006 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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