Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/sbin/sh
- #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Library General Public License as published
- # by the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
- #
- echo ***************Log Start***************
- /tmp/busybox mount -o remount,rw rootfs /
- /tmp/busybox rm /sdcard/journalon.log
- /tmp/busybox mkdir /etc
- cat /proc/mounts > /etc/mtab
- /tmp/busybox mount -o remount,ro rootfs /
- echo ***************Begin System Partition***************
- /tmp/busybox umount -l /system
- /tmp/tune2fs -O +has_journal -c 5 -i 5d -m 0 -o journal_data_ordered /dev/block/stl9
- /tmp/fsck.ext4 -Dfy /dev/block/stl9
- /tmp/busybox mount -t ext4 -o check=no /dev/block/stl9 /system
- echo ***************System Partition Done***************
- # Cache partition
- echo ***************Begin Cache Partition***************
- /tmp/busybox umount -l /cache
- /tmp/tune2fs -O +has_journal -c 100 -i 100d -m 0 -o journal_data_writeback /dev/block/stl11
- /tmp/fsck.ext4 -Dfy /dev/block/stl11
- /tmp/busybox mount -t ext4 -o nosuid,nodev /dev/block/stl11 /cache
- echo ***************Cache Partition Done***************
- # Data partition
- echo ***************Begin Data Partion***************
- /tmp/busybox umount -l /data
- /tmp/tune2fs -O +has_journal -c 5 -i 5d -m 0 -o journal_data_ordered /dev/block/stl10
- /tmp/fsck.ext4 -Dfy /dev/block/stl10
- /tmp/busybox mount -t ext4 -o nosuid,nodev /dev/block/stl10 /data
- sync
- echo ***************Data Partion Done***************
- echo ***************Finished Journaling Partions***************
Advertisement
Add Comment
Please, Sign In to add comment