ZackehSoul

iDroid?

Oct 2nd, 2011
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.21 KB | None | 0 0
  1. # cd /jb
  2. # ls -l
  3. total 608
  4. -r-xr-xr-x 1 root admin 32784 Sep 21 20:14 fdisk
  5. -r-xr-xr-x 1 root admin 185008 Sep 21 20:14 fsck_hfs
  6. -r-xr-xr-x 1 root admin 19236 Sep 21 20:14 mount_hfs
  7. -r-xr-xr-x 1 root admin 46300 Sep 21 20:14 newfs_hfs
  8. -rwxr-xr-x 1 root admin 14916 Jan 20 00:02 umount
  9. # sum *
  10. 59451 33 fdisk
  11. 36441 181 fsck_hfs
  12. 25703 19 mount_hfs
  13. 27289 46 newfs_hfs
  14. 37089 15 umount
  15. # PATH=.:$PATH
  16. # tar -cf /private.tar --preserve /private/var
  17. tar: Removing leading `/' from member names
  18. tar: /private/var/run/asl_input: socket ignored
  19. tar: /private/var/run/lockdown/localcomm: socket ignored
  20. tar: /private/var/run/lockdown/syslog.sock: socket ignored
  21. tar: /private/var/run/mDNSResponder: socket ignored
  22. tar: /private/var/run/pppconfd: socket ignored
  23. tar: /private/var/run/syslog: socket ignored
  24. tar: /private/var/tmp/launchd/sock: socket ignored
  25. # umount -f /private/var
  26. # mount
  27. /dev/disk0s1 on / (hfs, local)
  28. devfs on /dev (devfs, local)
  29. # fdisk -e /dev/disk0
  30. fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
  31. Enter 'help' for information
  32. fdisk: 1> edit 2
  33. Starting Ending
  34. #: id cyl hd sec - cyl hd sec [ start - size]
  35. ------------------------------------------------------------------------
  36. 2: AF 1023 254 63 - 1023 254 63 [ 76923 - 3887982] HFS+
  37. Partition id ('0' to disable) [0 - FF]: [AF] (? for help)
  38. Do you wish to edit in CHS mode? [n]
  39. Partition offset [ 0 - 3964928 ]: [76863]
  40. Partition size [1 - 3888065]: [3888065] 3811059
  41. fdisk:*1> edit 3
  42. Starting Ending
  43. #: id cyl hd sec - cyl hd sec [ start - size]
  44. ------------------------------------------------------------------------
  45. 3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
  46. Partition id ('0' to disable) [0 - FF]: [0] (? for help) AF
  47. Do you wish to edit in CHS mode? [n]
  48. Partition offset [ 0 - 3964928 ]: [3887922]
  49. Partition size [1 - 77006]: [77006]
  50. fdisk:*1> print
  51. Disk: /dev/disk0 geometry: 983/64/63 [3964928 sectors]
  52. Sector size: 4096 bytes
  53. Offset: 0 Signature: 0xAA55
  54. Starting Ending
  55. #: id cyl hd sec - cyl hd sec [ start - size]
  56. ------------------------------------------------------------------------
  57. 1: AF 0 1 1 - 1023 254 63 [ 63 - 76800] HFS+
  58. 2: AF 1023 254 63 - 1023 254 63 [ 76863 - 3811059] HFS+
  59. 3: AF 1023 254 63 - 1023 254 63 [ 3887922 - 77006] HFS+
  60. 4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
  61. fdisk:*1> write
  62. Device could not be accessed exclusively.
  63. A reboot will be needed for changes to take effect. OK? [n] y
  64. Writing MBR at offset 0.
  65. fdisk: 1> quit
  66. # sync; sync; sync
  67. # mv /dev/disk0s4 /dev/disk0s2
  68. # mv /dev/rdisk0s4 /dev/rdisk0s2
  69. # newfs_hfs /dev/disk0s2
  70. Initialized /dev/rdisk0s2 as a 14887 MB HFS Plus volume
  71. # mount -t hfs /dev/disk0s2 /private/var
  72. # cd /private/var
  73. # tar -xf /private.tar
  74. tar: private/var/db/localtime: Cannot change ownership to uid 0, gid 80: Function not implemented
  75. tar: Error exit delayed from previous errors
  76. # mv ./private/var/* /private/var && rm -rf ./private
  77. # mount -o ro /
  78. # dd if=/dev/rdisk0s1 of=/dev/rdisk0s3 bs=4096
  79. 76800+0 records in
  80. 76800+0 records out
  81. 314572800 bytes transferred in 232.663737 secs (1352049 bytes/sec)
  82. # fsck_hfs /dev/disk0s3
  83. ** /dev/rdisk0s3
  84. ** Checking HFS Plus volume.
  85. ** Detected a case-sensitive catalog.
  86. ** Checking Extents Overflow file.
  87. ** Checking Catalog file.
  88. ** Checking multi-linked files.
  89. ** Checking Catalog hierarchy.
  90. ** Checking Extended Attributes file.
  91. ** Checking volume bitmap.
  92. ** Checking volume information.
  93. Volume Header needs minor repair
  94. ** Repairing volume.
  95. ** Rechecking volume.
  96. ** Checking HFS Plus volume.
  97. ** Detected a case-sensitive catalog.
  98. ** Checking Extents Overflow file.
  99. ** Checking Catalog file.
  100. ** Checking multi-linked files.
  101. ** Checking Catalog hierarchy.
  102. ** Checking Extended Attributes file.
  103. ** Checking volume bitmap.
  104. ** Checking volume information.
  105. ** The volume Snowbird3A110a.N45Bundle was repaired successfully.
  106. # mount -o rw /
  107. # mkdir /mnt
  108. # mount -t hfs /dev/disk0s3 /mnt
  109. # sed -e "s/disk0s1/disk0s3/" < /mnt/etc/fstab > /tmp/fstab && mv /tmp/fstab /mnt/etc/fstab && cat /mnt/etc/fstab
  110. /dev/disk0s3 / hfs rw 0 1
  111. /dev/disk0s2 /private/var hfs rw 0 2
  112. # cd /mnt
  113. # mv sbin mysbin
  114. # ln -s /mysbin sbin
  115. # cd /jb
  116. # umount /mnt
  117. # find /private/var -name Installer -exec rm -rf {} \;
  118. find: /private/var/root/Library/Caches/Installer: No such file or directory
  119. find: /private/var/root/Library/Installer: No such file or directory
  120. # nvram boot-partition=2
  121. # nvram boot-args="rd=disk0s3 -v"
  122. # nvram -p
  123. backlight-level 32
  124. bootdelay 0
  125. auto-boot true
  126. boot-args rd=disk0s3 -v
  127. debug-uarts 3
  128. boot-partition 2
  129. # sync
  130. # reboot
  131. Connection to 192.168.7.16 closed by remote host.
  132. Connection to 192.168.7.16 closed.
  133. macbook% ssh itouch
  134. # mount
  135. /dev/disk0s3 on / (hfs, local, noatime)
  136. devfs on /dev (devfs, local)
  137. /dev/disk0s2 on /private/var (hfs, local, noatime)
  138. #
  139. ## At this point, I did an Update to 1.1.4 from iTunes
  140. ## Then I continued...
  141. macbook% pwd
  142. ~/Desktop/iPhone/poddmg/1.1.4
  143. macbook% ls -l kernelcache.release.s5l8900xrb
  144. -rw-r--r-- 1 eric staff 3356266 Feb 7 01:01 kernelcache.release.s5l8900xrb
  145. macbook% iphuc
  146. iphuc 0.6.1
  147. >> By The iPhoneDev Team: nightwatch geohot ixtli warren nall mjc operator
  148. recovery callback: Connected in Recovery Mode
  149. recovery callback: Entering shell in Recovery Mode.
  150. (iPHUC Recovery) #: filecopytophone ./kernelcache.release.s5l8900xrb
  151. filecopytophone: 0
  152. (iPHUC Recovery) #: cmd setenv\ boot-args\ "rd=disk0s3\ -v"
  153. (iPHUC Recovery) #: cmd setenv auto-boot true
  154. (iPHUC Recovery) #: cmd saveenv
  155. (iPHUC Recovery) #: cmd bootx
  156. macbook% ssh itouch
  157. # mount
  158. /dev/disk0s3 on / (hfs, local, noatime)
  159. devfs on /dev (devfs, local)
  160. /dev/disk0s2 on /private/var (hfs, local, noatime)
  161. # cd /jb
  162. # PATH=.:$PATH
  163. # fsck_hfs /dev/disk0s1
  164. ** /dev/rdisk0s1
  165. ** Checking HFS Plus volume.
  166. ** Detected a case-sensitive catalog.
  167. ** Checking Extents Overflow file.
  168. ** Checking Catalog file.
  169. ** Checking Catalog hierarchy.
  170. ** Checking Extended Attributes file.
  171. ** Checking volume bitmap.
  172. ** Checking volume information.
  173. ** The volume LittleBear4A102.N45Bundle appears to be OK.
  174. # mkdir /mnt
  175. # mount -t hfs /dev/disk0s1 /mnt
  176. # sed -e "s/501/0/g" < /mnt/etc/passwd > /tmp/passwd && mv /tmp/passwd /mnt/etc
  177. # sed -e "s/501/0/g" < /mnt/etc/master.passwd > /tmp/master.passwd && mv /tmp/master.passwd /mnt/etc
  178. # cp -pr /Applications/Term-vt100.app /mnt/Applications/
  179. # cp -pr /Applications/Installer.app /mnt/Applications/
  180. # vim /mnt/System/Library/Lockdown/Services.plist
  181. # sed -e "s/hfs ro/hfs rw/" < /mnt/etc/fstab > /tmp/fstab && mv /tmp/fstab /mnt/etc/
  182. # sed -e "s/noexec,//" < /mnt/etc/fstab > /tmp/fstab && mv /tmp/fstab /mnt/etc/
  183. # cat /mnt/etc/fstab
  184. /dev/disk0s1 / hfs rw 0 1
  185. /dev/disk0s2 /private/var hfs rw,nodev 0 2
  186. # umount /mnt
  187. # nvram boot-partition=0
  188. # nvram boot-args="-v"
  189. # nvram -p
  190. auto-boot true
  191. bootdelay 0
  192. debug-uarts 3
  193. backlight-level 32
  194. filesize 3356266
  195. boot-args -v
  196. boot-partition 0
  197. # sync
  198. # reboot
  199.  
  200.  
Advertisement
Add Comment
Please, Sign In to add comment