Article Title: the simplest method is Linux Root partition resizing. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
After using Fedora 7 for a period of time, I have been deeply fond of Linux and its culture. However, the increasing number of new software and update systems can easily cause insufficient root partition capacity, how can we safely and easily expand our root partitions?
It is usually used to mount another ext3 partition to linux, and then copy/home or/usr to the new partition, and then modify fstab to solve the problem, but this method is very troublesome, it is not the best way, because it does not fundamentally expand the capacity of the root partition, And if linux is installed at the end of the physical disk in the case of dual systems, in addition, if you re-use software such as PQ to split a partition on a windows disk before linux, formatting will cause the partition symbol of the grub logo to be inconsistent with the actually changed one, as a result, grub cannot be started. You also need to modify the menu of grub. lst menu.
Gparted in linux is a simple and intuitive graphical operation software, but the root partition capacity cannot be changed because the software usually needs umount before changing the partition, however, it is hard to imagine "/" umount.
It is possible to use LVM for modification, but the operations are complicated and abstract.
Some people say that it can be adjusted using PQ in windows, but PQ does not support the ext3 partition format.
Finally, we found a way to fully expand the linux Root partition in windows, without having to make any modifications to the menu of fstab and grub:
0 first write out the disk usage before the root partition capacity is increased:
QUOTE:
[root@localhost /]# sbin/fdisk -lDisk /dev/sda: 160.0 GB, 160041885696 bytes255 heads, 63 sectors/track, 19457 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sda1 * 1 1958 15727603+ 7 HPFS/NTFS/dev/sda2 1959 19456 140552685 f W95 Ext'd (LBA)/dev/sda5 1959 3916 15727603+ 7 HPFS/NTFS/dev/sda6 3917 6527 20972826 7 HPFS/NTFS/dev/sda7 6528 11749 41945683+ 7 HPFS/NTFS/dev/sda8 11750 16318 36700461 7 HPFS/NTFS/dev/sda9 17624 19195 12627058+ 83 Linux/dev/sda10 19196 19456 2096451 82 Linux swap / Solaris |
Intuitive description:
QUOTE:
/Dev/sda1 15G ntfs c xp system/dev/sda5 15G ntfs D/dev/sda6 20G ntfs E/dev/sda7 40G ntfs F/dev/sda8 35G ntfs g/dev/unuse (10 unused GB are here, the software can be dynamically split from the G disk when the G disk is not completely deleted.)/dev/sda9 12G ext3/linux system/dev/sda10 2G swap |
1 Download Software: Acronis Disk Director Suite v10.0.2160
Software: http://fixdown.com/china/System/download_3619.htm
Registration machine: http://www.enfull.com/china/System/%7BB5E0E02D-EAA8-413B-8940-09E7E91920D7%7D.htm
2. Double-click the security software. During installation, enter the registration code, open the registration machine, select the corresponding installation version, generate the registration code, copy it to the installation window, and continue the installation. After the system is restarted, open the software.
3. Based on the partition condition, you can split some space from the G drive to add it to the next "/" partition, provided that there is space you need not to use under the G drive. The actual situation for me is that previously I used PQ to split up 10 Gb of unformatted space from my (G :) disk.
4 of course, you can use Acronis to dynamically adjust Disk Partitions instead of PQ software. After NTFS (G :) is selected, click spilt on the left side to split up some space as prompted.
After 5 minutes, it can be formatted as ext3 for Linux.
Note: you cannot restart the system after formatting the partition. Because the actual partition has been changed, grub cannot boot. If you want to discard the operation, you should first set the partition you just divided to not occupied, and display it as Unallocated in Acronis.
6. Select the formatted ext3 partition, click the Merge option on the left, and follow the Wizard to Merge the ext3 partition into the "/" partition, the merged partition should be adjacent to the original root partition on the physical disk. After the command is executed, wait a few minutes and the root partition is successfully resized!
7. You can use Acronis to view the expanded partitions and disk management in the XP system. The root partition space has been increased!
8. restart the system without increasing or decreasing the partition capacity. You should be able to smoothly access grub and start linux.
9 after entering the system, run the sbin/fdisk-l command to check the partition again to see if "/" has increased the capacity. Of course, the check result must have increased, root partition expansion completed! View the partition result as follows:
QUOTE:
[Root @ localhost/] # sbin/fdisk-lDisk/dev/sda: 160.0 GB, 160041885696 bytes255 heads, 63 sectors/track, 19457 cylindersUnits = cylinders of 16065*512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sda1 * 1 1958 15727603 + 7 HPFS/NTFS/dev/sda2 1959 19456 140552685 f W95 Ext 'd (LBA) /dev/sda5 1959 3916 15727603 + 7 HPFS/NTFS/dev/sda6 3917 6527 20972826 7 HPFS/NTFS/dev/sda7 6528 11749 41945683 11750 + 7 HPFS/NTFS/dev/sda8 16318 36700461 7 HPFS/NTFS/dev/sda9 16319 19195 23109470 + 83 Linux/dev/sda10 19196 19456 2096451 82 Linux swap/Solarisfstab without any changes: LABEL = // ext3 defaults 1 1 tmpfs/dev/shm tmpfs defaults 0 0 devpts/dev/pts devpts gid = 5, mode = 620 0 0 sysfs/sys sysfs defaults 0 0 proc/proc defaults 0 0 LABEL = SWAP-sda10 swap defaults 0 0/dev/sda5/mnt/windows_d ntfs umask = 000, nls = utf8/dev/sda8/mnt/windows_g ntfs umask = 000, nls = utf8/dev/sda6/mnt/windows_e ntfs umask = 000, nls = utf8/dev/sda7/mnt/windows_f ntfs umask = 000, nls = utf8grub menu. lst does not need to make any changes: # grub. conf generated by anaconda # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a/boot partition. this means that # all kernel and initrd paths are relative to/, eg. # root (hd0, 8) # kernel/boot/vmlinuz-version ro root =/dev/sda9 # initrd/boot/initrd-version.img # boot =/dev/sdadefault = 0 timeout = 5 splashimage = (hd0, 8) /boot/grub/splash.xpm.gz hiddenmenutitle Fedora (2.6.23.1-10. fc7) root (hd0, 8) kernel/boot/vmlinuz-2.6.23.1-10.fc7 ro root = LABEL =/acpi = off noapic rhgb quietinitrd/boot/initrd-2.6.23.1-10.fc7.imgtitle Windows XProotnoverify (hd0, 0) chainloader + 1 |
Note: If the operation fails, use Windows 98 to start the disk, format the MBR at the DOS prompt, and restart Windows XP.