给虚拟机VMWare下的redhat5.5根分区扩容(3)

来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:14 点击:

p>       m   print this menu

p>       n   add a new partition

p>       o   create a new empty DOS partition table

p>       p   print the partition table

p>       q   quit without saving changes

p>       s   create a new empty Sun disklabel

p>       t   change a partition's system id

p>       u   change display/entry units

p>       v   verify the partition table

p>       w   write table to disk and exit

p>       x   extra functionality (experts only)

p>    

p>    Command (m for help): n #新建分区

p>    Command action

p>       e   extended

p>       p   primary partition (1-4)

p>    p

p>    Partition number (1-4): 3 #创建id号为3的分区

p>    First cylinder (2611-5221, default 2611):  #直接回车,使用默认值

p>    Using default value 2611

p>    Last cylinder or +size or +sizeM or +sizeK (2611-5221, default 5221): #直接回车,使用默认值

p>    Using default value 5221

p>    

p>    Command (m for help): t #修改系统分区的id号

p>    Partition number (1-4): 3 #指定要修改的分区id号

p>    Hex code (type L to list codes): 8e #指定要改成的id号,8e代表LVM

p>    Changed system type of partition 3 to 8e (Linux LVM)

p>    

p>    Command (m for help): w #写入分区表

p>    The partition table has been altered!

p>    

p>    Calling ioctl() to re-read partition table.

p>    

p>    WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.

p>    The kernel still uses the old table.

p>    The new table will be used at the next reboot.

p>    

p>    [root@etl110 ~]# reboot

p>    重启系统后就可以在/dev/下看到sda3了

p> 

p>第三步:格式化该新添加的分区

p>    键入命令:mkfs -t ext3 /dev/sda3,将/dev/sda3格式化为ext3格式,操作过程如下所示:

p>    

p>            [root@etl110 ~]# mkfs -t ext3 /dev/sda3

p>            mke2fs 1.39 (29-May-2006)

p>            warning: 334 blocks unused.

p>            

p>            Filesystem label=

p>            OS type: Linux

p>            Block size=4096 (log=2)

p>            Fragment size=4096 (log=2)

p>            2626560 inodes, 5242880 blocks
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • VMware View 5.0从菜鸟到高手系列 -连接虚拟桌面
  • kvm中的windows使用Vmware的显示驱动
  • VMware Linux使用Xshell登陆
  • 虚拟机安装MAC查看电脑CPU是否支持VT技术
  • VMWare NAT Centos6.2静态ip设置
  • Virtual Box下同时配置host-only和bridge
  • vmware虚拟机浅析-虚拟网卡
  • VirtualBox打开虚拟硬盘失败的问题
  • 给虚拟机提速的方法

快速直达

操作系统导航

LinuxWindows虚拟机
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1