Creating and restoring image backups

~TraydenT~ traydent at gmail.com
Wed Sep 23 12:05:47 UTC 2009


Hi,
Le 23/09/2009 13:39, J Bickhard a écrit :
> Okay, I went into the teminal and typed in
>
> sudo dd if=/media/disk-1 of=/media/disk/disk.img
>   
When you use dd, you work under the filesystem, so the input file (if),
when backing up, should be a block/character device like /dev/sda3 or
even /dev/sda for the whole disk with partition table and data as well.
> It said
>
> dd: reading `/media/disk-1': Is a directory
> 0+0 records in
> 0+0 records out
> 0 bytes (0 B) copied, 0.00120255 s, 0.0 kB/s
>
> Then I was back at the prompt, I tried to close the window, but it
> said that the windows was running a process, so I figured it was
> running in the background. 12 hours later, I come back to find
> disk.img on my external drive, but it has a size of 0. Nothing. Zippo.
>   
This may be due to the fact that you are running a shell as root via
«sudo -s» or «sudo su» or «sudo -i»
To check if a process is running, try «ps» : this will list the running
commands in the current shell.
If you want to monitor the progress of the dd command, you have to send
a signal to the process (kill and pidof commands are useful to do this :
take care when you use the kill command).
> What did I do wrong THIS time?
>   
Like I said above, you used bad input file : use /dev/sda for a complete
backup of the whole disk. And unmount it if it is mounted to avoid
unwanted changes during backup.
> Jake (dats me)
>   
-- 
~TraydenT~





More information about the ubuntu-users mailing list