Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Imaging tool
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Mow
Tux's lil' helper
Tux's lil' helper


Joined: 06 May 2003
Posts: 106

PostPosted: Sun May 18, 2003 10:08 pm    Post subject: Imaging tool Reply with quote

Is there anything like Norton's Ghost that can be used to image a system? I have ghost 7.5 but it doesn't compress the system well at all. It sees Linux fine and dandy but thinks there is something like 70 gig of info on there (when it's a basic fresh install).
Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Sun May 18, 2003 10:35 pm    Post subject: Reply with quote

You dont need to do system images with linux. All you have to do is copy everything from one hd to another and then setup those certain files that matter. Linux doesn't try to restrict you like win2k by generating some type of encryption code base on your hd serial # or something.

Chris
Back to top
View user's profile Send private message
Mow
Tux's lil' helper
Tux's lil' helper


Joined: 06 May 2003
Posts: 106

PostPosted: Sun May 18, 2003 11:02 pm    Post subject: Reply with quote

ahhhh .......... I've been so blinded by 'doze :)
Back to top
View user's profile Send private message
JoeW71
n00b
n00b


Joined: 07 May 2003
Posts: 27
Location: Umea, Sweden

PostPosted: Wed May 21, 2003 1:19 pm    Post subject: Reply with quote

Mmmm I don't want to come off in the wrong way here but this sound to me like over-simplifying the subject ..

Quote:
All you have to do is copy everything from one hd to another and then setup those certain files that matter.

Excuse the totally noob question here, wich files matter and in wich way should they be set up.

I've read a couple of topics on this matter;
https://forums.gentoo.org/viewtopic.php?t=28123&highlight=clone, where some recommended the find + cpio approach and others the dd way where the former were recommended due to flexability.

So I tried this;
Code:
find /mnt/srcdir -xdev | cpio -pvdm /mnt/destdir

but I've got various quirks and segfaults in KDE and suspect that this is the direct result of my actions (not handling the symlinks correctly??)

.... maybe I did it the wrong way but would still like a simple and sound "ghost" kind of way......
_________________
I once met the guys in Anthrax, backstage after a gig in Stockholm. I didn't ask for autographs though.....
Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Wed May 21, 2003 3:33 pm    Post subject: Reply with quote

Ok, like you said there are several posts on this subject, and everyone does it their own way...

The way that I like to do it is to copy every thing from one drive to another using cp -a *, however there are a few dir's that will not copy over correctly. Namely /dev and no need to copy /proc because it is generated at bootup.

Ususally I prefer to make a backup dir in / for this so my cp command would look like this....
Code:

cp -a /bin /boot /etc /home /lib /opt /usr /sbin /tmp ...  /backup


And as you notice you will need to backup boot to do this.

Next, to take care of /proc just do mkdir /backup/proc

Then last I usually copy a stage3 over to /backup and then do
Code:

tar -xvjpf stage3* ./dev


That basically just untars the /dev dir only.

As far as copying over everything you now have it. If you were moving a primary install to an upgraded hard drive that would be replacing the other you dont have to do anything else (except install grub to mbr). Or if you were doing this for backup purposes you wouldn't have to do anything else either. If you need it on a dive letter other than what you copied it from then you would probably need to up date things like fstab.

Trust me it works, I have recovered my system once with this method (which I'm still using) and I also have a server setup to backup using a cron job every week.

Hope this helps....

chris
Back to top
View user's profile Send private message
Hellzone
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 167

PostPosted: Fri May 23, 2003 2:54 pm    Post subject: ergh Reply with quote

Ok take my scenario for example. im placing my server into a building some 200miles away from me if i get rooted i need to re-install the whole server from a image of the HD including boot sector and all so i can intially find out how and where it was routed and make sure it doesn't happen again but at the same time ensure that the computer is keeping the same configs to ensure my users don't loose anything such as their passwords etc.

Is there anything like ghost so i can just image an entire drive to another and vice versa?

-james
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri May 23, 2003 3:36 pm    Post subject: Reply with quote

I've seen dd used for that, but I've not seen it for quite a while, so I can't say how.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri May 23, 2003 4:48 pm    Post subject: Re: ergh Reply with quote

Hellzone wrote:
Is there anything like ghost so i can just image an entire drive to another and vice versa?

g4u
http://www.feyrer.de/g4u/

Or can use dd. Just depends on what suits you better. dd is pretty easy if the drives are exactly the same (or if you just want to make an image file), even if they are in different machines. You can use netcat or ssh to pipe the output or input of dd over the network.
Back to top
View user's profile Send private message
deviljelly
Apprentice
Apprentice


Joined: 19 Feb 2003
Posts: 193
Location: Netherlands

PostPosted: Fri May 23, 2003 5:03 pm    Post subject: Reply with quote

errrm how about

Code:

emerge partimage
[/quote][/code]
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri May 23, 2003 10:21 pm    Post subject: Reply with quote

Partimage is great, but I dont think it does whole drives just individual partitions.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Nov 11, 2005 7:16 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Duplicate Threads.
See here: https://forums.gentoo.org/viewtopic.php?t=58767
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
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