[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding a new boot disk while keeping old disk



Charlie Gibbs <cgibbs@surfnaked.ca> writes:

> 5. Copy directories from the original drive to the new drive:
>     sudo rsync -av /bin   /mnt/backup
>     sudo rsync -av /etc   /mnt/backup
>     sudo rsync -av /lib   /mnt/backup
>     sudo rsync -av /lib64 /mnt/backup
>     sudo rsync -av /opt   /mnt/backup
>     sudo rsync -av /sbin  /mnt/backup
>     sudo rsync -av /usr   /mnt/backup
>     sudo rsync -av /var   /mnt/backup
>     sudo rsync -av /home  /mnt/backup

It seems to me there are that things that are not be handled by rsync
-a, namely acls and extended attributes and SELINUX context too. At
least.

>From a little googling it seems GDM at least changes ACLs of some things
so maybe that's the problem? Some use of getfacl might show differences
in ACLs. I don't really understand the /tmp writing issue though.

Anyways, I usually image when cloning drives. Either partition by
partition with partclone or whole disk with dd, possibly doing file
checksums before and checking after to make sure.


Reply to: