Re: cpio copy linux installation (FC3)?



I used cpio to copy my FC3 installation from one volume to another on the
same machine. It seems to work but I'd like to be sure I've done it
properly and won't see wierd problems later when I upgrade to FC5. My
procdeure was to:

make a new LVM partition and filesystem the same size as original
(actually I resized a FC5t3 partition and filesystem and
did a "rm -rf /" on it)
boot from (FC5) rescue CD
mkdir /mnt/new
mount /dev/VolGroup00/LogVol02 /mnt/new
cd /mnt/sysimage
find . -depth -noleaf -xdev -size -102400K -print0 | cpio -dumpa0 --sparse /mnt/new
vi /mnt/new/fstab # edit to refer to LogVol02
# here would have been a good time to: touch /mnt/new/.autorelabel
umount /mnt/new
exit
boot original FC3
cream /boot/grub/grub.conf # add new stanza for same kernel new LVM
(gedit couldn't save the file)
boot new installation with kernel option "enforcing=0"
(eventually, after much horsing around with locking issues, etc.,
I decided that selinux was the problem and found the solution,
which was to setenforce 0, mount the new copy, touch its
/.autorelabel, unmount it, setenforce 1, and reboot as above.)

Some might say that I should have used dump and restore. Is there an
advantage over using cpio? I could have just used dd, but I tried cpio both
as a learning experience and in order to optimize the filesystem.
____________________________________________________________________
TonyN.:' <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
' <http://www.georgeanelson.com/>

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: cpio copy linux installation (FC3)?
    ... properly and won't see wierd problems later when I upgrade to FC5. ... make a new LVM partition and filesystem the same size as original ... boot from rescue CD ... I could have just used dd, but I tried cpio both ...
    (Fedora)
  • how can I make a partion bootable
    ... I trying to workout some kind of backup plan, I've got as far as making ... a cpio archive of my all my files, putting in a new hard drive creating ... I can boot from a floppy using boot wd0a:/bsd. ... mount second drive as /backup ...
    (comp.unix.bsd.openbsd.misc)
  • Help with solving an error message on a cpio backup
    ... cpio backup of the Operating System "/" filesystem. ... When performing the / filesystem backup, ... As the user had just decided to purchase their own media, ...
    (comp.unix.sco.misc)
  • StorEdge 6130 Woes
    ... I have a brand new 6130 which I ... have configured with three 25G volumes and have assigned them to a host. ... 25G filesystem. ... When I try to cp or cpio another 19G directories contents into the new ...
    (SunManagers)
  • Re: Death of a drive
    ... about to snuff it (clicks on boot, ... then what flag do I need for all of the hidden directories and files?) ... Back in the old days, i would have used cpio, but nowadays i use 'cp ...
    (uk.comp.os.linux)