快速业务通道

linux vm 添加硬盘

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-24
g., DOS FDISK, OS/2 FDISK)

  Command (m for help): m

  Command action

  a toggle a bootable flag

  b edit bsd disklabel

  c toggle the dos compatibility flag

  d delete a partition

  l list known partition types

  m print this menu

  n add a new partition

  o create a new empty DOS partition table

  p print the partition table

  q quit without saving changes

  s create a new empty Sun disklabel

  t change a partition''s system id

  u change display/entry units

  v verify the partition table

  w write table to disk and exit

  x extra functionality (experts only)

  Command (m for help): n

  Command action

  l logical (5 or over)

  p primary partition (1-4)

  l 5

  First cylinder (1-2349, default 1):

  Using default value 1

  Last cylinder or size or sizeM or sizeK (1-2349, default 2349):

  Using default value 2349

  Command (m for help): w

  The partition table has been altered!

  Calling ioctl() to re-read partition table.

  Syncing disks.

  扩展分区的逻辑化完成了.

  现在format:

  [root@qa ~]# mkfs -t ext3 -c /dev/sdc5

  mke2fs 1.39 (29-May-2006)

  Could not stat /dev/sdc5 --- No such file or directory

  The device apparently does not exist; did you specify it correctly?

  [root@qa ~]# mkfs -t ext3 -c /dev/sdc5

  mke2fs 1.39 (29-May-2006)

  Filesystem label=

  OS type: Linux

  Block size=4096 (log=2)

  Fragment size=4096 (log=2)

  2359296 inodes, 4717069 blocks

  235853 blocks (5.00%) reserved for the super user

  First data block=0

  Maximum filesystem blocks=0

  144 block groups

  32768 blocks per group, 32768 fragments per group

  16384 inodes per group

  Superblock backups stored on blocks:

  32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

  4096000

  Checking for bad blocks (read-only test): done

  Writing inode tables: done

  Creating journal (32768 blocks): done

  Writing superblocks and filesystem accounting information: done

  This filesystem will be automatically checked every 29 mounts or

  180 days, whichever comes first. Use tune2fs -c or -i to override.

  挂载

  mount /dev/sdc5 /srv

  把挂载添加到分区表中,这样系统每次启动的时候就自动挂载这个分区

  vi /etc/fstab

  添加

  /dev/sdc5 /srv ext3 defaults 0 0

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号