LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2010, 07:44 AM   #1
Gavin Harper
Member
 
Registered: Feb 2010
Location: Finland
Distribution: Slackware
Posts: 169

Rep: Reputation: 24
DD Backup of entire operating system partition.


Say I have my OS exactly how I want it on a dedicated system partition (All other important important data is kept on seperate drives).

How possible (Read practical) is it to make a DD clone of the partition and store it on a backup drive as a .img until required.

If required... simply DD it back on to a clean partition of the same size and have it boot up as normal (After a bootloader reinstall).

But will DDing it back on return a functional OS?

Thank you.
 
Old 03-01-2010, 08:15 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
This is completely feasible, but there are some cautions:

First, don't attempt to clone the partition that you are working from. The easy solution is to boot from liveCD and run "dd" from there.

Make sure that you store the image file somewhere that has enough space. Running from the live CD, you first have to mount the partition where you want to store the image.

If you clone just the partition, the bootloader will stay in the MBR. It will point to the partition ONLY if you restore it to the same partition number on the disk. Otherwise, you would need to change /boot/grub/menu.lst to point to the right place.
 
1 members found this post helpful.
Old 03-01-2010, 08:57 AM   #3
Gavin Harper
Member
 
Registered: Feb 2010
Location: Finland
Distribution: Slackware
Posts: 169

Original Poster
Rep: Reputation: 24
Hi there! Thanks a lot!

I would use a live CD and back up first to a local drive and then transfer it to network storage (Plenty space).
The bootloader thing was more if the HD fails and I have to transfer the image back.

Is this the best way to do it or is it a sledgehammer to crack a nut?
 
Old 03-01-2010, 03:29 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
This is not a direct answer but--I would personally not bother with backing up a complete installation----just data.

The OS gets zapped---> Reinstall

In my case, I seem to change or upgrade systems faster than they fail---YMMV
 
Old 03-01-2010, 05:34 PM   #5
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
I like to dd my /dev/hda6 (complete debian lenny amd64 install with all my downloaded deb's 1.1GB in var/cache/apt/archives, screen and session settings etc.) to a usb /dev/sdb3 partition of the same 10.6GB size (76% used) and it takes under 17 minutes using bs=2048 and conv=notrunc,noerror on a weekly basis - and if I screw something up or install something I don't want, it takes the same amount of time to rewrite it back and everything is working even my wireless (broadcom 4306 using ndiswrapper and netbc564.inf drivers) so that I can get back online almost immediately.

Hope this helps
 
Old 03-01-2010, 06:22 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I don't like dd as an archiver - you never know if you have problems with the backup, and has no flexibility re size and filesystem type to restore to. I use it occasionally if I think I may break a (test) system, and want a quick backup.
I recently heard about fsarchiver. Appeals more to me as it's f/s aware, and does some CRC checking - is on my list of things to try out.
 
  


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
Backup entire system to DVD. bluesword1969 Linux - Software 3 02-09-2010 03:49 PM
backup entire partition strycnine Linux - General 2 01-26-2010 01:09 AM
can makepkg backup my entire system globaltree Slackware 3 09-15-2009 03:15 PM
How to backup entire system without shutting down andrewjschmidt Linux - General 6 06-01-2004 06:01 PM
How can I backup my entire system? TheDirtyPenguin Linux - Software 5 03-16-2004 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:53 AM.

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