LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-28-2007, 06:01 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296

Rep: Reputation: 30
Cloning a partition using DD. Some advice / suggestions needed.


Hi there,
I have a perfectly running Ubuntu distro on an old PC and I would basically like to kill two birds with one stone. One to get to know the workings of the DD command to back up a bootable partition, and two to re-assure myself that if the Ununtu partition was to be corrupted I could easily restore the entire partition from a backup copy.

Here are some details. I have 2 HDs on my Ubuntu box. First HD is entirely for the Ubuntu distro. The second HD has two fat32 partitions. One has some data on it and the other is totally free. It is on the "free" partition onto which I would like to keep a clone of the Ubuntu partition. Could the clone be in the form of one file, say "backup.xxx ?" Now, would I have to convert the free partition from fat32 to ext2/3 in order for the cloning to work or can it remain as fat32 ? Also once the Ubuntu has been backed up to the spare drive, would reformatting the Ubuntu drive to an empty ext2/3 with the help of a live CD , and using dd to copy the backup to its original Ubuntu ( now empty) partition leave the system back in its original working state and with no noticeable changes or alterations ?

The object of the exercise, being able to backup and then restore a working Linux, using dd, and with the minimum amount of fuss.
Any advice , suggestions and tips using this method would be most useful.
The tutorial on DD by Awesome is very good but I would appreciate suggestions and real world examples from people who use dd to clone / restore partitions on a regular basis.
(It is a wet and windy Sunday here so the perfect opportunity to stay in and tinker with a linux box !!!)

Thanks very much and all good wishes,

Uncle.

Last edited by uncle-c; 10-28-2007 at 07:28 AM. Reason: additional point added
 
Old 10-28-2007, 01:14 PM   #2
complich8
Member
 
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 15
Assuming your dd image is smaller than the max filesize of the hard drive, you could dump out to it and have no big issues. But fat32 has a 4gb filesize limit, and that's somewhat tighter than I'd want for a functioning desktop.

Also be aware that you may have a separate partition for /boot, which would be important to grab. And you also might want to include your MBR in the list of things you're imaging.

Personally, I'd recommend you look into Clonezilla, 'cause it's neat.
 
  


Reply

Tags
cloning, dd, partition


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
cloning drive but need advice peterb Linux - Newbie 11 10-15-2007 02:18 PM
Partition cloning using dd greenberet Linux - Software 2 04-06-2007 07:20 AM
Partition advice needed aerogate Mandriva 11 12-16-2005 07:40 AM
linux installation on 2nd drive, partition advice needed... Billydakid Linux - Newbie 16 11-10-2005 03:14 AM
Reseizing linux partition? (Advice needed) OneManArmy Linux - Newbie 8 05-03-2004 01:01 AM


All times are GMT -5. The time now is 07:35 PM.

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