Vmwave under Ubuntu extended disk space

Source: Internet
Author: User

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.