linux log 格式化,linux格式化

mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ]

[root@localhost ~]# mkfs -t ext3 /dev/sdb1

mke2fs 1.39 (29-May-2006)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

368000 inodes, 734965 blocks

36748 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=754974720

23 block groups

32768 blocks per group, 32768 fragments per group

16000 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912

Writing inode tables: done

Creating journal (16384 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 39 mounts or

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

挂载

[root@localhost /]# mount /dev/sdb1 /u02

[root@localhost /]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda2              15G  3.1G   11G  23% /

/dev/sda6              12G  8.2G  2.8G  75% /u01

/dev/sda3             1.9G  333M  1.5G  19% /tmp

/dev/sda1              99M   12M   83M  12% /boot

tmpfs                 506M     0  506M   0% /dev/shm

/dev/sdb1             2.8G   69M  2.6G   3% /u02

开机自动挂载

vi /etc/fstab

/dev/sdb1               /u02                    ext3    defaults        0 0

/dev/sdb5               /u03                    ext3    defaults        0 0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值