command_line
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| command_line [2020/08/10 02:35] – external edit 127.0.0.1 | command_line [2021/08/24 21:11] (current) – k2patel | ||
|---|---|---|---|
| Line 152: | Line 152: | ||
| ==== Extract folder from KVM Guest Image ==== | ==== Extract folder from KVM Guest Image ==== | ||
| - | This is appear | + | This appears |
| [[http:// | [[http:// | ||
| - | For RHEL you require following packages installed. | + | For RHEL you require |
| * libguestfs-tools | * libguestfs-tools | ||
| * libguestfs-xfs | * libguestfs-xfs | ||
| Line 163: | Line 163: | ||
| virt-copy-out -a machine2.qcow2 / | virt-copy-out -a machine2.qcow2 / | ||
| </ | </ | ||
| + | |||
| + | ==== Image File explorer ==== | ||
| + | This is a simple way to extract or access files.\\ | ||
| + | Scan and assign the dev node. | ||
| + | <code bash> | ||
| + | losetup --partscan --find --show sdcard.img | ||
| + | </ | ||
| + | |||
| + | List all the block devices, including newly scanned. | ||
| + | <code bash> | ||
| + | lsblk --fs | ||
| + | </ | ||
| + | |||
| + | Mounting the file system | ||
| + | <code bash> | ||
| + | mount / | ||
| + | </ | ||
| + | |||
| + | Once unmounted remove the lo drive. | ||
| + | <code bash> | ||
| + | losetup --detach-all | ||
| + | </ | ||
| + | |||
| + | |||
command_line.1597026937.txt.gz · Last modified: 2020/08/10 02:35 by 127.0.0.1
