up vote 1 down vote favorite
share [g+] share [fb]

I want to restore a HDD image I have to my laptop's HDD while booted off the Ubuntu Live CD.

The laptop's HDD is unformatted and has no partitions.

I expected this to work:

$ sudo dd if=/path/to/backup.img of=/dev/sda

But I'm told

dd: opening `/dev/sda': Permission denied.

What gives?

link|improve this question

25% accept rate
Are you sure there are no partitions? Check back with sudo fdisk -l and mount, maybe something got mounted 'by accident'. – Bobby Feb 3 '10 at 13:05
@Bobby Yeah - I got it working, see my answer, but don't understand why. – f100 Feb 3 '10 at 13:13
feedback

1 Answer

Hmm. Doing a su first worked. Why's this?

$ sudo su
# dd if=/path/to/backup.img of=/dev/sda
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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