查看 cd /dev 下的增加的磁盘 ls –l hd* (一般情况下都是增加的hdb和hdc)
磁盘空间 df –k
给新硬盘分区:
fdisk /dev/hdb
下一步
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.
查看 cd /dev 下增加了hdb1 再增加一个Oracle目录
下一步: mke2fs /dev/hdb4
下一步: mount /dev/hdb4 /home/oracle
下一步: 编辑 /etc/fstab文件
增加一条语句 : /dev/hdb1 /home/oracle ext2 defaults 1 2
虚拟机增加Linux容量
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/0600945cc7731f040f7f72b6d601bda9.html