[Wylug-help] copy /dev

Stephen Patterson steve at patter.mine.nu
Sat Feb 17 15:30:39 GMT 2007


On 17 Feb 07, Don Magee (don at leedsweb.dyndns.org) wrote:
> I feel sure that there is a simple answer to this question but I haven't 
> found it yet. I am making a copy of a boot disk to put on a different 
> machine. I've used dd in the past and it all works fine. But this time 
> the partition size is different so I am using cp. But how do you make an 
> exact copy of /dev. There doesn't seem to be a cp option or a specific 
> program to do the job.

With the right options, rsync can do it

rsync -av -x --delete /dev/* /mnt/dev

-- 
Stephen Patterson :: steve at patter.mine.nu :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: patter at jabber.earth.li 
"Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://list.wylug.org.uk/pipermail/wylug-help/attachments/20070217/067d7108/attachment.bin


More information about the Wylug-help mailing list