Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1043705
  • 博文数量: 244
  • 博客积分: 6820
  • 博客等级: 准将
  • 技术积分: 3020
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 21:33
文章分类

全部博文(244)

文章存档

2013年(1)

2012年(16)

2011年(132)

2010年(3)

2009年(12)

2008年(80)

我的朋友

分类: LINUX

2011-04-15 15:00:19

1.分区
2.格式化化
 sda1 sda2 sda3 sda4
/bin/busybox mdev -s
/bin/mke2fs /dev/sda2 -j -b 4096 -m 0 -i 5000000 > /dev/null
/bin/tune2fs -i 0 -c 0 /dev/sda2

/bin/mke2fs /dev/sda3 -j -b 4096 -m 0 -i 5000000 > /dev/null
/bin/tune2fs -i 0 -c 0 /dev/sda3

/bin/mke2fs /dev/sda4 -j -b 4096 -m 0 -i 5000000 > /dev/null
/bin/tune2fs -i 0 -c 0 /dev/sda4

/bin/mke2fs /dev/sda1 -j -b 4096 -m 0 -i 1000000 > /dev/null
/bin/tune2fs -i 0 -c 0 /dev/sda1
3.开机处理
/bin/dumpe2fs -h /dev/sda1
/bin/e2fsck -p /dev/sda1
/bin/busybox mkdir -p /mnt/sda1
/bin/busybox mount -t ext3 -r -o noatime,commit=60 /dev/sda1 /mnt/sda1
/bin/busybox umount /mnt/sda1

/bin/dumpe2fs -h /dev/sda2
/bin/e2fsck -p /dev/sda2
/bin/busybox mkdir -p /mnt/sda2
/bin/busybox mount -t ext3 -r -o noatime,commit=60 /dev/sda2 /mnt/sda2
/bin/busybox umount /mnt/sda2

/bin/dumpe2fs -h /dev/sda3
/bin/e2fsck -p /dev/sda3
/bin/busybox mkdir -p /mnt/sda3
/bin/busybox mount -t ext3 -r -o noatime,commit=60 /dev/sda3 /mnt/sda3
/bin/busybox umount /mnt/sda3

/bin/dumpe2fs -h /dev/sda4
/bin/e2fsck -p /dev/sda4
/bin/busybox mkdir -p /mnt/sda4
/bin/busybox mount -t ext3 -r -o noatime,commit=60 /dev/sda4 /mnt/sda4
/bin/busybox umount /mnt/sda4

/bin/busybox mdev -s
mkdir -p /mnt/sda1
/bin/busybox mount -t ext3 -o noatime /dev/sda1 /mnt/sda1
/bin/busybox umount /mnt/sda1

/bin/hdparm -f /dev/sda
/bin/hdparm -F /dev/sda
/bin/hdparm -y /dev/sda

4.真正挂载
/bin/busybox mkdir -p /mnt/sda1
/bin/busybox mount -t ext3 -o noatime /dev/sda1 /mnt/sda1
/bin/busybox mkdir -p /mnt/sda2
/bin/busybox mount -t ext3 -o noatime /dev/sda2 /mnt/sda2

/bin/busybox mkdir -p /mnt/sda3
/bin/busybox mount -t ext3 -o noatime /dev/sda3 /mnt/sda3
/bin/busybox mkdir -p /mnt/sda4
/bin/busybox mount -t ext3 -o noatime /dev/sda4 /mnt/sda4
5.卸载
/bin/busybox umount /mnt/sda1
/bin/busybox umount /mnt/sda2
/bin/busybox umount /mnt/sda3
/bin/busybox umount /mnt/sda4
/bin/hdparm -f /dev/sda
/dev/sda:
/bin/hdparm -F /dev/sda
/dev/sda:
/bin/hdparm -y /dev/sda
阅读(605) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~