UbuntuLinux migrates data from one hard disk to another.
Source: Internet
Author: User
In addition to the hard disk, the machine is changed once. Ubuntu is still on the 40 Gb old hard disk. Today, we will migrate it to the new hard disk (250 GB ). 40 Gb hard drive is intended to install an XP, sometimes the game needs. Objective: Linux was originally installed on hda and has only one '/' partition. hda3 is transferred to sda. Set sda as the primary disk. Step: 1. Use liveCDboot. 2. Partition and then divide the new hard disk (sda) as needed ). The Division is as follows: 20Gfat3 replaces the hard disk with the machine.
Ubuntu is still on the 40 Gb old hard disk. Today, we will migrate it to the new hard disk (250 GB ). 40 Gb hard drive is intended to install an XP, sometimes the game needs.
Purpose:
Linux was originally installed on hda, with only one '/' partition, hda3, and transferred to sda. Set sda as the primary disk.
Steps:
1. Use live CD boot.
2. partitions
Then, divide the new hard disk (sda) as needed ).
It is divided into the following parts:
20G fat32
1G swap
Extended partition
400 M/boot
30G/
180 GB/home
3. copy
Mount hda3 and sda6 to the oldroot and newroot directories of/media.
Then
# Cd/media/oldroot
# Sudo find.-print | sudo cpio-pamd/media/newroot
Copy/boot AND/home to the corresponding partition.
4. Grub boot
Set sda as the master disk, install MBR of grub, and modify menu. lst to guide the new system and slave disk.
5. fstab
Modify fstab, load the corresponding partition, and use UUID.
The system has been migrated. Next, install XP to the slave disk.
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