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

Re: Replicating Linux?




My fault. I didnt know that was part of your presentation.

Everyone please ignore these messages.

--
-------------------------------------------------------------------------------
         Finger syellig@deepthought.dyndns.com for PGP public keys.
-------------------------------------------------------------------------------

On Sat, 20 Dec 1997, Bruce Smith wrote:

> > 	cd /tmp
> > 	tar -zpcvf /tmp/root.directory.tgz / --exclude /tmp --exclude /proc
> > 
> > Then, throw the other disk in there. mkfs -t ext2 it, and mount it under
> > /mnt To put the other filesystem on it you would:
> > 
> > 	cd /mnt
> > 	tar -zpxvf /tmp/directory.tgz
> 
> Sure, make me tell everyone the most exciting part of my Sunday 
> presentation early!   :{)
> 
> # Here is an easier way to do the copy directly from disk to disk
> # using tar.  No intermediate file needed.
> 
> mke2fs -c /dev/xdxx   # new disk partition.
> mount /dev/xdxx /mnt  # new disk partition.
> (cd /; tar clpf - .) | (cd /mnt; tar xpf -)
> #           ^
> # Please note, the first tar has a lowercase letter "L" option,
> # NOT the number one.  This keeps tar from crossing file systems,
> # so it skips /proc, /mnt, and all other mounted file systems.
> 
> # You may also need to modify /etc/fstab, /etc/lilo.conf, /etc/hosts,
> # and change the IP address on the new disk.
> 
> --------------------------------------------
> Bruce Smith                bruce@armintl.com
> System Administrator / Network Administrator
> Armstrong International, Inc.
> Three Rivers, Michigan  49093  USA
> --------------------------------------------
>