LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-26-2007, 09:26 AM   #1
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
Backing up....HD image to DVD


I have a hard drive here that I'd like to make an image of, so I have an image to copy over if (when) the hard disk fails. The disk is 80G but there is only about 3G used.

My first thought was to use dd to create an image, but it wants to make me an 80G file, and even when compressed this is still way too big to fit on a DVD.

So my question: I only have 3G of data on this thing, is there another way to make an image of the drive that I can put on a dvd?
 
Old 08-26-2007, 09:30 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Partimage allows you to make an image of a partition without wasting space if the partition is not completely filled.

In my experience, the resulting image file is pretty much the same size (a bit smaller actually, due to compression) of the files that are actually present on the drive, regardless of the size of the partition itself.
 
Old 08-26-2007, 02:49 PM   #3
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Partimage would work just fine, but I wouldn't use compression if you don't need it. Might save you some headache.
 
Old 08-27-2007, 02:56 PM   #4
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
Thanks for the suggestion. I used Partimage with gzip compresssion -- did the trick quite nicely. Cheers
 
Old 08-27-2007, 10:28 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Even though you're happy, I'll post a link to a thread that shows how to make an image without un-allocated space using dd, and a shareware application. For others who may trip on this thread.
http://www.linuxquestions.org/questi...d.php?t=571924
 
Old 09-16-2007, 10:48 PM   #6
ElvisImprsntr
Member
 
Registered: Aug 2007
Location: Florida
Posts: 33

Rep: Reputation: 19
The unfortunately side of Partimage and most other Linux native utilities, is they need to have file system knowledge to backup non-Linux partitions. Not to mention that one need to run Partimaged server on another machine if you want backup over a LAN to another hard drive. And you have to back up the MBR and partition table separately.

I use G4L (http://sourceforge.net/projects/g4l) to create bare metal disk images, which will include the MBR, partition table and RAW sector data. I use it on Linux and Windows machines and it works very reliably. The only disclaimer I have to make is that I have used it between hard drives with the same specs (sectors, tracks, cylinders).
 
Old 09-17-2007, 03:35 AM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
While G4L does have the advantage of being able to make images regardless of the filesystem used (since it ignores the filesystem and simply copies sector for sector), I don't know how much of an advantage it actually is in the real world. Partimage has very good filesystem support (EXT2/3, Reiser, XFS, JFS, FAT16/32, HPFS, UFS, HFS, NTFS), so unless you are working with some very exotic systems, you should have everything you need. You have pretty much all the bases covered to work on almost all Linux/Windows/Mac machines. Granted NTFS support is still experimental, but I have personally made images of probably 50+ NTFS volumes without a single incident.

As for the network support, you don't actually need to run the Partimage server if you want to put the images on a remote machine. You can just as easily mount a remote filesystem (SMB, CIFS, NFS, SSHFS, whatever your kernel supports) and chose that as the destination for the image file.
 
Old 09-17-2007, 06:17 AM   #8
ElvisImprsntr
Member
 
Registered: Aug 2007
Location: Florida
Posts: 33

Rep: Reputation: 19
I couldn't get Partimage to restore successfully on some Dell 9150's with pre-configured HDs with some hidden partitions last year. Not to mention I have a large number of system to backup, which the procedure I was given for Partimage was to back up the MBR, PT, and each partition separately, which took over 6 hours elapsed time for each system over a LAN. Also, the security requirements (DoD NISPOM) imposed on me do not allow me to run the system unattended in an unprotected/unsecure mode. I found it easier and faster using G4L to backup 4 systems simultaneously to a NAS in less than 2 hours, and it will restore in less than 1 hour. Minimize recurring support, down time, and eliminate chances for human (me) mistakes. My self imposed bare metal backup requirement (in addition to daily, weekly, monthly file system) is every 6 months or whenever there is a significant change in the configuration or status of the system, which ever is less. Also, I need to create a bare metal backup for NISPOM forensic evidence in the event there is a compromise of the system.

To each his own.

Last edited by ElvisImprsntr; 09-17-2007 at 08:46 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up system to DVD Skyguy Linux - Newbie 4 07-31-2007 01:04 PM
Backing up 13Gb to DVD Riddick Linux - Software 4 06-23-2006 10:02 PM
Good tool for backing up onto dvd? TheBelush Linux - Software 2 04-28-2005 09:56 PM
backing up dvd`s 54az Linux - Newbie 9 06-23-2004 04:43 PM
backing up linux to DVD Newman_SCO Linux - Newbie 4 08-29-2003 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:37 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