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
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvdgh5zgftb24=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
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 a return and select the default size. Space saving
5, prompt for the partition number, select a partition number. The partition number that is not in the fdisk-l. There was no/dev/sda3. was added later.
6, enter W, save
7, reboot reboot, 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 folder you want, such as to the/root folder, to run:
[email protected] /dev/sda3/
11. in Vim change/etc/fstab file, add "/dev/sda3/dext2 defaults 0 0" line and save. Realize booting yourself on the active Mount
Vmwave under Ubuntu extended disk space