On 11/27/2016 05:34 PM, k-16@trixtar.org wrote:
Try booting by-uuid or by-label, and it might work better / more reliable. That's a non-starter for me, it may be more reliable in some ways but it's too many headaches for me as I use dd blatantly, all the time, to copy partitions :-)
That /shouldn't/ be a problem. Or rather it wouldn't be a problem for me, if I used DD to copy. Sometimes I use rsync. that's very useful when I'm face with my ~/MyPhotographs/ByYear and want to move part of the tree, say 2015, to a new partition. I can also use it with 'find' to do more specific filtering. I mention this as moving part of partition, splitting a partition, freeing up space, archiving, is more common for me, and I suspect a number of other people. that simply shuffling partitions. When I do need to copy a partition as a while, well I use LVM, remember :-) That has the ability to move a 'partition', or as LVM terms it, a Logical Volume (LV). Simply take a snapshot and copy that. heck, the snapshot only need to be as big as space used on the primary, so you can use this technique to shrink or grow a 'partition'! If you’re using the same size partitions you could use dd, or even xfs_copy if you’re using XFS. However if what you are doing is a "move", that is a copy/delete-the-original, migrating to a new physical drive, the 'pvmove' command can do that all in one go. But in the absence of LVM, simply using DD to copy, yes it copies the whole image, and with it the UUID and label information But so what? You can simply - and immediately, before you forget - relabel the new partition and set a new uuid The 'swaplabel' command can be used for this, do them both with one command: swaplabel -L NEWLABEL -U $(uuidgen) /dev/sdXXXnnn There are probably other ways, after all this is Linux and Larry's Dictum usually applies" "There's more than one way to do that". -- /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org