Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Linux-vserver guest I want to dump the whole disk of. I have no access to the host.

I tried:

dd if=/dev/hdv1 | gzip -c | ssh user@remote.host.net 'dd of=/path/to/file.img' bs=2048

but the result was:

dd: opening `/dev/hdv1': No such file or directory

Running df inside the linux-vserver guest gives this result:

root@vs8904:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdv1              1511856   1409764     25292  99% /
root@vs8904:~#

But:

root@vs8904:~# ls -al /dev/hd*
ls: cannot access /dev/hd*: No such file or directory
root@vs8904:~#

Is there any tool which will allow me this?

I can not have any access to the host machine hosting this linux-vserver.

share|improve this question
add comment

2 Answers

Is is a Linux-VServer guest? If so it's only a "advanced" chroot and your guest only have a virtual-disk that is actually a directory on the host. So dd will not work.

share|improve this answer
add comment

If you wish to do a full backup of a Linux-VServer, you need to use rsync and not dd. You should be able to find the relevant documentation on their website.

share|improve this answer
add comment

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.