"Ghosting" Linux

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

"Ghosting" Linux

Postby linuxgirlie » Tue Jul 12, 2005 9:51 am

Two questions,

Is there a way of 'ghosting' Linux to other hard drives?

If yes,

Can you ghost Linux as a dual boot?

As I have set up a 'perfect' machine, and wish to basically just 'copy' as I don't want to set it up again and again...just being lazy :wink:
My knowledge comes with no warranty...........

Server operating system designed for schools:http://www.linuxschools.com
linuxgirlie
LXF regular
 
Posts: 787
Joined: Sat Apr 09, 2005 6:34 pm
Location: Kent...UK

RE: "Ghosting" Linux

Postby A-Wing » Tue Jul 12, 2005 11:15 am

1. Yes but how you do it depends on the size of the old and new disks (same or different). I haven't seen a nice Linux program do it yet, the best I have found is dd_rescue (a bit like dd but with more intelligence). If you don't mind forking out Norton Ghost will do it.

2. Shouldn't be a problem, both dd_rescue and Ghost should do this.

I have yet to see a perfect machine, but I'm sure you will have geeks making a pilgrimage if you have one :)
Andrew Hutchings, Linux Jedi
http://www.a-wing.co.uk
User avatar
A-Wing
LXF regular
 
Posts: 460
Joined: Tue Jul 05, 2005 7:25 pm
Location: Wellingborough

RE: "Ghosting" Linux

Postby Flea » Tue Jul 12, 2005 2:03 pm

There is Ghost for Linux but I have never tried it.
User avatar
Flea
LXF regular
 
Posts: 258
Joined: Fri Apr 08, 2005 1:03 pm
Location: Ferryhill, Co. Durham

RE: "Ghosting" Linux

Postby towy71 » Tue Jul 12, 2005 2:21 pm

looks like something I would try here: http://www.feyrer.de/g4u/ good luck ;-)

the perfect machine, hmmm, is that not an oxymoron? unless it is a two wheeled wheelbarrow :lol:
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4266
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

RE: "Ghosting" Linux

Postby fingers99 » Tue Jul 12, 2005 5:22 pm

There's also partition image.

But how successful such a process will be is going to depend very much on the similarities (or differences) in the two sets of hardware. If they are pretty different, it'd probably be easier just to do a re-install and copy over /home and /var.
fingers99
LXF regular
 
Posts: 143
Joined: Thu Apr 07, 2005 6:15 pm

Postby bigblack » Wed Jul 13, 2005 6:39 pm

I would use partimage. Just copy - compress - either store or burn the resulting images to cd's/dvd's - setup partitions of the same size or slightly larger on the new hdisk - then use partimage to copy to new hdisk.

You may need to reinstall lilo - if you use lilo. (I have had a problem with this in the past.)

You should be able to knoppix for the partimage program.

Good Luck
bigblack
 
Posts: 72
Joined: Thu May 12, 2005 9:54 am
Location: uk

Postby Nobber » Thu Jul 14, 2005 8:58 am

What's wrong with good old cp?
800 LINES ERIC - GET BACK TO PYSKOOL
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

Postby A-Wing » Thu Jul 14, 2005 9:59 am

Nobber wrote:What's wrong with good old cp?


You ever tried to cp a /dev directory? or any virtual sockets?
Andrew Hutchings, Linux Jedi
http://www.a-wing.co.uk
User avatar
A-Wing
LXF regular
 
Posts: 460
Joined: Tue Jul 05, 2005 7:25 pm
Location: Wellingborough

Re: RE: "Ghosting" Linux

Postby mugstar » Thu Jul 14, 2005 10:31 am

towy71 wrote: a two wheeled wheelbarrow

IMHO, the upgrade from w_barrow-1.x.x to w_barrow-2.0 would almost certainly result in stability problems. :wink:
mugstar
LXF regular
 
Posts: 184
Joined: Mon Apr 11, 2005 12:43 am
Location: Scotland

Postby Nobber » Thu Jul 14, 2005 10:34 am

A-Wing wrote:You ever tried to cp a /dev directory?

Yep, several times (when moving root filesystems from one partition to another). Always worked perfectly.

or any virtual sockets?

I don't even know what they are. :?
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

Postby nordle » Thu Jul 14, 2005 8:43 pm

For creating backups of an entire system, I favour dar, as it creates a simple image style archive of a directory or filesystem.
Dar can span across media sizes of your choice, ignore the contents of mount points etc if needed.

These are the commands I used on Slackware, but your's is RPM based IIRC.

Install dar with:
>ln -s /usr/lib/libattr.a /lib/libattr.a
>ln -s /usr/lib/libattr.la /lib/libattr.la
>ln -s /usr/lib/libattr.so /lib/libattr.so
>CFLAGS="-O2 -march=i686 -mcpu=i686" CXXFLAGS="-O2 -march=i686 -mcpu=i686" ./configure && make
>make install

dar -h will show a list of commands/options.

An example of creating a backup of root filesystem, excluding other mounted directories:

-c = Create archive
/mnt/backups/axia = Location and name of archive (if using spanning then numbers will be attached to the end automatically)
-R / = Archive the whole filesystem
-P mnt/*.* = Ignore the contents of these directories
-P proc = Same as above, use relative paths not absolute eg proc instead of /proc
-X "*~" = Ignore filenames which have this pattern
-X "*.dar" = Don't backup the backups
-z1 = Compression level 1-9, 1 being lowest level and quickest.
-s695M = Span the backups over 695MB slices, so can be copied to CD
-D = The directories ignored with -P should be created, but empty.
-e = Do a dummy run to test validity of settings, remove -e for real run

>dar -c /mnt/backups/axia -R / -P mnt/*.* -P dev/pts -P proc -P sys -P wingen -P tmp -X "*~" -X ".*~" -X "*.dar" -z1 -s695M -D -e
I think, therefore I compile
User avatar
nordle
LXF regular
 
Posts: 1500
Joined: Fri Apr 08, 2005 9:56 pm

Postby linuxgirlie » Sun Jul 17, 2005 8:41 am

Thanks for all you help, I'll have to have a look into each of these and see what works for me!!
My knowledge comes with no warranty...........

Server operating system designed for schools:http://www.linuxschools.com
linuxgirlie
LXF regular
 
Posts: 787
Joined: Sat Apr 09, 2005 6:34 pm
Location: Kent...UK

Postby towy71 » Sun Jul 17, 2005 9:40 am

There is also the UltimateBootDisk which has two hard disk cloning utilities and a partition saving program too, amongst its handy tools.
I have to say for those using secondhand and gash computers it is a very handy thing to have around.
Dick
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4266
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

Postby A-Wing » Mon Jul 18, 2005 6:42 am

I think I have a voodoo bag somewhere, shove both hard drives in with some choice ingrediants, shake well and you have a cloned hard drive (and a voodoo doll of Steve Ballmer)
Andrew Hutchings, Linux Jedi
http://www.a-wing.co.uk
User avatar
A-Wing
LXF regular
 
Posts: 460
Joined: Tue Jul 05, 2005 7:25 pm
Location: Wellingborough

Postby nelz » Mon Jul 18, 2005 12:04 pm

A-Wing wrote:You ever tried to cp a /dev directory? or any virtual sockets?


cp -x will fix that, copying it if it is static and skipping it if it is handled dynamically by devfs or udev.
User avatar
nelz
Site admin
 
Posts: 8552
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Next

Return to Help!

Who is online

Users browsing this forum: No registered users and 2 guests