摘要: guestmount root# guestmount -a ubuntutest1.img -m /dev/sda1 ubuntutestp1 root# cd ubuntutestp1/root:/home/cliu8/images/ubuntutestp1# lsa b c d hello lost+found worldroot:/home/cliu8/images/ubuntutest... 阅读全文
posted @ 2014-07-09 14:24 popsuper1982 阅读(2066) 评论(0) 推荐(0) 编辑
摘要: 添加一个drive:guestfs_add_drive_optsadd-drive filename [readonly:true|false] [format:..] [iface:..] [name:..] [label:..] [protocol:..] [server:..]This function adds a disk image called filename to the han... 阅读全文
posted @ 2014-07-09 13:56 popsuper1982 阅读(1818) 评论(0) 推荐(0) 编辑
摘要: 要编辑一个image,则运行下面的命令 guestfish -a ubuntutest.img > 会弹出一个命令行工具 运行run > run 我们来ps一下进程 root# ps aux | grep guestroot 11697 0.0 0.0 96216 4604 pts/0 S+ 02:14 0:00 guestfish -a ubuntutest.imgroot 11832 7.0 ... 阅读全文
posted @ 2014-07-09 11:43 popsuper1982 阅读(3219) 评论(0) 推荐(0) 编辑