Advertisement
ykhan

rk-partition mount with offset

Jun 18th, 2019
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. root@nix-s00a-02:~# parted /dev/mmcblk0 unit s print
  2. Warning: Not all of the space available to /dev/mmcblk0 appears to be used, you can fix the GPT to use all of the space (an extra 28567552 blocks) or continue with the current setting?
  3. Fix/Ignore? Ignore
  4. Model: MMC AJTD4R (sd/mmc)
  5. Disk /dev/mmcblk0: 30535680s
  6. Sector size (logical/physical): 512B/512B
  7. Partition Table: gpt
  8. Disk Flags:
  9.  
  10. Number Start End Size File system Name Flags
  11. 1 64s 8063s 8000s loader1
  12. 2 16384s 24575s 8192s loader2
  13. 3 24576s 32767s 8192s trust
  14. 4 32768s 262143s 229376s fat16 boot boot, esp
  15. 5 262144s 1968094s 1705951s ext4 rootfs
  16.  
  17.  
  18. # offset = 262144 * 512 = 134217728
  19. root@nix-s00a-02:~# mount -o offset=134217728 /dev/mmcblk0
  20. mmcblk0 mmcblk0p1 mmcblk0p2 mmcblk0p3 mmcblk0p4 mmcblk0p5 mmcblk0rpmb
  21. root@nix-s00a-02:~# mount -o offset=134217728 /dev/mmcblk0 /mnt/
  22. root@nix-s00a-02:~# mount | grep mmcblk
  23. /dev/mmcblk1 on / type ext4 (rw,relatime,data=ordered)
  24. /dev/mmcblk0 on /mnt type ext4 (rw,relatime,data=ordered)
  25. root@nix-s00a-02:~# ls /mnt/
  26. bin boot dev etc home lib lost+found media mnt opt proc run sbin sys tmp usr var
  27. root@nix-s00a-02:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement