LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-11-2008, 04:14 PM   #1
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Rep: Reputation: 0
Question Making an offline image of partitions to USB drive


I just finished installing a fairly complicated setup on a RHEL 3 AS machine. Now that it works, I would like to take a snapshot of my drive to an external USB HD. I do a similar thing with BartPE and Driveimage XML on my windows boxes, but my standalone boot CD doesnt recognize the RAID controller in this IBM x3550 appliance. And I am not sure it would recognize the ext3 partitions. The whole of the system is less that 300 GB.
Ideally, I would shutdown my running server, hook up the external USB HD, boot in some kind of recue mode maybe? Some way that the production system would not be accessed so no files would be busy. Then mount the USB drive, and dd or something the 2 partitions to the external drive. (/boot and /) Can anyone advise? I started looking at Amanda, but it seems a tad complicated for my single machine. There is no room for another HD in the server, it is in a rack, but I can go up to it, connect the external HD, and reboot the box while in front of it and see the boot, etc.
 
Old 11-11-2008, 05:09 PM   #2
tgreaser
LQ Newbie
 
Registered: Feb 2007
Location: Morgantown, WV
Distribution: RedHat, Fedora
Posts: 24

Rep: Reputation: 16
http://sourceforge.net/projects/g4l
 
Old 11-11-2008, 11:51 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
I use BootitNG exclusively myself. It makes compressed images containing only allocated data, not deleted or un-allocated space making the image smaller. DD makes an image of an entire partition containing every sector.
You can still make compressed images with DD also.
 
Old 11-12-2008, 08:20 AM   #4
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Or part image will do it for you to.
 
Old 11-12-2008, 01:07 PM   #5
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Original Poster
Rep: Reputation: 0
Good start

Quote:
Originally Posted by tgreaser View Post
Thanks for the pointer!

I've also received suggestions for FOG (aka FreeGhost) and MondoRescue.

I burned the G4L ISO and am going to experiment with it. Documentation is sort of hard to come by, or am I missing something?

More details about my setup: The external HD is currently formatted as NTFS and already has files on it, but has a lot of room left. I am not sure what the dump of my source disk would look like on this, assuming it works. Would it be 1 big file? 3 Files (1 per partition)? It would be great if I could just come up with a setup whereby if needed, I could hook up the external HD on which I did a backup to the system, boot from a G$L CD, then restore everything to a (presumably) new HD and then reboot the box and see it come up like it was when I did the backup. I dont care or mind if it copies useless stuff like the content of the swap partition, as long as I am able to easily recreate everything easily from my backup. I suppose less desirable but not out of the question would be to reinstall the OS from my RHEL CDs, specifying the partition layout (including a swap file), then restore my data (from /boot and / backup) as a two-step process...
 
Old 11-12-2008, 01:51 PM   #6
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Original Poster
Rep: Reputation: 0
Hum... 4GB limit?

Quote:
Originally Posted by Junior Hacker View Post
I use BootitNG exclusively myself. It makes compressed images containing only allocated data, not deleted or un-allocated space making the image smaller. DD makes an image of an entire partition containing every sector.
You can still make compressed images with DD also.
Thanks for the hint. I downloaded the trial version from the website, made a CD, booted from it, and was happy to see that it recognized my local partitions and my external USB HD. Where things became less rosy though is that after I successfully copy/pasted my small /boot partition to the external NFTS/HPFS HD, I tried to do the real work, copy my 140GB partition. But it asked me about maximum file size and stops at 4GB. Writing this, I realize maybe it would have created multiple 4GB files, whereas when I saw the message, I assumed the program was maybe crippled since it was an eval version. Let me go try again...
 
Old 11-12-2008, 02:06 PM   #7
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Original Poster
Rep: Reputation: 0
Kewl! (Once you get to know it)

Quote:
Originally Posted by Junior Hacker View Post
I use BootitNG exclusively myself. It makes compressed images containing only allocated data, not deleted or un-allocated space making the image smaller. DD makes an image of an entire partition containing every sector.
You can still make compressed images with DD also.
My 140GB partition is being backed up, as we speak! I tried using BiNG for the 2nd time, and as I surmised, it didnt have an absolute limit of 4GB, just creates as many files as it needs of that size, which is fine.

So I expect I I got a disk crash, or wanted to replace the two 70GB HD hardware-raid into 1 logical 140GB drive with 2 140GB drives set up in mirroring RAID, then I would be able to do this by replacing the drives, doing the RAID type switch with the RAID controller, then reinstalling my RHEL from the 4 original CDs, making sure to request the same partitioning setup. Then use BinG to copy over the stuff from my backup to the system, right? This is getting exciting! Too bad I dont happen to have other fancy SAS drives to test the process at this moment.
 
Old 11-12-2008, 02:15 PM   #8
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Original Poster
Rep: Reputation: 0
Unhappy Close but no cigar it looks like

Quote:
Originally Posted by Junior Hacker View Post
I use BootitNG exclusively myself. It makes compressed images containing only allocated data, not deleted or un-allocated space making the image smaller. DD makes an image of an entire partition containing every sector.
You can still make compressed images with DD also.
Rats. After the backup appeared to finish, I shut down the machine, moved the exteral HD over to my laptop and when I looked where I expected to find my data, I found only a part2.IMG file (4,194,304 KB) and a part2.001 (360,127 KB) file. I expected many more than that, although there is a slight chance umber-compression occured as this sytem will be storing a lot of data in a Oracle DB which right now is mostly empty... Ideas?
 
Old 11-12-2008, 02:25 PM   #9
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Original Poster
Rep: Reputation: 0
Question Can you expand on that a little bit?

Quote:
Originally Posted by Duck2006 View Post
Or part image will do it for you to.
Is it a open-sourc program, or a linux command, or...?
 
Old 11-12-2008, 02:28 PM   #10
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Original Poster
Rep: Reputation: 0
Will g4l recognize a previously-formatted NTFS drive?

Quote:
Originally Posted by tgreaser View Post
I have a fairly large drive that I use to backup other machines on (Windows) with DriveImage XML and a BartPE standalone boot environment. I would like to be able to use that as a destination with g4l. Do you know if this is a hard thing to do?
 
Old 11-13-2008, 06:55 AM   #11
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
http://www.psychocats.net/ubuntu/partimage
 
Old 11-14-2008, 07:40 PM   #12
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Quote:
I found only a part2.IMG file (4,194,304 KB) and a part2.001 (360,127 KB) file.
When using bootitng, you can set the maximum file size during imaging. The default is 2GB, I usually set it at 4GB because I back up to an NTFS file system that can handle unlimited file size.
And yes, because it compresses it, your backup file size is smaller. My typical Linux OS fresh installation image size ia around 800MB, Windows XP a little over 2GB, Windows Media Center is over 4GB with all updates applied. If you have personal data also, it goes up in size.

Last edited by Junior Hacker; 11-14-2008 at 07:42 PM.
 
Old 11-15-2008, 06:27 AM   #13
jnriopel
LQ Newbie
 
Registered: Jan 2005
Location: Snowy Montreal, Quebec, Canada
Distribution: RHEL AS 3u9, Xubuntu, PartImage Bootable CD
Posts: 19

Original Poster
Rep: Reputation: 0
Thumbs up PartImage Rulz!

Quote:
Originally Posted by Duck2006 View Post
I tried PARTIMAGE and it really rocks. It recognized my external 500GB USB HD right away, as well as the SCSI controllers of both machines I was trying to backup. The tutorial you pointed me to was also extremely useful, it showed me how to create a new partition on the drive, and how to create an ext3 filesystem on which I now have the dump of the 2 partitions of the two machines I wanted.

The only thing I havent tried is the restore, but I have 95% confidence it will work!

Thank you Thank you Thank you !
 
  


Reply

Tags
backup, offline, usb


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
LXer: Making a Bootable USB from DVD image LXer Syndicated Linux News 0 10-17-2008 11:20 AM
[SOLVED] Making multiple partitions on USB memory stick ctkroeker Linux - Hardware 1 06-16-2005 12:20 AM
Making a drive image pcdude Linux - General 3 01-05-2005 09:20 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM
making an image of my drive antken Linux - General 1 07-16-2003 01:20 PM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration