Advertisement
goroh_kun

mount loopback device to /system on IS03 Deckard protect

Apr 3rd, 2011
1,691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.21 KB | None | 0 0
  1. # dd if=/dev/zero of=/data/system.bin bs=1048576 count=30
  2. dd if=/dev/zero of=/data/system.bin bs=1048576 count=30
  3.  
  4.  
  5. 30+0 records in
  6. 30+0 records out
  7. #
  8. # /data/local/mke2fs_recvy /data/system.bin
  9.  
  10. mke2fs 1.40.8 (13-Mar-2008)
  11. system.bin is not a block special device.
  12. Proceed anyway? (y,n) y
  13. y
  14. Filesystem label=
  15. OS type: Linux
  16. Block size=1024 (log=0)
  17. Fragment size=1024 (log=0)
  18. 7680 inodes, 30720 blocks
  19. 1536 blocks (5.00%) reserved for the super user
  20. First data block=1
  21. Maximum filesystem blocks=31457280
  22. 4 block groups
  23. 8192 blocks per group, 8192 fragments per group
  24. 1920 inodes per group
  25. Superblock backups stored on blocks:
  26.         8193, 24577
  27.  
  28. Writing inode tables: done
  29. Writing superblocks and filesystem accounting information: done
  30.  
  31. This filesystem will be automatically checked every 20 mounts or
  32. 180 days, whichever comes first.  Use tune2fs -c or -i to override.
  33. #
  34. #
  35. # losetup /dev/block/loop0 /data/system.bin
  36. losetup /dev/block/loop0 /data/system.bin
  37. # cd /dev/block
  38. # ls -l
  39. ls -l
  40. ...
  41. brw-------    1 0        0          7,   0 Apr  3 09:38 loop0
  42. ...
  43. # mv mtdblock4 mtdblock4-
  44. # mknod mtdblock4 b 7 0
  45. # mount /dev/block/mtdblock4 /system
  46. # ls /system
  47. ls /system
  48. lost+found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement