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

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

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.