After I switched hard drives I moved my Freebsd to a new drive and now I would like to do the same with my Fedora 11.
The root partition is in a logical volume with ext4, so I could not use dump like in freebsd. So I tried to do it with rsync.
I have created the new logical volumes and formatted it with ext4 and (I guess) fixed the se-linux labels on it with "fixfiles relabel /dev/mapper/vg_dell2-lv_root" (at least I I get no labelling errors when I mount it). I mount it on /backup/root/
I then run "rsync -vaHxX --progress --numeric-ids / /backup/root/" following the guide http://www.sanitarium.net/golug/rsync_backups.html the "X" to keep the se-linux labels.
But the problem is that not all files are copied, like the selinux directory and the system does not boot up.
Does anyone know of an easy method recreate my linux system on another hard-drive?
I know even less of linux than freebsd so I might do something really dumb.
The root partition is in a logical volume with ext4, so I could not use dump like in freebsd. So I tried to do it with rsync.
I have created the new logical volumes and formatted it with ext4 and (I guess) fixed the se-linux labels on it with "fixfiles relabel /dev/mapper/vg_dell2-lv_root" (at least I I get no labelling errors when I mount it). I mount it on /backup/root/
I then run "rsync -vaHxX --progress --numeric-ids / /backup/root/" following the guide http://www.sanitarium.net/golug/rsync_backups.html the "X" to keep the se-linux labels.
But the problem is that not all files are copied, like the selinux directory and the system does not boot up.
Does anyone know of an easy method recreate my linux system on another hard-drive?
I know even less of linux than freebsd so I might do something really dumb.