Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Ghosting" Linux
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
linuxgirlie
LXF regular


Joined: Sat Apr 09, 2005 7:34 pm
Posts: 787
Location: Kent...UK

PostPosted: Tue Jul 12, 2005 10:51 am    Post subject: "Ghosting" Linux Reply with quote

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:www.linuxschools.com
Back to top
View user's profile Send private message Send e-mail
A-Wing
LXF regular


Joined: Tue Jul 05, 2005 8:25 pm
Posts: 460
Location: Wellingborough

PostPosted: Tue Jul 12, 2005 12:15 pm    Post subject: RE: "Ghosting" Linux Reply with quote

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 Smile
_________________
Andrew Hutchings, Linux Jedi
www.a-wing.co.uk
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Flea
LXF regular


Joined: Fri Apr 08, 2005 2:03 pm
Posts: 258
Location: Ferryhill, Co. Durham

PostPosted: Tue Jul 12, 2005 3:03 pm    Post subject: RE: "Ghosting" Linux Reply with quote

There is Ghost for Linux but I have never tried it.
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4262
Location: wild West Wales

PostPosted: Tue Jul 12, 2005 3:21 pm    Post subject: RE: "Ghosting" Linux Reply with quote

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

the perfect machine, hmmm, is that not an oxymoron? unless it is a two wheeled wheelbarrow Laughing
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
fingers99
LXF regular


Joined: Thu Apr 07, 2005 7:15 pm
Posts: 143

PostPosted: Tue Jul 12, 2005 6:22 pm    Post subject: RE: "Ghosting" Linux Reply with quote

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.
Back to top
View user's profile Send private message
bigblack



Joined: Thu May 12, 2005 10:54 am
Posts: 72
Location: uk

PostPosted: Wed Jul 13, 2005 7:39 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Nobber
LXF regular


Joined: Mon Apr 11, 2005 4:24 pm
Posts: 370
Location: Nova Scotia

PostPosted: Thu Jul 14, 2005 9:58 am    Post subject: Reply with quote

What's wrong with good old cp?
_________________
800 LINES ERIC - GET BACK TO PYSKOOL
Back to top
View user's profile Send private message
A-Wing
LXF regular


Joined: Tue Jul 05, 2005 8:25 pm
Posts: 460
Location: Wellingborough

PostPosted: Thu Jul 14, 2005 10:59 am    Post subject: Reply with quote

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
www.a-wing.co.uk
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mugstar
LXF regular


Joined: Mon Apr 11, 2005 1:43 am
Posts: 184
Location: Scotland

PostPosted: Thu Jul 14, 2005 11:31 am    Post subject: Re: RE: "Ghosting" Linux Reply with quote

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
Back to top
View user's profile Send private message
Nobber
LXF regular


Joined: Mon Apr 11, 2005 4:24 pm
Posts: 370
Location: Nova Scotia

PostPosted: Thu Jul 14, 2005 11:34 am    Post subject: Reply with quote

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.

Quote:
or any virtual sockets?

I don't even know what they are. Confused
Back to top
View user's profile Send private message
nordle
LXF regular


Joined: Fri Apr 08, 2005 10:56 pm
Posts: 1500

PostPosted: Thu Jul 14, 2005 9:43 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
linuxgirlie
LXF regular


Joined: Sat Apr 09, 2005 7:34 pm
Posts: 787
Location: Kent...UK

PostPosted: Sun Jul 17, 2005 9:41 am    Post subject: Reply with quote

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:www.linuxschools.com
Back to top
View user's profile Send private message Send e-mail
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4262
Location: wild West Wales

PostPosted: Sun Jul 17, 2005 10:40 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
A-Wing
LXF regular


Joined: Tue Jul 05, 2005 8:25 pm
Posts: 460
Location: Wellingborough

PostPosted: Mon Jul 18, 2005 7:42 am    Post subject: Reply with quote

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
www.a-wing.co.uk
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8464
Location: Warrington, UK

PostPosted: Mon Jul 18, 2005 1:04 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast