That's because "/media/diskname" is a mountpoint, not a device.
If sdb is the device that is mounted there, you would want to first unmount it
and then run ddrescue like this:
sudo ddrescue /dev/sdb1 /dev/sda1 log
Where sda1 is the target hard disk partition that you want to *overwrite*.
If you only want to create an image as a file on sda1, then mount it, change
directory to it and run
sudo ddrescue /dev/sdb1 image log
Where "image" is the file and log is another file which is the recovery log.
You need to recovery log to be able to resume the process, if you interrupt it.
Good Luck!
Andrew Zajac
--- On Thu, 10/9/08, psychosocial <[EMAIL PROTECTED]> wrote:
From: psychosocial <[EMAIL PROTECTED]>
Subject: [Bug-ddrescue] Telling me my drive is a directory and won't copy?
To: [email protected]
Received: Thursday, October 9, 2008, 9:03 PM
Hey all, after searching around on various search engines and looking on here
I thought I'd ask if you could help me.
I am currently trying to recover data from a USB HDD hooked up to Hardy
Heron (Ubuntu) using ddrescue. My problem is that when I type the command
(sudo ddrescue /media/diskname /dev/sda1), ddrescue starts but everything it
tries to copy shows at the bottom "/media/diskname is a directory!"
I read the man page but nothing jumped out to me at what I was wrong! If
someone could give me pointers on the weird message it would be a great
help.
Thanks
Psychosocial
--
View this message in context:
http://www.nabble.com/Telling-me-my-drive-is-a-directory-and-won%27t-copy--tp19910201p19910201.html
Sent from the Gnu - ddrescue mailing list archive at Nabble.com.
_______________________________________________
Bug-ddrescue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-ddrescue
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your
favourite sites. Download it now at
http://ca.toolbar.yahoo.com._______________________________________________
Bug-ddrescue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-ddrescue