Advertisement
hmlogv

[SH-03C]Expand sdboot space

Feb 11th, 2012
959
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. //Please reboot your SH-03C with bootkit and press focus key to stop the count timer.
  2.  
  3. // Initialize.
  4. > adb shell
  5. $ _su
  6. # /bin/sh
  7. ~ # sd
  8. ~ # rw /mnt/sdcard
  9.  
  10. // Make "data_ex.ext2" file and format it!
  11. # dd if=/dev/zero of=/mnt/sdcard/sdboot/data_ex.ext2 bs=1M count=[expanded size(MB)]
  12. # losetup /dev/block/loop0 /mnt/sdcard/sdboot/data.ext2
  13. # losetup /dev/block/loop1 /mnt/sdcard/sdboot/data_ex.ext2
  14. # mkfs.ext2 /dev/block/loop1
  15.  
  16. // Mount SDcard.
  17. # mkdir /data /dataex
  18. # mount -t ext2 /dev/block/loop0 /data
  19. # mount -t ext2 /dev/block/loop1 /dataex
  20.  
  21. //Copy data area to dataex area.
  22. # (cd /data && tar cf - .) | (cd /dataex && tar xvf -)
  23.  
  24. //Then, please cd to /mnt/sdcard/sdboot to change the filename.
  25. # cd /mnt/sdcard/sdboot/
  26. # mv data.ext2 data.ext2.old
  27. # mv data_ex.ext2 data.ext2
  28.  
  29. // Unmount all mounted point and reboot.
  30. # cd /
  31. # umount /data /dataex
  32. # reboot recovery
  33.  
  34. //After your device reboot, please go to Android "settings" -> "microSD & phone storage" and check Internal phone strage. If you got more space, congratulations!
  35. //Of course, you can remove "data_old.ext2", but you should backup this file before you remove because new "data.ext2" file may have some problems^^;
  36.  
  37.  
  38.  
  39. <<If you are using sdboot_r2, please try this.>>
  40.  
  41. // Initialize.
  42. > adb shell
  43. $ _su
  44. # /bin/sh
  45. ~ # sd
  46. ~ # rw /mnt/sdcard
  47.  
  48. // Make "data_ex.ext2" file and format it!
  49. # dd if=/dev/zero of=/mnt/sdcard/sdboot/data_ex.ext2 bs=1M count=[expanded size(MB)]
  50. # losetup /dev/block/loop0 /mnt/sdcard/sdboot/data_app.ext2
  51. # losetup /dev/block/loop1 /mnt/sdcard/sdboot/data_ex.ext2
  52. # mkfs.ext2 /dev/block/loop1
  53.  
  54. // Mount SDcard.
  55. # mkdir /data_app /dataex
  56. # mount -t ext2 /dev/block/loop0 /data_app
  57. # mount -t ext2 /dev/block/loop1 /dataex
  58.  
  59. //Copy data_app area to dataex area.
  60. # (cd /data_app && tar cf - .) | (cd /dataex && tar xvf -)
  61.  
  62. //Then, please cd to /mnt/sdcard/sdboot to change the filename.
  63. # cd /mnt/sdcard/sdboot/
  64. # mv data_app.ext2 data_app.ext2.old
  65. # mv data_ex.ext2 data_app.ext2
  66.  
  67. // Unmount all mounted point and reboot.
  68. # cd /
  69. # umount /data_app /dataex
  70. # reboot recovery
  71.  
  72. // I think you can't get more space in "microSD & phone storage", but don't care.
  73. // If you want to check whether you could got more space correctly, please type these command.
  74. > adb shell
  75. $ busybox df | busybox grep /data/app
  76.  
  77. // After you type these, you can see these messages.
  78. df: /mnt/secure/asec: Permission denied
  79. /dev/block/loop1 655104 60484 561340 10% /data/app
  80. ^This means available space!
  81.  
  82. Post:2012, 12th Feb
  83. Latest update:2012, 13th Feb
  84. Written by takef0845(on twitter)
  85. Website:http://ftake.xrsp.net/blog/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement