chris41g

Journaling Off

May 11th, 2011
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.82 KB | None | 0 0
  1. #!/sbin/sh
  2. #
  3. # This program is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Library General Public License as published
  5. # by the Free Software Foundation; either version 2, or (at your option)
  6. # any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. #
  13. # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
  14. #
  15. echo ***************Log Start***************
  16. /tmp/busybox mount -o remount,rw rootfs /
  17. /tmp/busybox rm /sdcard/journaloff.log
  18. /tmp/busybox mkdir /etc
  19. cat /proc/mounts  > /etc/mtab
  20. /tmp/busybox mount -o remount,ro rootfs /
  21. echo ***************Begin System Partition***************
  22. /tmp/busybox umount -l /system
  23. /tmp/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/stl9
  24. /tmp/fsck.ext4 -Dfy /dev/block/stl9
  25. /tmp/busybox mount -t ext4 -o check=no /dev/block/stl9 /system
  26. echo ***************System Partition Done***************
  27. # Cache partition
  28. echo ***************Begin Cache Partition***************
  29. /tmp/busybox umount -l /cache
  30. /tmp/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/stl11
  31. /tmp/fsck.ext4 -Dfy /dev/block/stl11
  32. /tmp/busybox mount -t ext4 -o nosuid,nodev /dev/block/stl11 /cache
  33. echo ***************Cache Partition Done***************
  34. # Data partition
  35. echo ***************Begin Data Partion***************
  36. /tmp/busybox umount -l /data
  37. /tmp/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/stl10
  38. /tmp/fsck.ext4 -Dfy /dev/block/stl10
  39. /tmp/busybox mount -t ext4 -o nosuid,nodev /dev/block/stl10 /data
  40. sync
  41. echo ***************Data Partion Done***************
  42. echo ***************Finished No Journaling Partions***************
Advertisement
Add Comment
Please, Sign In to add comment