Change the size of the root partition in Ubuntu7.04
Source: Internet
Author: User
In general, Linux Root partitions (usually Ext2, Ext3, and ReiserFS formats) cannot change the capacity, which is quite different from FAT32 and NTFS in Windows. I tried it once. Not only can the capacity be changed, but the location of the mobile partition cannot be changed. at startup, the system cannot be started, or an error occurs at the position of the target group. However, there is one way to achieve the above purpose. I tested it successfully in Ubuntu7.04: 1. Use the Ghost tool to back up the Linux Root partition as an image. Ghost is wind. In general, Linux Root partitions (usually Ext2, Ext3, and ReiserFS) cannot change the capacity, which is quite different from FAT32 and NTFS in Windows. I tried it once. Not only can the capacity be changed, but the location of the mobile partition cannot be changed. at startup, the system cannot be started, or an error occurs at the position of the target group. However, there is one way to achieve the above purpose. I tried it successfully in Ubuntu 7.04:
1. Use the Ghost tool to back up Linux Root partitions as images. Ghost is a common software in windows, and its backup efficiency and compression ratio are relatively high. Generally, ghost8.0 and later versions provide better support for linux partitions. We recommend that you use ghost11. Using ghost to back up linux partitions is half slower than backing up windows partitions. The maximum compression ratio is generally about 400 Mb/s, which is acceptable. It will be completed in 10 minutes. Linux users prefer to use the tar command to back up important data directly. However, I personally think it is better to use ghost to completely back up the data, so that all data cannot be restored if the hard disk is damaged.
2. Use paragon patition mamager to adjust the linux Root partition capacity. You can increase or decrease the size from the front or back. Generally, you can keep the size of 10 Gb. Of course, you can also use PQmagic for adjustment. I have never tried it, but it should be fine. In fact, because we need to move data, the adjustment method is slow, and in fact we cannot enter the system after the adjustment, so it is better to simply delete and re-build faster, but be careful not to misoperate, deleting a windows partition is not recommended every day.
3. Use Ghost to restore the previously backed up image to the adjusted new partition and restart it. As a result, it is successfully guided into Ubuntu, but you will find a new problem, that is, windows partitions automatically mounted on Ubuntu may disappear. In fact, changing the linux partition will also cause failure of mounting.
4. Ubuntu is the UUID of the tool hard disk partition for mounting. Therefore, if the location of the hard disk partition changes, the mounting will naturally become invalid. Don't worry, you can re-mount it. Open the terminal and enter "sudo ls-l/dev/disk/by-uuid" to display the UUID of each partition of the current hard disk, enter "sudo gedit/etc/fstab" in the terminal to open fstab, replace the unmounted partition UUID with the obtained UUID, save and disable fstab, and restart the system.
This method is safe and practical, so that the system you have worked hard to configure does not need to be re-installed, and the backed-up ghost image can be used to restore the system at any time without any effort.
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