[CentOS] 6.5 single user mode

Les Mikesell lesmikesell at gmail.com
Wed Feb 5 13:57:44 UTC 2014


On Wed, Feb 5, 2014 at 5:44 AM, Steve Clark <sclark at netwolves.com> wrote:
>
> If what you are really doing is the equivalent of cloning images, you
> might look at clonezilla, or the backup/restore package called rear
> (in EPEL).   But for a quick brute-force change, you could probably
> edit /etc/init/rcS-sulogin.conf and add the script you want to replace
> /sbin/sushell.
>
> Hi Les,
>
>     Yes I found that file - Thanks.
>

I'd still recommend looking at clonezilla and rear.  Clonezilla-live
is a CD you boot to save/restore images - and there is also a network
server version for PXE booting and image storage.  The good part is
that it can handle windows along with most linux versions.  The down
side is that the restore disk has to be the same size or larger.
Rear is a set of shell scripts that use your own system tools to build
a bootable image containing the scripts you need to partition, format,
and restore (pretty much exactly what you are doing but with more
options).   It is really intended as a backup with a fast simple
restore back on the same hardware, but you have an opportunity to
change the disk layout if needed so it works for cloning or moving a
working system.

In an case, the other thing new in 6.x is that you need to remove the
udev rules for the NICs or update them with the new MAC addresses or
the cloned machine will start its ethx names above the old ones, plus
fix the /etc/sysconfig/network-scripts/ifcfg-ethx files like you did
in 5.x.

-- 
  Les Mikesell
    lesmikesell at gmail.com



More information about the CentOS mailing list