Migrate the entire ubuntu System

Source: Internet
Author: User
I have been installing Ubuntu7.04 using the loop file provided by gnix_oag. It has been quite good for a few months. The advantages of this method are obvious. The installation is very simple, there is no need for partitioning, And the backup is also simple, copy the writable file. But it also has some shortcomings. First, it uses the unionfs (aufs) method to merge several squashfs compressed files and a writable ext3 file into a file system. After decompression, merging, and loop, efficiency: Ubuntu 7.04 is always installed using the loop file provided by gnix_oag without direct access to the hard disk. It has been quite good for a few months. The advantages of this method are obvious and the installation is very simple, partitioning is not required, and backup is simple. Just copy the writable file. But it also has some shortcomings. First, it uses the unionfs (aufs) method to merge several squashfs compressed files and a writable ext3 file into a file system. After decompression, merging, and loop, efficiency must be lower than direct access to the hard disk. This method of using the suqashfs file system can save some space, but because it is read-only, when running the system update and upgrade software, the existing files are only marked as deleted, the space will not be released, which is a waste of space. The maximum rwfs file placed on the fat32 partition is 4 GB, which may not be enough in the future. There is also the initrd file used during the startup is specially customized, the kernel upgrade needs to be re-made, involving aufs and ntfs-3g driver module, more trouble. Finally, I like ubuntu very much. I plan to use it later, so I should give it a name to make it a system independent of windows. The life is tossing, so I started tossing again. It is too troublesome to install it again from the beginning (nobody likes to reinstall the system), So I copied the system that I used for a few months into a real ext3 partition. It has been used for two weeks and no sequelae have been found.

Qian Kun's Guide to migration and training

1. Use the partition tool you are familiar with (such as gparted) to create a new partition for ubuntu, format it into the ext3 format, and create a swap partition. I divided the 10 Gb ext3 as the root partition, and there is also a m swap. If you have enough space, you can make the root score a little larger. 256 M swap is enough for me. I have 1 ~ 2 GB memory, used for two weeks, swap seems to have used up to 10 M.

2. Prepare to start the new system.
2a. If you want to continue using ntldr of windows xp, perform this step.
First, copy the desired kernel and initrd file. For example, if I use 2.6.20-16-generic, The vmlinuz-2.6.20-16-generic and initrd. the img-2.6.20-16-generic copies from the/boot directory to the directory where the kernel was originally started (such as the boot directory of the C disk ). Then modify the original menu. lst file and add the following content:

Title Ubuntu Linux 7.04 Mobile
Kernel (hd0, 0)/boot/vmlinuz-2.6.20-16-generic root = UUID = 9a92ac52-bc67-49bd-8a54-00370f78658a rw splash
Initrd (hd0, 0)/boot/initrd. img-2.6.20-16-generic

"(Hd0, 0)/boot" should be modified according to your own situation; the uuid of the partition can be viewed using the following command:

Ls-l/dev/disk/by-uuid

If the new partition is on an internal hard disk, the location is relatively fixed. You can directly write it as "root =/dev/hdax. Because I installed it on a mobile hard disk, it is more convenient to use uuid.

2b. If you want to use grub4dos for direct boot, perform this step.
Download and decompress the latest grub4dos version, and use bootlace.com to install the Boot Code:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.