0

I've booted up arch live cd, with the idea of creating a disk image. There are 2 hdds (/dev/sda - i want this image, and /dev/sdb - the image will be copied here, but as a backup file (not rewrite), so i can use it later)

fdisk output

So I mounted the /dev/sdb1 as:

mount -t auto /dev/sdb1 /mnt/hdd 

And then i tried

ddrescue if=/dev/sda of=/mnt/hdd/backup.dd

But it failed saying cant open input file, no such file or directory.

What am I doint wrong?

5
  • sda1 rather than just sda?
    – Kusalananda
    Commented Jun 16, 2016 at 16:26
  • @Kusalananda that would just create an image of the first partition, which is usually not what you want when you're trying to make an image of the whole disk. Commented Jun 16, 2016 at 16:33
  • Ah, sorry, my bad.
    – Kusalananda
    Commented Jun 16, 2016 at 16:34
  • @Horkyze please post a screen shot of the ddrescue command you entered along with the output. Without that we can't be sure that there isn't a typo somewhere in your command. Please also post a screenshot of the results of ls -l /dev/sd*. Commented Jun 16, 2016 at 16:34
  • On the screenshot, where it says I/O error, device fd0 -- fd0 usually signifies the first floppy disk. Perhaps there's some other reason not given for imaging the first hard disk /dev/sda?
    – agc
    Commented Jun 16, 2016 at 16:57

1 Answer 1

3

According to its man page, ddrescue should be called like this:

SYNOPSIS
       ddrescue [options] infile outfile [logfile]

So, in your specific case, ddrescue /dev/sda /mnt/hdd/backup.hdd; no if= or of=.

1
  • i feel embarrassed now why did i assume that the synopsis is same as dd... thanks
    – Horkyze
    Commented Jun 16, 2016 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .