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 a failing HDD that I want to recover data from, using ddrescue.

However, I don't know how to find the device name.

When I booted Ubuntu with the disk plugged in, Ubuntu seemed to get stuck trying to read the drive and seemed to be getting nowhere after 10mins. I rebooted with the disk unplugged, and plugged its sata cable in once the system had finished booting.

How can I find out what the device name is?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Run sudo fdisk -l in a terminal and it will list all connected disk drives and the partitions on them. If that does not work for some reason, see this webpage on how disks and partitions are named in Linux.

share|improve this answer
    
That command just lists the good disk. What does that mean? Since I didn't boot up with the bad disk connected, maybe I need to somehow scan for it? –  Highly Irregular Jun 8 '13 at 4:59
    
Well to me it sounds like Ubuntu doesn't recognize the disk. It may not be "failing," instead "failed" if this is so. Look at this webpage on how Linux drives and partitions are named: link Edit: I will add this to my answer now. –  Elijah Goforth Jun 8 '13 at 5:14
    
I suspended my PC for the night, and when I woke it the bad disk churned for about a minute before giving me my password prompt. Fortunately, the bad disk was then listed with another try of the 'sudo fdisk -l' command. I've got an image of the disk now, so I can proceed with the next step of my data recovery. Thanks very much for your help! –  Highly Irregular Jun 9 '13 at 10:05

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.