Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. /dev/mmcblk0p1 * boot1 Win95 FAT32 (LBA) vfat
  2. /dev/mmcblk0p2 * boot2 Win95 FAT32 (LBA) vfat
  3. /dev/mmcblk0p3 rootfs Linux ext4
  4. /dev/mmcblk0p4 - Extended -
  5. /dev/mmcblk0p5 app Linux ext4
  6. /dev/mmcblk0p6 update1 Linux ext4
  7. /dev/mmcblk0p7 update2 Linux ext4
  8. /dev/mmcblk0p8 persistant Linux ext4
  9.  
  10. TOP
  11. | persistant ==> rw+wh
  12. | update ==> ro+wh
  13. | app ==> ro+wh
  14. V rootfs ==> ro+wh
  15. BOTTOM
  16.  
  17. mount /dev/mmcblk0p7 /mnt
  18. mount -t aufs -o remount,add:0:/mnt=rw+wh none /
  19.  
  20. [DO MY STUFF HERE]
  21.  
  22. mount -t aufs -o remount,del:/mnt none /
  23. umount /mnt
  24.  
  25. # mkdir /testdir
  26. # touch /testfile
  27. # touch /testdir/testfile
  28. # mkdir /etc/testdir
  29. # touch /etc/testfile
  30.  
  31. [REBOOT on ramdisk without mounting anything]
  32.  
  33. # mount /dev/mmcblkp7 /mnt
  34. # ls /mnt
  35. lost+found testdir testfile
  36. # ls /mnt/testdir
  37. testfile
  38. # umount /mnt
  39. #
  40. # mount /dev/mmcblkp8 /mnt
  41. # ls /mnt/etc
  42. testdir testfile
  43. # umount /mnt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement