| 论坛注册| 加入收藏 | 设为首页| RSS
Google
您当前的位置:首页 > Linux频道 > Linux入门与提高 > 安装与配置

虚拟机扩充Linux操作系统容量

时间:2007-11-26 10:33:52  来源:Linux联盟收集整理  作者:
 

查看 cd /dev 下的增加的磁盘 ls –l hd* (一般情况下都是增加的hdb和hdc) kzALinux联盟

磁盘空间 df –k kzALinux联盟

给新硬盘分区: kzALinux联盟

fdisk /dev/hdb kzALinux联盟

下一步 kzALinux联盟

Command (m for help): n kzALinux联盟

Command action kzALinux联盟

e extended kzALinux联盟

p primary partition (1-4) kzALinux联盟

p kzALinux联盟

Partition number (1-4): 1 kzALinux联盟

First cylinder (1-10402, default 1): 1 kzALinux联盟

Last cylinder or +size or +sizeM or +sizeK (1-10402, default 10402): 10402 kzALinux联盟

Command (m for help): p kzALinux联盟

Disk /dev/hdb: 5368 MB, 5368709120 bytes kzALinux联盟

16 heads, 63 sectors/track, 10402 cylinders kzALinux联盟

Units = cylinders of 1008 * 512 = 516096 bytes kzALinux联盟

Device Boot Start End Blocks Id System kzALinux联盟

/dev/hdb4 1 10402 5242576+ 83 Linux kzALinux联盟

Command (m for help): w kzALinux联盟

The partition table has been altered! kzALinux联盟

Calling ioctl() to re-read partition table. kzALinux联盟

Syncing disks. kzALinux联盟

查看 cd /dev 下增加了hdb1 再增加一个oracle目录 kzALinux联盟

下一步: mke2fs /dev/hdb4 kzALinux联盟

下一步: mount /dev/hdb4 /home/oracle kzALinux联盟

下一步: 编辑 /etc/fstab文件 kzALinux联盟

增加一条语句 : /dev/hdb1 /home/oracle ext2 defaults 1 2 kzALinux联盟

来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目更新
栏目热门