Clan x86

Technical (Development, Security, etc.) => Unix / Linux Discussion => Topic started by: Joe on November 12, 2006, 05:39:33 PM

Title: Backup script?
Post by: Joe on November 12, 2006, 05:39:33 PM
On my laptop, I have a pretty barebones installation of Windows 98. Once I get the battery replaced, I'd like to back my copy of Windows 98 up, byte for byte, and install Linux, but still have the disk image available incase I ever want to go back.

Tools: CD Drive, 1gb flash drive.

How can I back the entire hard drive up (around 6GB disk, about 500MB used), compressed, and put it on a flash drive, using a Linux LiveCD (obviously, basic tools). I don't want to assume I'll have an internet connection available, so I'd prefer only tools that pretty much any distro has (probably dd and tar).

Thanks!
Title: Re: Backup script?
Post by: Chavo on November 12, 2006, 06:15:18 PM
You want an image you can just load up to replace the entire drive contents or a backup that you can decompress on top of a working install?
Title: Re: Backup script?
Post by: Sidoh on November 12, 2006, 06:29:36 PM
Ghost is your best bet.  Disk to image, save the image back onto the disk (not sure if it lets you do that, but its worth a try) or onto the flash drive directly if you can find a way.
Title: Re: Backup script?
Post by: rabbit on November 12, 2006, 06:39:32 PM
A flash drive will probably be USB (I've yet to see a firewire one, but they exist, I'm told).  USB ports are usually /dev/sda#.
Title: Re: Backup script?
Post by: Sidoh on November 12, 2006, 07:22:21 PM
Quote from: rabbit on November 12, 2006, 06:39:32 PM
A flash drive will probably be USB (I've yet to see a firewire one, but they exist, I'm told).  USB ports are usually /dev/sda#.

And your point is?  Ghost isn't Linux.
Title: Re: Backup script?
Post by: rabbit on November 12, 2006, 08:21:52 PM
Quote from: Sidoh on November 12, 2006, 07:22:21 PM
Quote from: rabbit on November 12, 2006, 06:39:32 PM
A flash drive will probably be USB (I've yet to see a firewire one, but they exist, I'm told).  USB ports are usually /dev/sda#.

And your point is?  Ghost isn't Linux.
My bad :\
Title: Re: Backup script?
Post by: Chavo on November 12, 2006, 08:27:37 PM
I'm sure Joe can't afford ghost though either :P

I haven't used it personally, but you might give g4u (http://www.feyrer.de/g4u/) a shot
Title: Re: Backup script?
Post by: Sidoh on November 12, 2006, 08:29:24 PM
Quote from: unTactical on November 12, 2006, 08:27:37 PM
I'm sure Joe can't afford ghost though either :P

But he can afford visual studio?

You're killin' me uT!

If you have a floppy drive, Joe, download FloppyImage and I can see if I can get ahold of an image of the disk my school used to use.
Title: Re: Backup script?
Post by: Joe on November 12, 2006, 09:04:38 PM
Quote from: Sidoh on November 12, 2006, 08:29:24 PM
Quote from: unTactical on November 12, 2006, 08:27:37 PM
I'm sure Joe can't afford ghost though either :P

But he can afford visual studio?

You're killin' me uT!

If you have a floppy drive, Joe, download FloppyImage and I can see if I can get ahold of an image of the disk my school used to use.

I used Visual Studio Express. $0 is pretty comfy for my budget.

I'd really rather use dd and tar, though. I don't want to depend on a Windows install in order to restore it.

Quote from: unTactical on November 12, 2006, 06:15:18 PM
You want an image you can just load up to replace the entire drive contents or a backup that you can decompress on top of a working install?

I want to be able to restore my entire system, bit for bit back to the hard drive (partition tables, everything), exactly as it is right now. Like, the whole /dev/hda.
Title: Re: Backup script?
Post by: Sidoh on November 12, 2006, 09:33:30 PM
Quote from: Joex86] link=topic=7876.msg98668#msg98668 date=1163383478]
I used Visual Studio Express. $0 is pretty comfy for my budget.

I'd really rather use dd and tar, though. I don't want to depend on a Windows install in order to restore it.

I'm positive you've pirated something of equal magnitude.

Ghost is not Windows!  It's completely independent of an operating system.  There are Windows utilities to extract files from an image file, but that does not mean you need to boot to Windows to restore anything.

Quote from: Joex86] link=topic=7876.msg98668#msg98668 date=1163383478]
I want to be able to restore my entire system, bit for bit back to the hard drive (partition tables, everything), exactly as it is right now. Like, the whole /dev/hda.

Then use Ghost.
Title: Re: Backup script?
Post by: Joe on November 13, 2006, 11:11:37 AM
@Piracy: VB6 and XP Pro.

@Ghost: Oh, I thought you meant Norton Ghost. Uh.. is that the disks you were talking about? Send them over, I guess. Both my laptop and desktop have floppy drives, but I may have to go buy myself some new disks. :-\.
Title: Re: Backup script?
Post by: Sidoh on November 13, 2006, 11:17:24 AM
Quote from: Joex86] link=topic=7876.msg98753#msg98753 date=1163434297]
@Piracy: VB6 and XP Pro.

@Ghost: Oh, I thought you meant Norton Ghost. Uh.. is that the disks you were talking about? Send them over, I guess. Both my laptop and desktop have floppy drives, but I may have to go buy myself some new disks. :-\.

I AM talking about Norton Ghost.
Title: Re: Backup script?
Post by: Joe on November 13, 2006, 11:58:44 PM
Oh.. isn't that dependant on Windows? And why do I feel like I'm asking questions that have already been answered!?

Anyhow, send themz.
Title: Re: Backup script?
Post by: Sidoh on November 14, 2006, 12:16:21 AM
Quote from: Joex86] link=topic=7876.msg98833#msg98833 date=1163480324]
Oh.. isn't that dependant on Windows? And why do I feel like I'm asking questions that have already been answered!?

Anyhow, send themz.

NO!!!

There are utilities that extract files from ghost images, but ghost boots off of a DOS floppy and has the ability to image a partition or an entire disk.  There's also some option to clone disks or partitions.
Title: Re: Backup script?
Post by: Chavo on November 14, 2006, 01:01:22 AM
Quote from: Sidoh on November 14, 2006, 12:16:21 AM
Quote from: Joex86] link=topic=7876.msg98833#msg98833 date=1163480324]
Oh.. isn't that dependant on Windows? And why do I feel like I'm asking questions that have already been answered!?

Anyhow, send themz.

NO!!!

There are utilities that extract files from ghost images, but ghost boots off of a DOS floppy and has the ability to image a partition or an entire disk.  There's also some option to clone disks or partitions.
Rofl, watching someone explain something to Joe that he obviously doesn't get is funnier when you aren't the one trying to do it  :P

We use ZenWorks at work which does pretty much the same thing as Ghost, but lets us boot from LAN and pull images from a Linux file server.  Pretty nifty, you can put the images on a dvd too with a small script that automates all of it.
Title: Re: Backup script?
Post by: Sidoh on November 14, 2006, 01:45:46 AM
Quote from: unTactical on November 14, 2006, 01:01:22 AM
Rofl, watching someone explain something to Joe that he obviously doesn't get is funnier when you aren't the one trying to do it  :P

We use ZenWorks at work which does pretty much the same thing as Ghost, but lets us boot from LAN and pull images from a Linux file server.  Pretty nifty, you can put the images on a dvd too with a small script that automates all of it.

There are some hacks you can use to allow Ghost to do that.  Since you're booting on MSDOS, you can use NetBUEI to map a network drive (which could presumeably be from a samba server), which Ghost will recognize and allow you to use.  We did that for all of the lab builds.  It allowed us to build three or four machines at a time without worrying too much about time or network resources.

My old boss switched over to WinInstall at the beginning of this year, which is way cooler than Ghost.  That was, however, assuming that it worked as well as AttachMate said it would!  It was giving both of us a headache during the summer.  I'm not sure how it's behaving now, but I'll ask him when I go to his house next weekend.