Use existing Ubuntu partition as an installation image?
Solution 1:
Remastersys is the application you need.
For a step-by-step description with screenshots, visit: http://www.psychocats.net/ubuntu/remastersys
Solution 2:
I had this problem too (asked about it here before I found this thread)
Is it possible to create an installation disk of Ubuntu, from an already existing installation?
I tried looking into Remastersys, but after I read this line:
Remastersys itself has been discontinued
I didn't bother to look if it's true or not, and tried using relinux.
Suffice to say it worked like a charm.
(There is no GUI, it's all commands)
How to use it (All following info are taken and available inside the application):
- Download the tar file.
- Extract it
-
To install it, run this command:
sudo cp -R usr etc wubick/etc wubick/usr /
- After installing it, the
/usr/share/doc/relinux/README
file contains information on how to use the application -
Run the following two commands:
sudo cp /etc/relinux/relinux.conf ./relinux.conf sudo sed -i 's:EXCLUDES="\(.*\)":EXCLUDES="\1 '`readlink -f ./relinux.conf`'":g' ./relinux.conf
-
If you know what you are doing, edit the configuration file you just copied to change the parameters as you with.
For example adding
/home/*
to theEXCLUDES
parameter, if you don't want personal data to be copied. (I wasn't sure if it gets excluded automatically, but it's better to be safe) -
Run this command :
sudo relinux squashfs relinux.conf
It will take a little while before it finishes (sudo is required here even if you were in a folder owned by you, because this relinux will check for missing and required packages and install them).
-
Finally run:
sudo relinux onlyiso relinux.conf
This will create the ISO file. If you didn't change anything in the configuration file, it will be called
custom.iso
.
P.S. The last two commands can combined into one with sudo relinux iso relinux.conf
if you feel like waiting for the first to finish and then run the second.
P.S.S If anything messes up, and/or you decided to start from scratch run one of these commands first (depending on what you want).
sudo relinux clean relinux.conf
sudo relinux fullclean relinux.conf
The first cleans the temp files created in your working directory (WORKDIR
parameter in the configuration file)
The second ones cleans all the files created, even the ISO file.
Solution 3:
If the machine has the same hardware, you could image the orignal and restore it to the new machine using something like clonezilla. Storing the image on the network and restoring it using a clonezilla live cd works very well.
Solution 4:
Copying the whole hard drive contents over from your current one to your new one should work fine as long as both machines have the same hardware architecture, e.g. 32bit to 32bit.
If the drivers are non-standard and differs (e.g. current is ati graphics card, new is nvidia) you'll have to install the correct drivers.
If you've created an xorg.conf file then that may not be suitable for the new graphics/monitor.
You can make an exact copy using the dd command. dd if=/dev/currentdrive of=/dev/newdrive