Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: I would like to create a disk image

  1. #1
    Join Date
    Oct 2010
    Beans
    86

    I would like to create a disk image

    I would like to make a backup of my Ubuntu partition (I'm duel booting). How can I create a disk image in case I toast this partition and want to reinstall Kubuntu with all my information and applications.

    Thanks.

  2. #2
    Join Date
    Jul 2009
    Beans
    93

    Re: I would like to create a disk image

    There are many ways, but Clonezilla is the first thing to come to mind and dd is the second.

    http://clonezilla.org/
    http://www.linuxweblog.com/dd-image

  3. #3
    gmjs is offline Gee! These Aren't Roasted!
    Join Date
    Nov 2006
    Location
    UK
    Beans
    153
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I would like to create a disk image

    Hi,

    Yes--this one's a big question. Also, since Ubuntu (and others) made ext4 the default file system during installation, it's knocked a few potentials off the list!

    +1 for clonezilla though. I've used the server version (DRBL) to perform a backup and restore and it worked very well. Clonezilla Live supports the ext4 file system and can be installed and run from a USB pen.

    The site states a limitation of only being able to restore from a single CD or DVD, rather than multiple ones--that's my only issue with the non-server version.

    Hope this helps.

    Graham


    (I've never used 'dd' to back up a partition. I might have to try sometime! It just copies (it stands for 'carbon copy' but 'cc' was already being used so they called it 'dd'--seriously!) the raw data from a device to a file. I probably wouldn't recommend it if you're not completely happy at the command line, but you'd use a line similar to this to do it (probably using a live distro so that the partition is not mounted):

    dd if=/dev/sda1 of=/backup/location/my-partition.img

    if='input file' and of='output file')
    Last edited by gmjs; January 7th, 2011 at 03:05 PM.

  4. #4
    Join Date
    Mar 2010
    Location
    Luna Free State
    Beans
    169
    Distro
    Ubuntu

    Re: I would like to create a disk image

    Quote Originally Posted by gmjs View Post
    The site states a limitation of only being able to restore from a single CD or DVD, rather than multiple ones--
    Lest someone misunderstand this, may I elaborate a bit? Clonezilla itself fits just fine on one CD. But the image it makes doesn't have to be on a removable disk (CD or DVD or whatever) at all. You can keep an image of your Ubuntu boot partition on another partition of the same drive or on another drive. To me the sensible thing is to have a data partition and put it in a folder there named Partition_images or some such but you could have a separate partition for it or even put it on your Windows partition if you want. Of course if the image is small enough you can fit it on a CD or DVD. And remember the image doesn't have to be anywhere near as big as the partition being cloned. Clonezilla has several different compression modes and the highest compression mode is pretty darn efficient. Perhaps Clonezilla won't split it up automatically if it is too big for that (I don't recall ever trying) but that isn't much of a limitation. Just make the image on another partition of your hard drive and then use lxsplit or HJsplit or some such to split it down to CD size parts. But as a routine thing, unless you need the added physical security of being able to remove the media and store it remotely, or are really pressed to the wall on hard drive space, why bother? Restoring from a CD is a pain in the butt compared to doing it from a hard drive.

    Clonezilla rocks! Ain't nothin like it.
    Last edited by LewRockwellFAN; January 7th, 2011 at 05:07 AM. Reason: Minor addendum re compression
    Please don't remove the forum archives!
    http://ubuntuforums.org/showthread.p...1#post10640901

  5. #5
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: I would like to create a disk image

    +1 for clonezilla and had tried a few restores with no problems well playing. Must others work good but clonezilla took the spot light for me. GL

  6. #6
    Join Date
    Dec 2010
    Beans
    122
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: I would like to create a disk image

    +1 for clonezilla. Last night I used it to replace a drive - SDA that was failing. The only unexpected thing about it is you have to specify the target prior to selecting the source. I use ext4 file system so this was one of the few options.

  7. #7
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    8,042

    Re: I would like to create a disk image

    Howdy,

    New Linux users always look around for a way to make a complete backup. Old hands don't bother...

    The reason is that Linux is very easy to install - much easier and faster than to recover a backup of the whole system, which can take hours to make and hours to restore. Also, one day, when your disk dies, do you really want to re-install a 3 year old backup of a quaint old bug-ridden version of Linux, or would you want the latest version with the newest bells and whistles?

    The trick is to install the system with a separate /home partition and make a backup of your data only, which is orders of magnitude less than the whole system. Then, one day when the inevitable happens, you re-install Linux and make sure that your DON'T format /home and then you are back up and running in about 30 minutes.

  8. #8
    Join Date
    Aug 2010
    Location
    Cullinan , Gauteng
    Beans
    436
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I would like to create a disk image

    +1 For imaging. Ubuntu is not so quick to re-install at all. It takes a long time to download and install all the extras you need to have a proper system. There is a lot of software and extras that doesn't come standard with ubuntu and it just takes much longer to download and install and config them again than simply restoring an image. It took me more than a week to get my installation working properly and have all the software you need. An image reload is an hour , done.
    Last edited by Ghost_Mazal; January 7th, 2011 at 12:25 PM.
    I5 3ghz , 16gig RAM, Nvidia Geforce GT610 1gig

  9. #9
    Join Date
    Aug 2007
    Beans
    519

    Re: I would like to create a disk image

    Flyback is a good choice..it's modeled after Apple's "Time Machine."

    http://code.google.com/p/flyback/

    I find it just as easy to back up your /home folder on an external drive and reinstall. It only takes a few minutes to do it the old fashioned way.

  10. #10
    Join Date
    Aug 2007
    Beans
    519

    Re: I would like to create a disk image

    Quote Originally Posted by Ghost_Mazal View Post
    +1 For imaging. Ubuntu is not so quick to re-install at all. It takes a long time to download and install all the extras you need to have a proper system. There is a lot of software and extras that doesn't come standard with ubuntu and it just takes much longer to download and install and config them again than simply restoring an image. It took me more than a week to get my installation working properly and have all the software you need. An image reload is an hour , done.
    This is why I use the "SuperOS" remix of Ubuntu.

    http://hacktolive.org/wiki/Super_OS

    All the extras are packed right into a DVD image. This DVD makes reinstalling Ubuntu a ten minute job.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •