Anton Aylward wrote:
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.
As I mentioned in my first note, I'm putting in a larger drive. My original plan was to put the old drive in an external USB case, the new drive in the computer and then just copy stuff over. However, I then remembered that USB drives don't support multiple partitions. Since this is a notebook computer, it is not possible to have both drives connected at the same time using the IDE connections. This means I have to copy the partitions to files on the USB drive and then restore them to the new drive. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org