Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have got a 320gb external hdd (seagate) and few days ago it stopped working.. when connect to a PC i can see the hdd is connect but can not view the files inside it... when used in windows 7 OS the PC hangs. Please help me recover the data..

psp@psp-VirtualBox:~$ sudo fdisk -l 
[sudo] password for psp:  

Disk /dev/sda: 34.4 GB, 34359738368 bytes 
255 heads, 63 sectors/track, 4177 cylinders, total 67108864 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: 0x000b1bdd 

   Device Boot      Start         End      Blocks   Id  System 
/dev/sda1   *        2048    62914559    31456256   83  Linux 
/dev/sda2        62916606    67106815     2095105    5  Extended 
/dev/sda5        62916608    67106815     2095104   82  Linux swap / Solaris 

psp@psp-VirtualBox:~$  sudo testdisk

Select a media (use Arrow keys, then press Enter): 
>Disk /dev/sda - 34 GB / 32 GiB - VBOX HARDDISK  
 Disk /dev/sr0 - 55 MB / 52 MiB (RO) - VBOX CD-ROM 

>[Proceed ]  [  Quit  ] 

Note: Disk capacity must be correctly detected for a successful recovery. 
If a disk listed above has incorrect size, check HD jumper settings, BIOS 
detection, and install the latest OS patches and disk drivers. 

please help me..... I need the data on this HDD..

share|improve this question
What happens when you cd into the HDD and run ls (or can you even)? Also, which device is it (eg. /dev/sda, /dev/sdb)? –  RPi Awesomeness Dec 16 '13 at 17:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.