Chinaunix首页 | 论坛 | 博客
  • 博客访问: 137455
  • 博文数量: 24
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 590
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-18 08:29
文章分类

全部博文(24)

文章存档

2011年(1)

2009年(5)

2008年(18)

我的朋友

分类: LINUX

2008-04-27 22:06:53

今天,决定格掉windows不再用了在我的电脑上!其实我早就想把他格式化了!啊哈
[root@localhost disk-1]# umount /dev/sda
sda   sda1  sda2  sda5  sda6  sda7  sda8  sda9  
[root@localhost disk-1]# umount /dev/sda1
umount: /media/disk-1: device is busy
umount: /media/disk-1: device is busy
[root@localhost disk-1]# cd
[root@localhost ~]# umount /dev/sda1
[root@localhost ~]# mkfs.ext3 /dev/sda1
mke2fs 1.40.2 (12-Jul-2007)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1921984 inodes, 3840472 blocks
192023 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3934257152
118 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@localhost ~]#

tune2fs是linux下面重要的文件系统调整工具,其中的几个选项解释如下:

-c:表示文件系统在mount次数达到设定后,需要运行fsck检查文件系统。
-i:文件系统的检查间隔时间。系统在达到时间间隔时,自动检查文件系统。
-l:显示文件系统的很多参数。
-j:转换为ext3文件系统。

通常如果使用ext3文件系统的话,使用-c 0关掉mount次数达到后的文件系统检查。但是,此时最好使用 -i 启动检查时间 间隔,否则文件系统出问题的时候就很难补救了。我的设置是-c 1w,每周自动检查一次。

[root@localhost ~]# tune2fs -i
tune2fs 1.40.2 (12-Jul-2007)
tune2fs:选项需要一个参数 -- i
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
        [-i interval[d|m|w]] [-j] [-J journal_options]
        [-l] [-s sparse_flag] [-m reserved_blocks_percent]
        [-o [^]mount_options[,...]] [-r reserved_blocks_count]
        [-u user] [-C mount_count] [-L volume_label] [-M last_mounted_dir]
        [-O [^]feature[,...]] [-T last_check_time] [-U UUID] device
为什么还有呢
[root@localhost disk-1]# du
16      ./lost+found
20      .
[root@localhost disk-1]# df
文件系统               1K-块        已用     可用 已用% 挂载点
/dev/sda7             18922876  16358416   1587712  92% /
tmpfs                   252944       200    252744   1% /dev/shm
/dev/sda6             19517424  18092112   1425312  93% /media/disk
/dev/sda5             20480008  15975840   4504168  79% /media/软件
/dev/sda9             40678556  13226784  25385416  35% /media/disk-2
/dev/sda1             15120616    168712  14183812   2% /media/disk-1
[root@localhost disk-1]#
lost+found   is   keeping   the   dump   files  
   
  when   linux   not   safe   reboot   the   ram   information   will   keep   in   it  

[root@localhost ~]# umonut /media/
_/              disk-1/         .hal-mtab-lock 
disk/           .hal-mtab       软件/          
[root@localhost ~]# umonut /media/_/
-bash: umonut: command not found
[root@localhost ~]# umount /media/_/
[root@localhost ~]# mkfs.ext3 /dev/sda8
mke2fs 1.40.2 (12-Jul-2007)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2443200 inodes, 4883752 blocks
244187 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
150 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.



阅读(1468) | 评论(1) | 转发(0) |
0

上一篇:静态路由器

下一篇:申请书

给主人留下些什么吧!~~

chinaunix网友2008-04-28 21:26:02

好样的!一个真正的革命者!