James Knott said the following on 02/28/2010 03:00 PM:
I'm in the process of replacing a notebook computer hard drive with a larger one. I can use dd to copy non-LVM partitions to a file on a USB drive, but that doesn't seem to work with LVM.
That doesn't make sense on a number of counts. First, I've jsut done dd if=/dev/vgmail/HOME of=/dev/null 3096576+0 records in 3096576+0 records out 1585446912 bytes (1.6 GB) copied, 69.2074 s, 22.9 MB/s So: dd works. Secondly, copying the paritions as paritions doesn't make a lot of sense for a number of reasons. If this an LVM why not just use the LVM tools to create a LVM on the USB drive and then "pvmove" the contents of the WHOLE LVM in one go. (Or any number of other permutations using the lvm tools) If you don't like working exclusively with LVM why not use one of CPIO, RSYNC or ever CP Finally - why are you doing this? I can think of a number of things, but you said ="replacing"=. Might I speculate that the current drive is either dying or that you want a bigger drive? After all, large capacity 2.5" drive are getting cheaper. But in that case, why DD "to a file" ? What is the overall objective here? If we knew, we might be able to come up with a more effective strategy than just answering your question about DD. -- Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity. -- George S. Patton -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org