LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2007, 10:37 AM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Rep: Reputation: 33
Creating an image file in Ubuntu Feisty.


Hello again!

In windows, I'd use Ghost, Acronis True Image, etc. There are a lot of programs to create image files to be able to restore the system from scratch. If a problem happens, I restart the computer, run Ghost and then restore the image. After that, everything gets back to when the image was created. I know that many but all of you know this but I still write it as an introduction to be as clear as I can. Sorry if I am too redundant.

Let's go to the point:

Is it possible to create an image file of my Ubuntu installation? If so, What should I install or what steps should I follow to backup and to restore?

I mean not only backup some or many of my files files but creating a complete and exact image file of the partitions so I can restore my Ubuntu configuration and programs from scratch is any problem occurs.

For instance. Now, I would like to try Slackware 11 to see how it works but after testing it I would like to go back to Ubuntu feisty as it is configured now. Is that possible? I hope so :-)

Thank you very much,
Glore2002.-
 
Old 05-05-2007, 04:21 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Well dd can do exact one-to-one copies, images if you like, of disks. And write them back to disks. But I've never tried how well it actually works (note: it creates an image the size of the disk, so if you used dd to create an image out of a 160GB disk, the image was 160GB big in size), but it's easy to use.
Code:
man dd
helps you out.

I'm pretty sure there are nicer methods for this, anyway. dd is nice especially for small medias, like backing up your ipod
 
Old 05-05-2007, 05:35 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can pipe the output of dd through gzip or bzip2. The resulting size tends to be proportional to how full the partition is. It would work better on a new installation where you don't have deleted files. If you wanted to save the image to an external drive, keep in mind that the fat32 filesystem has a 2 GB filesize limit. That's ok, because you can pipe the output of gzip through the split program to break up the image into manageable slices. Then you could use par2 to create parity files in case one of the slices became damages.

Restoring would use the reverse process. You could use cat to re-join the compressed image, which you would pipe through gzip and then the dd program.

It would be better to back up the MBR and use file backup instead of saving and restoring an entire image. You could use dd to restore a corrupted MBR, and then use tar to restore all of the files.

Before performing a fresh upgrade of SuSE 10.2, I used tar to back up the files of my home partition. The filesize of the archive would be too large to store on the fat32 USB drive I was backing up to, so I used split to break it up. Piping the output of cat to tar, I was able to restore from the backup without needing to reassemble a large tar archive.

Last edited by jschiwal; 05-05-2007 at 05:36 AM.
 
  


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
Creating root file image into ramdisk shinobi59 Linux - General 8 11-23-2016 03:30 PM
LXer: The Perfect Setup - Ubuntu Feisty Fawn (Ubuntu 7.04) LXer Syndicated Linux News 0 04-20-2007 03:31 PM
possible DNS problems in ubuntu Feisty CSandman Linux - Networking 7 04-03-2007 12:14 PM
LXer: Creating a dd/dcfldd Image Using Automated Image & Restore (AIR) LXer Syndicated Linux News 0 03-07-2007 05:16 PM
2 GB file limit when creating an image with mkisofs ccasares Linux - Newbie 5 12-26-2004 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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