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) |