Expand Linux capacity by using virtual machines

Source: Internet
Author: User
Expand the Linux capacity of virtual machines-general Linux technology-Linux technology and application information. The following is a detailed description. View the Added Disk ls under cd/dev? L hd * (hdb and hdc are generally added)
Disk Space df? K
Partition A New Hard Disk:
Fdisk/dev/hdb
Next step
Command (m for help): n
Command action
E extended
P primary partition (1-4)
P
Partition number (1-4): 1
First cylinder (1-10402, default 1): 1
Last cylinder or + size or + sizeM or + sizeK (1-10402, default 10402): 10402
Command (m for help): p
Disk/dev/hdb: 5368 MB, 5368709120 bytes
16 heads, 63 sectors/track, 10402 cylinders
Units = cylinders of 1008*512 = 516096 bytes
Device Boot Start End Blocks Id System
/Dev/hdb4 1 10402 5242576 + 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl () to re-read partition table.
Syncing disks.
Check that hdb1 is added to cd/dev and an oracle directory is added.
Next step: mke2fs/dev/hdb4
Next step: mount/dev/hdb4/home/oracle
Next step: edit the/etc/fstab file
Add a statement:/dev/hdb1/home/oracle ext2 defaults 1 2
Related Article

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.