guestmount
2015-07-21 12:05
375 查看
guestmount
For some types of changes, you may find it easier to mount the image's file system directly
in the guest. The guestmount program, also from the libguestfs project, allows you to do
so.
For example, to mount the root partition from our centos63_desktop.qcow2 image to
/mnt, we can do:
# guestmount -a centos63_desktop.qcow2 -m /dev/vg_centosbase/lv_root --rw /mnt
If we didn't know in advance what the mount point is in the guest, we could use the -
i(inspect) flag to tell guestmount to automatically determine what mount point to use:
# guestmount -a centos63_desktop.qcow2 -i --rw /mnt
Once mounted, we could do things like list the installed packages using rpm:
# rpm -qa --dbpath /mnt/var/lib/rpm
Once done, we unmount:
# umount /mnt
For some types of changes, you may find it easier to mount the image's file system directly
in the guest. The guestmount program, also from the libguestfs project, allows you to do
so.
For example, to mount the root partition from our centos63_desktop.qcow2 image to
/mnt, we can do:
# guestmount -a centos63_desktop.qcow2 -m /dev/vg_centosbase/lv_root --rw /mnt
If we didn't know in advance what the mount point is in the guest, we could use the -
i(inspect) flag to tell guestmount to automatically determine what mount point to use:
# guestmount -a centos63_desktop.qcow2 -i --rw /mnt
Once mounted, we could do things like list the installed packages using rpm:
# rpm -qa --dbpath /mnt/var/lib/rpm
Once done, we unmount:
# umount /mnt
相关文章推荐
- CodeForces 484B Maximum Value
- IOS学习笔记UIButton
- guestfish 修改 image file
- 设置UIView几个角为圆角
- YUI Compressor使用配置方法 JS/CSS压缩工具
- iOS7中计算UILabel中字符串的高度
- iOS-Core-Animation-Advanced-Techniques(六)
- iOS-Core-Animation-Advanced-Techniques(四)
- iOS-Core-Animation-Advanced-Techniques(一)
- 【xib】加载的一些问题,以UICollectionView 为例
- ContentResolver query 参数详解
- 【EasyUI】——EasyUI的布局
- iOS 中如何除去UIAlertView 规避delegate对象销毁后接收消息的crash
- @RequestParam @RequestBody @PathVariable 等参数绑定注解详解
- Android UI 之一步步教你自定义控件
- AFJSONRequestSerializer
- ORA-02287: sequence number not allowed here解决
- ios NSURLSession completeHandler默认调用quque
- Repeated DNA Sequences
- iOS开发UI篇—Quartz2D使用(绘图路径