LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-21-2006, 04:12 PM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
howto backup & recover many pc's


Hi,

I'm working in a shop with a lot of different computers. We also repair them ourselves (software). I'm wanting to make a external harddisk stuffed with an image of the harddisc of every computer ever sold at the place where I work to make it very easy to recover it when it crashes (since we only sell windows pc's it happens a lot).

I was thinking of using a knoppix-cd to boot it up, attach the hd and then use dd to do it. The only problem is that when you use dd, it works perfectly but takes a lot of time and uses too much space (I'm not going to buy a 500TB hd). Then I thought to compress the dd-image but it takes WAY too long time to compress a 120GB image.

I'm looking for the easiest solution let's say something like this

to make an image:
backup /dev/hda /dev/sda1/acer/aspire/1220VT/winxp.img

to restore it:
restore /dev/sda1/acer/aspire/1220VT/winxp.img /dev/hda

As you can see, it must be something very very straitforward and easy to use. The only time I need to spend is to boot it up, give 1 command and leave the computer for an hour and it's ready.

Thx
Wannes
 
Old 01-21-2006, 04:47 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i think you're pretty much there already really, but you just need to combine both the dd and the compression in one go. dd is pure io, compression is pure cpu, so there should be minimal impact of compressing a dd stream rather than writing it (as an interesting aside, the main reason for the linux kernel image being compressed is *i think* that it's actually quicker to read the small file and decompress it, than to read the uncompressed file from disk.. weird but true). Anyway.... so use dd, but rather than running just an if= and of= try somethign like "dd if=/dev/hda | bzip2 > /mnt/images/backup.img.bz2" it should be almost as quick as not compressing it at all (make sure the good stuff is on already like dma). likewise for decompression "bzip -dc /mnt/images/backup.img.bz2 | dd of=/dev/hda"
 
Old 01-21-2006, 05:25 PM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Wow, Extremely helpful (notice capital).


Trying it at the very moment on an 8GB old hd, and an external 40GB laptop hd.

How do I turn on, or how can I see that dma is turned on? is it via mounting? no idea.

Is there also some kind of possibility to combine it with a command that automatically writes a file in the same directory with the time it took to make the image? So when a customer comes I can tell him:"Well sir, you can come back in 54m:42s" I've been looking for something like that but the explanation was not very clear to me. Many many thanks already Wannes

Last edited by bucovaina78; 01-21-2006 at 05:27 PM.
 
Old 01-21-2006, 05:46 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by wannessmet
I'm working in a shop with a lot of different computers. We also repair them ourselves (software). I'm wanting to make a external harddisk stuffed with an image of the harddisc of every computer ever sold at the place where I work to make it very easy to recover it when it crashes (since we only sell windows pc's it happens a lot).
I hope you're not talking about imaging everybody's computer that comes through your shop for repair. That wouldn't be cool. Even if you're only planning to image new sales containing no customer specific data, then you might need one whopper big external harddisk to store the different images on! Unless you're selling commodity computers all with the same hardware and software installed. No significant customer-requested variations allowed. Also, since you're dealing with Windows boxes I'd propose a Windows solution rather than Linux. Norton Ghost or similar. Save the images off to DVD's or CD's instead of trying to find yourself a ridiculously huge external harddrive. I don't consider harddrives to be archival storage. CD's or DVD's either, for that matter. How long are you planning on keeping these images?
 
Old 01-21-2006, 06:23 PM   #5
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
We are planning to make images of every model of computer. Now we have to send the computer in repair to reinstall it, takes 3 till 4 weeks. If we have an image of the model of his computer we can reinstall it in 3 till 4 hours (if we can start immediately)

Why use Knoppix? I'm used to Knoppix and wherever I boot I KNOW everything will be the same. And I'm not touching the hd of the source computer. and I can also recover Mac computers (if I have a ppc knoppix disc) in exactly the same way I'm used to when I am recovering pc.

BTW what fs should I use? NTFS->no way, ext3->not readable for windows, FAT32->getting rather old any other good for big files and fast reading?, I'm planning to get a 320GB or 500GB harddisc or maybe DVD's depending on the size of the images


Wannes
 
Old 01-21-2006, 07:50 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by wannessmet
BTW what fs should I use? NTFS->no way, ext3->not readable for windows, FAT32->getting rather old any other good for big files and fast reading?
If you're talking about using dd to create images, it matters not whether Windows can read the data or not. You will be using Linux to read and do the restores. Maybe there's some Window's equivalent of dd, but I'm unfamiliar with it if such a thing exists.

Any journelling Linux filesystem is probably just fine for your use. EXT3, Reiser, XFS, JFS. Reiser has a reputation for being faster with lots of small files, XFS and JFS for small numbers of large files. EXT3 has been around for a while and is well shaken down. But for your stated application I don't think minor differences in performance really come into play. If push comes to shove and you have an emergency need to read from Windows, there are things available that allow it to read EXT2/3. I haven't heard of these for JFS, XFS, or Reiser, but that doesn't mean they don't exist. I wouldn't use Windows to write any Linux filesystem, nor Linux to write any Windows filesystem (except FAT32). You certainly can do exactly this, but I'm too conservative to trust these kind of operations.

I also believe FAT32 is limited to files no larger than 4Gb. That may represent a limitation for your images depending on just how big they are. I can fit a minimal W2k image on a CDROM (if compressed), but that's with hardly more than the bare OS installed. FAT32 is not a journelling filesystem either. NTFS is, but I wouldn't even consider NTFS for this application when using Linux.
 
Old 01-22-2006, 01:30 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
personally i'd want something more suitable than knoppix. what about something like DamnSmall booting from a memory stick? Having it on a writable media means that you can easily add scripts to the system to streamline things a lot easier. it'd even be childsplay to make some automated system with a noddy little menu to either restore or save images etc... sounds like a fun little project... almost.

There are other direcions you could head in too... Why use an external hard drive? would be a lot slicker to use a network server, although there would be a fair load on it. BUT if you do then you can save scripts on the server, run them automatically over NFS and you're not moving around a single drive that would be pretty critical in your daily operation. instead a raid mirror sits stationary on an NFS server and is rock solid and reliable. You could also get daft and start looking at using just a single boot disk to boot to the server itself, so not need any live cd at all, without messing with memory sticks either. NFS booting isn't too hard...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron & backup howto ? crispyleif Linux - Software 4 11-23-2005 12:26 PM
recover backup HD(FAT) danielson Linux - Hardware 2 10-24-2005 09:37 AM
How to capture & reorder the packets between two PC's Janarthanan Linux - Networking 2 09-04-2005 02:25 AM
Howto recover data from ntfs after suse dual boot install jdlr Linux - General 1 04-20-2005 09:51 AM
Help! I cannot recover my files from backup! J_Szucs Linux - Software 3 02-21-2005 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration