Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.50 KB | None | 0 0
  1. james@debian:~/python/image$ su
  2. Password:
  3. root@debian:/home/james/python/image# python3.6 automate10.py
  4. Enter IMG file name: mmcblk0.img
  5. Do you want to work in subdirectory of /mnt/ [y/n]: y
  6. Subdirectory should end with /
  7. Example of subdirectory input: sub_dir/
  8. Please enter name of the subdirectory /mnt/1/
  9. Making Directory /mnt/1/
  10. Creating directory /mnt/1/traceability Done!
  11. Creating directory /mnt/1/tunning Done!
  12. Creating directory /mnt/1/modemst1 Done!
  13. Creating directory /mnt/1/modemst2 Done!
  14. Creating directory /mnt/1/fsc Done!
  15. Creating directory /mnt/1/ssd Done!
  16. Creating directory /mnt/1/sbl1 Done!
  17. Creating directory /mnt/1/sbl1bak Done!
  18. Creating directory /mnt/1/aboot Done!
  19. Creating directory /mnt/1/abootbak Done!
  20. Creating directory /mnt/1/rpm Done!
  21. Creating directory /mnt/1/rpmbak Done!
  22. Creating directory /mnt/1/tz Done!
  23. Creating directory /mnt/1/tzbak Done!
  24. Creating directory /mnt/1/pad Done!
  25. Creating directory /mnt/1/misc Done!
  26. Creating directory /mnt/1/splash Done!
  27. Creating directory /mnt/1/keystore Done!
  28. Creating directory /mnt/1/config Done!
  29. Creating directory /mnt/1/simlock Done!
  30. Creating directory /mnt/1/modem Done!
  31. Creating directory /mnt/1/devinfo Done!
  32. Creating directory /mnt/1/DDR Done!
  33. Creating directory /mnt/1/fsg Done!
  34. Creating directory /mnt/1/sec Done!
  35. Creating directory /mnt/1/boot Done!
  36. Creating directory /mnt/1/recovery Done!
  37. Creating directory /mnt/1/persist Done!
  38. Creating directory /mnt/1/system Done!
  39. Creating directory /mnt/1/cache Done!
  40. Creating directory /mnt/1/oem Done!
  41. Creating directory /mnt/1/userdata Done!
  42. /dev/loop2
  43. mount: wrong fs type, bad option, bad superblock on /dev/loop2p1,
  44. missing codepage or helper program, or other error
  45.  
  46. In some cases useful info is found in syslog - try
  47. dmesg | tail or so.
  48. Mounting /dev/loop21 to /mnt/1/traceability ... Could not mount /dev/loop2p1 with /mnt/1/traceability
  49. mount: wrong fs type, bad option, bad superblock on /dev/loop2p2,
  50. missing codepage or helper program, or other error
  51.  
  52. In some cases useful info is found in syslog - try
  53. dmesg | tail or so.
  54. Mounting /dev/loop22 to /mnt/1/tunning ... Could not mount /dev/loop2p2 with /mnt/1/tunning
  55. mount: wrong fs type, bad option, bad superblock on /dev/loop2p3,
  56. missing codepage or helper program, or other error
  57.  
  58. In some cases useful info is found in syslog - try
  59. dmesg | tail or so.
  60. Mounting /dev/loop23 to /mnt/1/modemst1 ... Could not mount /dev/loop2p3 with /mnt/1/modemst1
  61. mount: wrong fs type, bad option, bad superblock on /dev/loop2p4,
  62. missing codepage or helper program, or other error
  63.  
  64. In some cases useful info is found in syslog - try
  65. dmesg | tail or so.
  66. Mounting /dev/loop24 to /mnt/1/modemst2 ... Could not mount /dev/loop2p4 with /mnt/1/modemst2
  67. mount: wrong fs type, bad option, bad superblock on /dev/loop2p5,
  68. missing codepage or helper program, or other error
  69.  
  70. In some cases useful info is found in syslog - try
  71. dmesg | tail or so.
  72. Mounting /dev/loop25 to /mnt/1/fsc ... Could not mount /dev/loop2p5 with /mnt/1/fsc
  73. mount: wrong fs type, bad option, bad superblock on /dev/loop2p6,
  74. missing codepage or helper program, or other error
  75.  
  76. In some cases useful info is found in syslog - try
  77. dmesg | tail or so.
  78. Mounting /dev/loop26 to /mnt/1/ssd ... Could not mount /dev/loop2p6 with /mnt/1/ssd
  79. mount: wrong fs type, bad option, bad superblock on /dev/loop2p7,
  80. missing codepage or helper program, or other error
  81.  
  82. In some cases useful info is found in syslog - try
  83. dmesg | tail or so.
  84. Mounting /dev/loop27 to /mnt/1/sbl1 ... Could not mount /dev/loop2p7 with /mnt/1/sbl1
  85. mount: wrong fs type, bad option, bad superblock on /dev/loop2p8,
  86. missing codepage or helper program, or other error
  87.  
  88. In some cases useful info is found in syslog - try
  89. dmesg | tail or so.
  90. Mounting /dev/loop28 to /mnt/1/sbl1bak ... Could not mount /dev/loop2p8 with /mnt/1/sbl1bak
  91. mount: wrong fs type, bad option, bad superblock on /dev/loop2p9,
  92. missing codepage or helper program, or other error
  93.  
  94. In some cases useful info is found in syslog - try
  95. dmesg | tail or so.
  96. Mounting /dev/loop29 to /mnt/1/aboot ... Could not mount /dev/loop2p9 with /mnt/1/aboot
  97. mount: wrong fs type, bad option, bad superblock on /dev/loop2p10,
  98. missing codepage or helper program, or other error
  99.  
  100. In some cases useful info is found in syslog - try
  101. dmesg | tail or so.
  102. Mounting /dev/loop210 to /mnt/1/abootbak ... Could not mount /dev/loop2p10 with /mnt/1/abootbak
  103. mount: wrong fs type, bad option, bad superblock on /dev/loop2p11,
  104. missing codepage or helper program, or other error
  105.  
  106. In some cases useful info is found in syslog - try
  107. dmesg | tail or so.
  108. Mounting /dev/loop211 to /mnt/1/rpm ... Could not mount /dev/loop2p11 with /mnt/1/rpm
  109. mount: wrong fs type, bad option, bad superblock on /dev/loop2p12,
  110. missing codepage or helper program, or other error
  111.  
  112. In some cases useful info is found in syslog - try
  113. dmesg | tail or so.
  114. Mounting /dev/loop212 to /mnt/1/rpmbak ... Could not mount /dev/loop2p12 with /mnt/1/rpmbak
  115. mount: wrong fs type, bad option, bad superblock on /dev/loop2p13,
  116. missing codepage or helper program, or other error
  117.  
  118. In some cases useful info is found in syslog - try
  119. dmesg | tail or so.
  120. Mounting /dev/loop213 to /mnt/1/tz ... Could not mount /dev/loop2p13 with /mnt/1/tz
  121. mount: wrong fs type, bad option, bad superblock on /dev/loop2p14,
  122. missing codepage or helper program, or other error
  123.  
  124. In some cases useful info is found in syslog - try
  125. dmesg | tail or so.
  126. Mounting /dev/loop214 to /mnt/1/tzbak ... Could not mount /dev/loop2p14 with /mnt/1/tzbak
  127. mount: wrong fs type, bad option, bad superblock on /dev/loop2p15,
  128. missing codepage or helper program, or other error
  129.  
  130. In some cases useful info is found in syslog - try
  131. dmesg | tail or so.
  132. Mounting /dev/loop215 to /mnt/1/pad ... Could not mount /dev/loop2p15 with /mnt/1/pad
  133. mount: wrong fs type, bad option, bad superblock on /dev/loop2p16,
  134. missing codepage or helper program, or other error
  135.  
  136. In some cases useful info is found in syslog - try
  137. dmesg | tail or so.
  138. Mounting /dev/loop216 to /mnt/1/misc ... Could not mount /dev/loop2p16 with /mnt/1/misc
  139. mount: wrong fs type, bad option, bad superblock on /dev/loop2p17,
  140. missing codepage or helper program, or other error
  141.  
  142. In some cases useful info is found in syslog - try
  143. dmesg | tail or so.
  144. Mounting /dev/loop217 to /mnt/1/splash ... Could not mount /dev/loop2p17 with /mnt/1/splash
  145. mount: wrong fs type, bad option, bad superblock on /dev/loop2p18,
  146. missing codepage or helper program, or other error
  147.  
  148. In some cases useful info is found in syslog - try
  149. dmesg | tail or so.
  150. Mounting /dev/loop218 to /mnt/1/keystore ... Could not mount /dev/loop2p18 with /mnt/1/keystore
  151. mount: wrong fs type, bad option, bad superblock on /dev/loop2p19,
  152. missing codepage or helper program, or other error
  153.  
  154. In some cases useful info is found in syslog - try
  155. dmesg | tail or so.
  156. Mounting /dev/loop219 to /mnt/1/config ... Could not mount /dev/loop2p19 with /mnt/1/config
  157. mount: wrong fs type, bad option, bad superblock on /dev/loop2p20,
  158. missing codepage or helper program, or other error
  159.  
  160. In some cases useful info is found in syslog - try
  161. dmesg | tail or so.
  162. Mounting /dev/loop220 to /mnt/1/simlock ... Could not mount /dev/loop2p20 with /mnt/1/simlock
  163. Mounting /dev/loop221 to /mnt/1/modem ... Done!
  164. mount: wrong fs type, bad option, bad superblock on /dev/loop2p22,
  165. missing codepage or helper program, or other error
  166.  
  167. In some cases useful info is found in syslog - try
  168. dmesg | tail or so.
  169. Mounting /dev/loop222 to /mnt/1/devinfo ... Could not mount /dev/loop2p22 with /mnt/1/devinfo
  170. mount: wrong fs type, bad option, bad superblock on /dev/loop2p23,
  171. missing codepage or helper program, or other error
  172.  
  173. In some cases useful info is found in syslog - try
  174. dmesg | tail or so.
  175. Mounting /dev/loop223 to /mnt/1/DDR ... Could not mount /dev/loop2p23 with /mnt/1/DDR
  176. mount: wrong fs type, bad option, bad superblock on /dev/loop2p24,
  177. missing codepage or helper program, or other error
  178.  
  179. In some cases useful info is found in syslog - try
  180. dmesg | tail or so.
  181. Mounting /dev/loop224 to /mnt/1/fsg ... Could not mount /dev/loop2p24 with /mnt/1/fsg
  182. mount: wrong fs type, bad option, bad superblock on /dev/loop2p25,
  183. missing codepage or helper program, or other error
  184.  
  185. In some cases useful info is found in syslog - try
  186. dmesg | tail or so.
  187. Mounting /dev/loop225 to /mnt/1/sec ... Could not mount /dev/loop2p25 with /mnt/1/sec
  188. mount: wrong fs type, bad option, bad superblock on /dev/loop2p26,
  189. missing codepage or helper program, or other error
  190.  
  191. In some cases useful info is found in syslog - try
  192. dmesg | tail or so.
  193. Mounting /dev/loop226 to /mnt/1/boot ... Could not mount /dev/loop2p26 with /mnt/1/boot
  194. mount: wrong fs type, bad option, bad superblock on /dev/loop2p27,
  195. missing codepage or helper program, or other error
  196.  
  197. In some cases useful info is found in syslog - try
  198. dmesg | tail or so.
  199. Mounting /dev/loop227 to /mnt/1/recovery ... Could not mount /dev/loop2p27 with /mnt/1/recovery
  200. Mounting /dev/loop228 to /mnt/1/persist ... Done!
  201. Mounting /dev/loop229 to /mnt/1/system ... Done!
  202. Mounting /dev/loop230 to /mnt/1/cache ... Done!
  203. mount: wrong fs type, bad option, bad superblock on /dev/loop2p31,
  204. missing codepage or helper program, or other error
  205.  
  206. In some cases useful info is found in syslog - try
  207. dmesg | tail or so.
  208. Mounting /dev/loop231 to /mnt/1/oem ... Could not mount /dev/loop2p31 with /mnt/1/oem
  209. Mounting /dev/loop232 to /mnt/1/userdata ... Done!
  210. Partitions mounted
  211. Please enter directory to copy files to (full path): /home/james/python/image/export/
  212. Copying files
  213. recovery Copied to /home/james/python/image/export/
  214. Traceback (most recent call last):
  215. File "automate10.py", line 72, in <module>
  216. shutil.copytree(full_file_name, destination)
  217. File "/usr/local/lib/python3.6/shutil.py", line 315, in copytree
  218. os.makedirs(dst)
  219. File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
  220. mkdir(name, mode)
  221. FileExistsError: [Errno 17] File exists: '/home/james/python/image/export/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement