Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- james@debian:~/python/image$ su
- Password:
- root@debian:/home/james/python/image# python3.6 automate10.py
- Enter IMG file name: mmcblk0.img
- Do you want to work in subdirectory of /mnt/ [y/n]: y
- Subdirectory should end with /
- Example of subdirectory input: sub_dir/
- Please enter name of the subdirectory /mnt/1/
- Making Directory /mnt/1/
- Creating directory /mnt/1/traceability Done!
- Creating directory /mnt/1/tunning Done!
- Creating directory /mnt/1/modemst1 Done!
- Creating directory /mnt/1/modemst2 Done!
- Creating directory /mnt/1/fsc Done!
- Creating directory /mnt/1/ssd Done!
- Creating directory /mnt/1/sbl1 Done!
- Creating directory /mnt/1/sbl1bak Done!
- Creating directory /mnt/1/aboot Done!
- Creating directory /mnt/1/abootbak Done!
- Creating directory /mnt/1/rpm Done!
- Creating directory /mnt/1/rpmbak Done!
- Creating directory /mnt/1/tz Done!
- Creating directory /mnt/1/tzbak Done!
- Creating directory /mnt/1/pad Done!
- Creating directory /mnt/1/misc Done!
- Creating directory /mnt/1/splash Done!
- Creating directory /mnt/1/keystore Done!
- Creating directory /mnt/1/config Done!
- Creating directory /mnt/1/simlock Done!
- Creating directory /mnt/1/modem Done!
- Creating directory /mnt/1/devinfo Done!
- Creating directory /mnt/1/DDR Done!
- Creating directory /mnt/1/fsg Done!
- Creating directory /mnt/1/sec Done!
- Creating directory /mnt/1/boot Done!
- Creating directory /mnt/1/recovery Done!
- Creating directory /mnt/1/persist Done!
- Creating directory /mnt/1/system Done!
- Creating directory /mnt/1/cache Done!
- Creating directory /mnt/1/oem Done!
- Creating directory /mnt/1/userdata Done!
- /dev/loop2
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p1,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop21 to /mnt/1/traceability ... Could not mount /dev/loop2p1 with /mnt/1/traceability
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p2,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop22 to /mnt/1/tunning ... Could not mount /dev/loop2p2 with /mnt/1/tunning
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p3,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop23 to /mnt/1/modemst1 ... Could not mount /dev/loop2p3 with /mnt/1/modemst1
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p4,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop24 to /mnt/1/modemst2 ... Could not mount /dev/loop2p4 with /mnt/1/modemst2
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p5,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop25 to /mnt/1/fsc ... Could not mount /dev/loop2p5 with /mnt/1/fsc
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p6,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop26 to /mnt/1/ssd ... Could not mount /dev/loop2p6 with /mnt/1/ssd
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p7,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop27 to /mnt/1/sbl1 ... Could not mount /dev/loop2p7 with /mnt/1/sbl1
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p8,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop28 to /mnt/1/sbl1bak ... Could not mount /dev/loop2p8 with /mnt/1/sbl1bak
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p9,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop29 to /mnt/1/aboot ... Could not mount /dev/loop2p9 with /mnt/1/aboot
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p10,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop210 to /mnt/1/abootbak ... Could not mount /dev/loop2p10 with /mnt/1/abootbak
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p11,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop211 to /mnt/1/rpm ... Could not mount /dev/loop2p11 with /mnt/1/rpm
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p12,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop212 to /mnt/1/rpmbak ... Could not mount /dev/loop2p12 with /mnt/1/rpmbak
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p13,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop213 to /mnt/1/tz ... Could not mount /dev/loop2p13 with /mnt/1/tz
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p14,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop214 to /mnt/1/tzbak ... Could not mount /dev/loop2p14 with /mnt/1/tzbak
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p15,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop215 to /mnt/1/pad ... Could not mount /dev/loop2p15 with /mnt/1/pad
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p16,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop216 to /mnt/1/misc ... Could not mount /dev/loop2p16 with /mnt/1/misc
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p17,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop217 to /mnt/1/splash ... Could not mount /dev/loop2p17 with /mnt/1/splash
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p18,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop218 to /mnt/1/keystore ... Could not mount /dev/loop2p18 with /mnt/1/keystore
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p19,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop219 to /mnt/1/config ... Could not mount /dev/loop2p19 with /mnt/1/config
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p20,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop220 to /mnt/1/simlock ... Could not mount /dev/loop2p20 with /mnt/1/simlock
- Mounting /dev/loop221 to /mnt/1/modem ... Done!
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p22,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop222 to /mnt/1/devinfo ... Could not mount /dev/loop2p22 with /mnt/1/devinfo
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p23,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop223 to /mnt/1/DDR ... Could not mount /dev/loop2p23 with /mnt/1/DDR
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p24,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop224 to /mnt/1/fsg ... Could not mount /dev/loop2p24 with /mnt/1/fsg
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p25,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop225 to /mnt/1/sec ... Could not mount /dev/loop2p25 with /mnt/1/sec
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p26,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop226 to /mnt/1/boot ... Could not mount /dev/loop2p26 with /mnt/1/boot
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p27,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop227 to /mnt/1/recovery ... Could not mount /dev/loop2p27 with /mnt/1/recovery
- Mounting /dev/loop228 to /mnt/1/persist ... Done!
- Mounting /dev/loop229 to /mnt/1/system ... Done!
- Mounting /dev/loop230 to /mnt/1/cache ... Done!
- mount: wrong fs type, bad option, bad superblock on /dev/loop2p31,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so.
- Mounting /dev/loop231 to /mnt/1/oem ... Could not mount /dev/loop2p31 with /mnt/1/oem
- Mounting /dev/loop232 to /mnt/1/userdata ... Done!
- Partitions mounted
- Please enter directory to copy files to (full path): /home/james/python/image/export/
- Copying files
- recovery Copied to /home/james/python/image/export/
- Traceback (most recent call last):
- File "automate10.py", line 72, in <module>
- shutil.copytree(full_file_name, destination)
- File "/usr/local/lib/python3.6/shutil.py", line 315, in copytree
- os.makedirs(dst)
- File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
- mkdir(name, mode)
- FileExistsError: [Errno 17] File exists: '/home/james/python/image/export/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement