快速业务通道

linux 划分文件系统

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-25
will be used at the next reboot.

  Syncing disks.

  注意系统提示“Device or resource busy.”,当出现这一提示时,需要手工通知操作系统分区表已经作了改动

  [root@hzmc bin]# partprobe /dev/sdb

  3、将/dev/sdb7格式化成ext3文件系统

  [root@hzmc bin]# mkfs -t ext3 /dev/sdb7

  mke2fs 1.39 (29-May-2006)

  Filesystem label=

  OS type: Linux

  Block size=4096 (log=2)

  Fragment size=4096 (log=2)

  10010624 inodes, 20002925 blocks

  1000146 blocks (5.00%) reserved for the super user

  First data block=0

  Maximum filesystem blocks=0

  611 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, 7962624, 11239424

  Writing inode tables: done

  Creating journal (32768 blocks): done

  Writing superblocks and filesystem accounting information: done

  This filesystem will be automatically checked every 23 mounts or

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

  You have new mail in /var/spool/mail/root

  [root@hzmc bin]# mkdir /siqi

  [root@hzmc bin]# mount /dev/sdb7 /siqi

  4、将文件系统信息添加到fstab文件中,随系统自启动

  /dev/sdb7 /siqi ext3 defaults 0 0

  这里注意第4,5,6列数字含义

  The 4th column uses the default options that are rw, suid, dev, exec, auto, nouser, and async.

  The 5th column in /etc/fstab is the dump option. Dump checks it and uses the number to decide if a filesystem should be backed up. If it''s zero, dump will ignore that filesystem. If you take a look at the example fstab, you''ll notice that the 5th column is zero in most cases.

  The 6th column is a fsck option. fsck looks at the number in the 6th column to determine in which order the filesystems should be checked. If it''s zero, fsck won''t check the filesystem.

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站: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号