Root Filesystem

From krtkl wiki
Revision as of 02:59, 25 January 2018 by Bush (talk | contribs) (Created page with "== Bootstraping Root Filesystem == <pre> # losetup -f --show snickerdoodle_black_xenial_kinetic.img /dev/loop0 # kpartx -va /dev/loop0 add map loop0p1 (253:0): 0 260096 linear...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Bootstraping Root Filesystem

# losetup -f --show snickerdoodle_black_xenial_kinetic.img
/dev/loop0
# kpartx -va /dev/loop0
add map loop0p1 (253:0): 0 260096 linear 7:0 2048
add map loop0p2 (253:1): 0 14073856 linear 7:0 262144
# mount -v /dev/mapper/loop0p2 rootp/
mount: /dev/mapper/loop0p2 mounted on /mnt/hgfs/Software/snickerdoodle-boot-images/rootp.
# LANG=C chroot rootp/
root@host:/# mount -t proc proc/
root@host:/# mount -o bind /dev dev
root@host:/# mount -o bind /dev/pts dev/pts

Test and install packages

# kpartx -dv /dev/loop0
# losetup -d /dev/loop0
# umount rootp/