I am running Ubuntu 11.04. But now due to some or other reasons I have to format my entire disk and reinstall the Ubuntu, But I have Installed many softwares on Natty. And when I'll reinstall the ubuntu, I have to again reinstall all those updates , drivers and softwares too. So I want to ask is there any way so that I can make an .iso image of installed Ubuntu along with all the softwares, preferences, drivers etc. existing in it ? Is there any way so that I can back up my whole OS along with all its softwares, drives, updates n all ?
|
|
there are various ways to do that. The simplest one is using remastersys
You should install ubiquity package before working with remastersys or you can use fsarchiver, redo-backup (A live cd) |
|||
|
|
|
What you can do is to backup your home directory and save a list of all packages that you have installed. To save the list of installed software use following command:
This will create a file with a list of all pakcages/softwares that are installed on this system. You will need to backup this file to somewhere safe. Then when you reinstall ubuntu on your machine you can use the following command to install all these software
This command WILL NOT install anything. It will just mark the packages for install. To install them, run the following command:
This will take time to complete as your system will download and install all the packages. After this command is complete replace your current home directory with the one you backedup previously. Hope this helps |
|||||||||||
|
|
I answered "How to customize live Ubuntu CD?" with a way of creating live CDs from current installations. This means that you will not need to download all the packages again. This guide may seem long and hard, but it is mostly "follow along" and "copy and paste". Here it is, copied out and edited a bit: Creating a live CD from an existing/new installationA good way would be making a live CD from a current installation. This can be done using a virtual machine (just don't install any VM tools inside the guest OS) So, first we need a fresh install(if you can't install it for real, try using a virtual machine) with only things that you need (in your case thunderbird, samba and ssh). Then we tweak the system and record where the tweaks are (e.g. you change your desktop background, the settings are in ~/.gconf or you add firefox shortcuts, they are located in ~/Desktop). This is needed for step 4.
All credit goes to capink, because the guide is from here. |
|||||||||||
|
|
If you have Ubuntu installed on a single harddisk and you have another harddisk of equal or larger storage capacity, then cloning the disk is really simple: sudo dd if=/ of=. So, for example, if you want to clone sda to sdb, then you would do sudo dd if=/dev/sda of=/dev/sdb. That would retain all partitions, boot manager, etc. Be careful to use the right if (input file) and of (output file). The input file is the disk you want to copy. If you switch order, then you will clone the empty disk onto the full one, which will leave you with two blank disks. :) Also make sure that the new disk has sufficient space to clone the first disk. Otherwise it'll just be chopped off at the end. There will be no warnings. If you want to create an image, then simply replace of=/dev/sdb with of=/some_place/disk-image.raw. Store it on another disk. |
|||||||
|
|
In China, some friends use ucloner in Ubuntu to backup the OS. https://code.google.com/p/ucloner/
|
|||
|
|
|
I have a script that migrates an Ubuntu install to another location, e.g. in your case you could migrate it to an external hard drive. The neat thing is that you can independently boot it and confirm that it's working before formatting your old drive. It's an exact copy - no configuring, reinstalling or tweaking required. You just have to prepare the target partition. (It also doesn't modify the current install so you can test the migrated one before formatting the old one.) http://ubuntuforums.org/showthread.php?t=1519354 (Yes it's the wubi migration, but it does normal migrations too. I use it all the time to backup and restore different installs) |
|||
|
|
|
Once you get all your data and reinstall, you may want to try using Clonezilla to take an image of your OS. If something goes wrong, just pop in the OS image and you'll have your system back to where it was. |
|||
|
|

