Vmwave under Ubuntu extended disk space
Ubuntu original pre-installed disk space 20G, with the system installation software more and more, space slowly enough. Plan to install DB2 to expand disk space.
Environment:
No LSB modules is available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: Natty
First step: Turn on VMware, select virtual Machines---settings
Step Two: Start Ubuntu, open the terminal or use Xshell to connect to Ubuntu.
Use command fdish-l to view spatial allocations
[Email protected]:/$ sudo fdisk/dev/sda
1. Select m at the command prompt to view the features menu.
2. Use P to view the partition table
3, enter n(add new), the choice logical or primary
4, enter the return, select the default size, save space
5, prompt to enter the partition number, select a partition number, Fdisk-l no partition number, the original no/dev/sda3, is added later.
6, enter W, save
7, reboot restart, must be restarted, or/DEV/SDA3 cannot be formatted
8, use fdisk-l appear/dev/sda3
9.Mkfs.ext2/dev/sda3 Format
10. When you are finished, you can use the Mount command to attach the/dev/sda3 to the directory you want, such as to the/root directory, to execute:
[email protected] /dev/sda3/
11. in vim modify/etc/fstab file, add "/dev/sda3/dext2 defaults 0 0" line, and save, realize boot auto mount
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Vmwave under Ubuntu extended disk space