歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 虛擬機增加Linux容量

虛擬機增加Linux容量

日期:2017/2/28 17:16:03   编辑:Linux教程
查看 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
Copyright © Linux教程網 All Rights Reserved