博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
guestmount
阅读量:7257 次
发布时间:2019-06-29

本文共 841 字,大约阅读时间需要 2 分钟。

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

posted on
2015-07-21 12:05 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/ruiy/p/4664060.html

你可能感兴趣的文章
Android Camera API2中采用CameraMetadata用于从APP到HAL的参数交互
查看>>
算法笔记_107:蓝桥杯练习 算法提高 学霸的迷宫(Java)
查看>>
正则表达式学习2 - 零宽断言
查看>>
读取光驱序列号、型号、分位
查看>>
Andriod实现刮刮卡的效果
查看>>
【iCore1S 双核心板_FPGA】例程三:计数器实验——计数器的使用
查看>>
Android中的Telephony学习笔记(2)
查看>>
每日一小练——数值自乘非递归解
查看>>
项目中的一个分页功能pagination
查看>>
cocoahttpserver使用具体解释(二)
查看>>
在Linux平台上搭建EasyDarwin,编译代码并简单部署
查看>>
008-shiro与spring web项目整合【二】认证、授权、session管理
查看>>
VirtualApp技术黑产利用研究报告
查看>>
Oracle 10.2.0.1 精简客户端配置
查看>>
Android 仿 新闻阅读器 菜单弹出效果(附源码DEMO)
查看>>
c/c++常见关键字解释
查看>>
SpringBoot 推荐博客
查看>>
window 上安装 Cygwin 和 SSH 服务
查看>>
Webhook 实践 —— 自动部署
查看>>
svn设置提交忽略某些文件或文件夹
查看>>