Ghost for Unix
junyoung writes "Hubert Feyrer released the latest version of g4u ("ghost for unix"), a NetBSD-based bootfloppy/CD-ROM image that allows one to easily clone PC harddisks by using FTP. Since it reads the disk bit by bit, it can create an image of any operating system and any file system. Besides, it's free (under BSD style license)."
maybe this will work better than the dd way I've been using so far.. gotta give it a try
Stop the world. I want to get off!
---
When you come to a fork in the road, take it! --Yogi Berra--
When i was reading the article i was thinking 'why do we need another bl**dy disk copier/ghoster/whateverer' But the link states that it can be used with all file systems, which is something i have yet to see in other utilities.
Good on the chap who wrote it.
I definantly will be using this in future.
Huff
I'd really like to know what the performance is like. Ghost can be very fast sometimes.
It's too bad that it won't allow you to resize partitions, as you can with Ghost but, it looks like a great start, so long as it isn't too slow.
server.sh: /dev/hda | nc -l -p 5030
/dev/hda
cat
client.sh:
nc server 5030 >
But isn't is too slow, and isn't there a big chance that some bits would get corrupted?
From the article:
This form of the BSD license has a minor problem.
Will I retire or break 10K?
The thing I dislike the most about Norton Ghost, is hat it's DOS based. Getting networking working, for SMB image transfer is not always easy...
.tar.gz, and takes edits various /etc files to change hostname, IP, etc. Chroot, run lilo, and your done.
Cloning PC-Unix boxes (Linux, etc), doesn't really require any special software though... When I need a new node for our EDA cluster, I boot tomsrbt, and run fdisk, and then kick off a script that pulls down an
--
Matt
Regardless, if u want a non-commercial version, there is "ubercopy".
Here is an email i had with the developer:
-- -- --
Help my mini cause: My journal
Ever since Symantec bought Ghost, they've been changing it from a simple, easy to use, small, beautiful and most of all SMALL utility to a typical bloated pile of junk. It's so nice to see someone develop an open and free version that recaptures the original idea - just copy the fricken hard disk already!
"How perfectly Goddamn delightful it all is, to be sure" Charles Crumb
Ghost is a trademark of Paramount Pictures
You should do a trademark search at the patent and trademark office before releasing infringing software.
If the target is 1 sector less, you aren't going to be able to use this tool. I still think tar and netpipes is the only way. (unless you use XFS, in such case the best way would be xfsdump, tar, and xfsrestore) I'm trying to write a multicast fileserver for just this purpose. I have a lab of hetrogeneous machines(I take what I can get from the university) that need to be clones(btw, don't forget to run lilo if you use tar/xfs, and don't forget to change the site-key for ssh). I'm ending up using a homebrew solution. There are other good ghost utilities out there that boot from a cdrom(BART perhaps isn't bad), but I still need my own custom solution because I'm not gonna be here forever to make this lab work, and it needs to be "put this in the floppy drive and select options from the menu" easy.
Karma Clown
...RMS is set to release gnu4u, "GNU's Norton Utilities 4 Unix". Wow...
I've never used g4u personally, but I did some research on disk cloning back awhile ago and a common complaint about the software was that even though it was rock-solid for all kinds of different operating systems, it was really slow. Anyone have any idea how reasonable the speeds are now?
Ghost handles all file systems as well. They call it a sector by sector disk copy. In this case Ghost does not care what is on the disk, it copies the DISK rather than the filesystem or partition as it does by default. But as with g4u you can't resize and so forth with a sector by sector copy.
The only problem with Ghost is the licensing cost.
The multicast console kicks ass -- I can ghost a tonne of workstations at one time and not kill the network.
Symantecs' support infrastructure is wicked too. We haven't hit a problem that wasn't documented on their website yet.
Also, ghost understands filesystems and not raw blocks. I don't understand why reading the raw data is an advantage -- you get images the size of your hard disk or partition instead of the size of the data. Ghost 7.5 can understand fat/ntfs/ext2 and ext3. It can also do raw reads of the hard disk.
btw, I don't work for symantec.
-- DrZaius - Minister of Sciences and Protector of the Faith
isn't there a big chance that some bits would get corrupted?
Modern storage devices use error correction at a very low level. For instance, CD-ROM has three error-correcting codes: two in the CD layer and one in the sector layer. In addition, a partition could be written to multiple discs in a manner similar to RAID 5, such that every fifth disc stored an xor of the four previous discs.
Will I retire or break 10K?
I went to TESS and ran a query for live U.S. trademark registrations matching the word GHOST, and got eyewear, a removable LCD panel, cosmetics, force-feedback joysticks, and loudspeakers.
I'd be worried about a trademark lawsuit from Symantec more than anything.
Will I retire or break 10K?
Since they are in two entirely seperate categories, linux software and shitty movies, they chance of somebody confusing them is slight.
Then what about GHOST IN THE SHELL brand computer data backup (ghost) software with a command line (shell) interface? Would that clash with GHOST IN THE SHELL® brand video games?
Will I retire or break 10K?
Ever try using Ghost on a Sparc station? Ghost can't handle any file systems at all if they aren't sitting on x86 hardware, which is a problem g4u can solve. So that's two problems with Ghost.
I don't understand why reading the raw data is an advantage -- you get images the size of your hard disk or partition instead of the size of the data.
Shouldn't matter. If you have wiped your drive's free space (trivial; use a program that creates thousands of 1 MB files filled with a repeating pattern) first, an "image the size of the hard disk or partition" will compress much smaller.
Ghost 7.5 can understand fat/ntfs/ext2 and ext3.
But does it grok ReiserFS or any of the other more obscure filesystems in use on servers?
Will I retire or break 10K?
Thank you thank you thank you!!! I am just about to install a cluster, so instead of installing RedHat for the nth time, I can make all the nodes' disks off-site -- and probably while unattended somewhat -- and then bring them in, pop in the drives, and go.
To-do List: Receive telemarketing call during a tornado warning. Check.
There is also partition image which is more advanced imo.
Dalton's Disk Disintegrator?
I'm opposed to the idea of cloning UNIX workstations. 5 years I said the same thing. It creates a new breed of system administrators who've
never seen a UNIX prompt.
Should a UNIX install be rushed en masse? I'd be interested to see if anyone can justify this, I just don't feel overall comfortable with the concept of UNIX cloning.
Anyone know if this utility will do small disk to large disk cloning too?
3000 dead over past 2 years, still no free Palestinians, still
Even Ghost never worked well with windows. The problem is, MS puts SIDs all over the place in the OS. You'll think it worked, but then try putting 2 clones on the same network...
Ghost supposedly had some magic tool that fixed this, but it never quite worked, and if MS found out you used it, they wouldn't answer your support questions.
Now MS has some tool that will fix SIDs for you, but you have to agree to some licensing scheme that I think involves giving them a blood sample and locks of hair from your children.
I never cease to be amazed at the quality and quantity of Open Source work. This is absolutely the perfect backup tool
Disk -> FTP Server
FTP Server -> Disk
Awsome job guys. The world needs this.
I have installed thousands, yes thousands of images of Windows 95 - 2000, as well as restored Windows 2000 domain controllers from backup images with Ghost and Ghost Walker. It works great.
Thanks for playing.
I've still got several Win98 clients in a lab setting (the main room of my school newspaper, where all editors/writers can use them). I use Ghost to reimage them weekly, and gwalk does a fine job of changing the SID/machine name/whatever it is under Windows.
I'm interested in this, because at the moment, I need to use one of the Windows clients to generate/push images. I'd also like something that could work for MacOS (9.x, unfortunately, since we use Quark).
WMBC freeform/independent online radio.
Just a few days ago,after hours and hours of frustration and failure with Ghost and DeployCenter and other commercial products, I decided to use g4u on my college's CS lab for dual boot (RH80 and W2K). I just popped the floppy in and the image copy was underway. Too bad it corrupted both OS's filesystems. It was so simple and straight-forward I was sure it would work. Is this realease any different from the one available a few days ago? Out of all the other solutions I tried this was the closest to helpful. (Most other FOSS failed to even get DHCP up)
Personally, I agree with UDP multicasting being the way for multiple network-based clones... For only a handful of clones Mondo+Mindi might be an alternative, too... No network, but CD-ROMs over sneakernet though... :)
Does this have anything to do with the "ghost trailer"??
What is this, /. meets the Art Bell show?
Come on people, there's no such thing as ghosts. Grow up.
ignore, having problems with login
Kernel panics with "failed to read sector ######" when mirroring a broken hard disk. Any workarounds?
"The lesson to be learned is not to take the comments on slashdot too literally." --Vinnie Falco, BearShare
If you don't like Ghost's DOS foundation, checkout Acronis's True Image. It allows you to copy a drive image while it's still running. It actually uses unix type tools to do this...
We've been using it to clone our NT based workstations at work for some time now and it kicks ass! It copes quite happily with NTFS(!), FAT16/32, Ext2/3, ReiserFS etc etc...
It's a client/server program and they provide a bootable ISO image on their site (saves you having to create one if you're lazy like me) ;). You can also compress the image taken using either gzip or bzip compression.
Did you mean hours?? Or minutes? 8 - 10 hours to copy an image and install it is ridiculous. Norton Ghost takes about 15 minutes each way, a total of 30 minutes on similar hardware. Granted that isn't the sector by sector copy method but why use that if you don't have to? Norton Ghost handles ext2/3 partitions with no problem at all.
Working with HP-UX at work, i got the chance to work with the Ignite backup tool HP provides to backup their machines. /dev/0m and it dumps an image to your DLT tape, you take the tape, put it in the victim machine, boot from it, it puts the image on the new hard drive (assuming there's enough space on it), you boot it again, and you have an identical machine to the one you've taken the image from, kinda neat, but works only for HP machines running HP-UX 10.20 and later.
In a big cluster there is always the need that computers be as identical as possible so troubleshooting problems is easier when they take place on some computers simultanuesly.
you just mk_recovery >
Putting all together, g4u could possibly help deploying that technology to other unices which are non-proprioty.
May the developers continue their good job with their innovatives ideas.
Dan.
Just a few random thoughts on this..Sorry moderators if I get too bleeding edge for you :)
:)
This was listed under developers when it should have been listed under desktop monkeys that run around putting out fires everytime the sales groups comes back with a crateload of laptops that just got smashed through the Chicago Ohara airport baggage system and now he/she has to get these laptops ready for the next trade show kind of person. (zoolander speak, gotta love it)
I remember doing this a few years back when I worked for Altigen. Well, ok it was transferring over the SCSI bus instead of ethernet... Here's what happened.
There was some big 'ol trade show in vegas and we were getting chummy with 'ol compaq. They wanted us to be a VAR by adding our telephony system to their servers. So as a show of like, i dunno what to call it, good faith? They shipped us 10 of their top of the line servers all decked out sweet.
Hmm, what year was that? 2000? Well, win2k was just out and our version of ghost hadn't quite caught up to M$'s new moving target NTFS. (Everytime you install any MS they do little tweaks to the MBR that aren't backwards compatible.) So me and my partner were sitting there scratching our heads. The servers had arrived 1 day before the show (late, fuqin compaq) so our choices were...
a. stay up all night installing these motherfuckers one by one.
b. figure it out.
Well, my partner was totally windows at that time, and I had been using linux for about a year and open source was getting me jazzed. I had a linux system I had scratched together from broken parts in the warehouse running next to my 2k system. So I went around IRC and reading up howto's about DD.
I made some notes and yanked the IDE drive out of my system, walked over to the compaq's and pulled a drive from each one, then filled one of them with all the drives. I put my linux IDE drive in the system and booted.
dd if=/dev/hda of=/dev/sda
It was a suspenseful moment to say the least. We watched as the first image was being made and almost held our breaths in anticipation as we waited for it to boot up.
Success!
That night we both went home totally stoked that we got it done without hassle. We just repeated the process for the rest of the machines and we got to go home early. I fucking hate this gay ass penguin OS for a desktop (it really sucks!!!) but i'll take it any day over any commercial product if I need to save my ass.
Thanks
--toq
wd0: (uncorrectable data error)
... /dev/rwd0d: Input/output error
wd0: transfer error, downgrading to PIO mode 4
wd0(pciide0:0:1): using PIO mode 4
wd0d: error reading fsbn 56960 of 56960-57087 (wd0 bn 569760; cn 60 tn 4 sn 8); retrying
dd:
27+0 records in
27+0 records out
28311552 bytes transferred in 41.015 secs (690273 bytes/sec)
226 Transfer complete.
8087791 bytes sent in 00:37 (211.08 KB/s)
221 Goodbye.
rm: not found
#
Any help?
"The lesson to be learned is not to take the comments on slashdot too literally." --Vinnie Falco, BearShare
To clear up any misconceptions that the sarcastic parent comment might have created:
GPL gets around this by asking that you give them the copyright and give them all the credit leaving you with none.
Actually, every author of a GPL program gets credit. The GNU GPL, section 2, requires that "You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change." Thus, the credit stays where it belongs, in the source code, documentation, and (for interactive programs) the about box, rather than in possibly unrelated advertising.
Will I retire or break 10K?
There's a similar project, called RECCD toolkit, but it places the hard drive image onto a CD, rather than over a network. It's great for backup and use in computer labs.
http://www.bablokb.de/reccd/index.html
Wow, looks like someone put dd on a boot disk! Will the innovation never cease?
Come on, there IS a reason people pay for ghost. I for one, would like some assurance that I can clone disks that aren't exactly identical..
...then delete the file zero.txt...
That should leave us with very compressible freespace, right?
[A file made of all zeroes] should leave us with very compressible freespace, right?
I suggested a repeating pattern rather than zeroes because some UNIX systems represent an all-zero file cluster by not allocating the cluster at all. A file that contains such a cluster is called a "sparse file".
Will I retire or break 10K?
I can see no discernable difference between this and any bootable Linux CD with 'dd', 'gzip', and 'nc' or 'ssh' installed. The reason people buy Ghost is that it resizes partitions, and this doesn't have any of that.
Am I missing something? Is there something on their page that I didn't see as I read through? Is there a demand for new and unfamiliar commands for doing familiar things?
This is not a troll - this is honest curiosity. I've used Partition Image, which is similar, and don't use it for pretty much the same reason - nothing added. On the other hand, I've used multiple bootable distributions (linuxcare, superrescue, @stake) to make disk images using dd/gzip/nc/ssh/md5sum. Cake.
Ghost is not free, nor are the constant updates it seems to require.
it can clone win2k partitions without any problems
it has problems cloning redhat 8.0 ext3 partitions (cloning breaks with a strange error)
it can clone anything in the sector by sector mode (the images are compressed on the fly)
it is extremely efficient in multicasting mode - it cloned to 14 machines only slightly slower than to a single machine!!
a lousy DOS packet driver can cause really strange problems (that's the driver problem, but still it does affect ghost!)
I see advantages and disadvantages with g4u:
+ you are not tied to a win32 ghost server on the LAN, you merely need a reachable FTP server
+ many many NIC drivers included
- no multicasting
I wonder.. am I the only one who reloaded his page a couple times to see how quickly the visitor number at the bottom increased as a result of the slashdot effect? :-)
Cheers,
Moz.
see a Text Widget
It's nice and all, and exactly what I need since I have a RAID0 that died and I'm trying to recover data off the disks and move them to healthier disks.
However, I don't have nor can I easily implement an FTP server (I have ONE MACHINE) so this is exactly what I need, but doesn't work in any way I can use. Any idea how to modify it to work from disk to disk on a local machine instead of using ftp?
Introducing the new Occam Fusion! Now with sqrt(-1) fewer blades!
Can this be compiled to run on Mac OS X or Darwin ?
Or does it only work on FAT32/non-HFS filesystems ? Sorry, I'm new to the Unix/Linux thing, but itching to learn more. I've heard great things about Ghost when I still used a PC (though never got/bought a copy to use). If not, is there something similar for Mac ? Just got an 80 gig firewire drive, and plan some major upgrades to my system soon. It would be great to be able start fresh, and have the peace of mind of knowing I have a clone to fall back on in the event of trouble.
They should call it "Ghust" with a "u" for unix :-)
Linux dosn't suport every NIC. Niether dose any OS. However Linux dose prety well.
My idea is to produce a utility like this with all autoloadeble NIC drivers included. Of course it would practicaly be aLinux distribution andwouldneed a CD for those files but so what?
PS: Away to have it produce a floppy with just the right driver once it gets a working combination would be cool.
--= Isn't it surprising how badly I spell ?
I'm betting you are one of the people who removes BSD licenses to replace them with a GPL licence
Yes, I do that, but only where the BSD licensed portion makes up a small part of the derivative work.
The problem I have is not with permissive licensing vs. copyleft licensing (BSD vs. GPL), but rather with the BSD license vs. the old BSD license with the advertising clause.
Will I retire or break 10K?
With all the "*BSD is dead" comments I keep hearing, perhaps Ghost for *BSD would be more appropriate... ;)
Duct tape is like the Force. It has a light side, a dark side, and it holds the universe together.
I was looking at the source and it has programs to copy to disk/partition/ftp server.
A technically better solution is probably to use multicast rsync, either on the raw partition, or on the mounted file system. Using it on a mounted file system has the advantage that it works on live file systems, can deal with different drive geometries, and doesn't waste any time copying free blocks that still contain data.
If you do use "nc", there are two things you should do first: (1) clear out any free data on the source partitions by "cat /dev/zero > junk; rm junk" (this will improve compression), and (2) use gzip, as in "gzip /dev/hda".
This should have been: (2) use gzip, as in "gzip < /dev/hda | nc -l -p 5030" and "nc server 5030 | gunzip > /dev/hda".
Netpipes with tar is OK in a pinch, but for ghosting rsync is probably the better solution all around. With rsync, you can already get a multicast server and don't have to "write your own".
Would it be possible to put secure shell/copy on that disk? Im not in favour of uncrypted passwords transfering over ftp.
It would probably be instructive to try rsync anyway. It dramatically slashes the transfer time even on compressed CDs (e.g. Mandrake Cooker CD's a few subreleases apart).
Setting that aside and turning to multiple clients, having a `what-do-I-need' MD5 broadcasting session followed by a multicast or broadcast of the required blocks (and refrain, in case a client missed anything) would probably save a lot of bandwidth except on initial installs where every answer would be `I need everything'. You could invent a nifty little sparse-blocks reply algorithm that listed ranges in the simple case and bitmaps on messy sections.
Got time? Spend some of it coding or testing
Yes, I do that,
When GPL'ed code is compatible with BSD licenced code, then I'll start giving a damn about what YOU think.
Otherwise, go write your own damn version under a licence YOU like. In short, go pound sand.
(Isn't that what you would tell someone who wanted to take GPLed code and put it under a BSD licence?)
It's good to see all these innovative applications being developed on BSD. I can really use this to install my cluster machines, which are a real pain to set up.
And if not, just run over it with SecureDelete's wipe-the-empty-space utility. If you don't have that to hand, this command will do near enough:
You'll need to run those once on every real partition.
Got time? Spend some of it coding or testing
Would you sleep with that dork for a billion dollars? Melinda Gates did..
Where are the disk to disk programs? I booted the floppy image and it only seems to have uploaddisk and slurpdisk. When I try to run it it wants the ip of an ftp server, a filename, and the source disk device.
What's the syntax to get it to just do one drive to another on the local machine? Or is there another way to do this? I don't feel like experimenting and trashing 180GB of data.
Introducing the new Occam Fusion! Now with sqrt(-1) fewer blades!
When GPL'ed code is compatible with BSD licenced code, then I'll start giving a damn about what YOU think.
According to the GNU license list, code under the new BSD license can be used in a program licensed under the GNU GPL. Thus, the licenses are compatible.
Will I retire or break 10K?
hey look, it's that fucking genius kid again.
We have about 50 Debian boxes, all installed with Systemimager. Basically, it uses EtherBoot to load a kernel/initrd over the network, then uses rsync to do most of the heavy lifting. We had to make a few local customizations, but it has worked quite well for us.
Offtopic, but when I saw your .sig I thought the lead singer of U2 had started his own Political Action Committee.
"The cup... the drop... it's a YES!"
Try udpcast. It supports multicast and has boot floppies. I use it to replace ghost on a 40 computer lab. Supports stdin and stdout multicast so it's easy to use in many different cases. I'm working on boot disks that only require one disk for each client.
code under the new BSD license can be used in a program licensed under the GNU GPL.
Wow. You can read.
Thus, the licenses are compatible.
Nope. I can't take GPLed code and license it under a BSD license. So they are not 'compatible'.
The GPL is for selfish people. Like yourself.
alias g4u="dd"
Ghost for unix? already done.
[alk]
I did this a while back using a single
Linux boot disk. Used it to clone 5 Redhat
6.2 DNS servers. A lot easier than installing
over and over again.
dd if=/dev/hda - | gzip | rcp or so
The most important use for this would be making a University into your own personal beowulf cluster. The hassles and time needed with the other methods has excluded me from that goal.
Take this (CD in hand) along with a licensed copy of Partition Magic (bootable CD in hand) ... and my Powerbook. Already tried it. Works nice.
First tested it on the network booting VirtualPC and dumping a image. Haven't found _any_ issues (trojan or otherwise) with the disk image. It *is* Unix, and well, easy to rip apart when you have "root" access and full access to the "console". NOTHING to hide.
I'm more comfortable with this solution than anything I've seen DOS/Windows based.
Unix in hand (Powerbook OS X), booting just another flavor of the same Unix. Inter-mixes with Linux very nicely (original local network test). Unix is unix is unix sometimes. And then you have Windows which is what I will use to it to backup.
Bwahahahahahahahahahahaha
I've been doing for many years network backups of my laptops' hard drives over to my desktop and onto CDR. I use a Linux bootdisk with networking support for the laptop (so that the partitions I'm backing up are not in use at the time) and dd/gzip them over to a NFS-mounted partition through the network. Works like a charm.
I hadn't known there were so many idiots in the world until I started using the Internet -Stanislaw Lem
I recommend Mondo Rescue for backing up linux boxes. Its fully GPL, supports backing up LVM, RAID, ext2, ext3, JFS, XFS, ReiserFS, VFAT files systems to tape, CD-R, CD-RW or NFS and you can restore from bare metal just like ghost.
Yes, i had used ignite-ux b4 for this purpose. Just want to mention that AIX also have something similar call mksysbk. Wonder if Solaris have any thing similar as I dun use Solaris often enuff.
I've used Ghost to deploy images to 80 machines simultaneously and it's never had problems, except when the PCs are new and have loose network cards.
Of course, this is over switched 100M ethernet run with Cisco 2924/2950s. YMMV with coax/hubs/whatever.
They could call it "Lust".
It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
Are you offended by the concept of people profiting from your work? You will be well-protected if you employ the GPL.
And yet, for all the make-no-money-fist-pumping of the GPL crowd, none had the balls to sue Virgin Alantic when they shipped the Virgin Webplayer with Linux and a restrictive licence.
Well protected? Hardly. The protection of the GPL is all in your heads. Reality is no one has challenged it in court, and when violated by Virgin, the "GPL community" did nothing.
Nope. I can't take GPLed code and license it under a BSD license. So they are not 'compatible'.
Boo hoo. Why don't you get yourself a licencse that lets you do that, then? Oh, wait, its called the GPL. You admit that your beloved BSD licencse lets the GPL co-opt the code, yet you don't like that. So why do you use the BSDL? You havn't the slightest clue.
...... doesn't even do multicast. Yes ghost is fucking gay. but at least ghost does multicast at the same speed as unicast or directed multicast. I hate ghost but this fucker who made gay4uis some sort of DD idiot. he acts as though ghost is trivial and uses FTP of all the fuckhead protocols, I would much rather see http (apache is much better at shoveling shit than fucking ftp daemons) - and what I would like to see matters because I am God of the Ovens.
Shitmantec can lick my sack, but id rather pirate that gay shit and get the job done right with NTFS, FAT/FAT32 and EXT2/3 and do the bit by bit for others [BSD style stuff, BTW, FreeBSD rules, all others are fags] than to fuck up everything which is what this piece of shit Gay4u does.
I hate gay incomplete fag shit and I hate the gays of Slashdot that lick the boots of Open Crap programmers that deserve to get a boot in the teeth not a Slashcrap article.
I follow your instructions and lose all data important to me. You bastard. I look for you and if I find you will no the reall meaning of /dev/zero.
Try http://www.nu2.nu/bootdisk/network/
:)
I tried for over a week to get a boot floppy with Microsofts LAN-kit to connect to my Samba share over TCP/IP. Finally I gave up.
A couple of months later I found nu2.nu and was able to get a working floppy in an hour.
Doesn't this sound like some cheesy ad?
Sorry 'bout that