linux划分文件系统
来源:优易学  2010-1-4 19:29:01   【优易学:中国教育考试门户网】   资料下载   IT书店

 

  WARNING: Re-reading the partition table failed with error 16: Device or resource busy.

  The kernel still uses the old table.

  The new table 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.

上一页  [1] [2] 

责任编辑:小草

文章搜索:
 相关文章
热点资讯
热门课程培训