最新消息:

mount disk Image

Linux admin 3150浏览 0评论

      如果你今天面对的是disk image而不是一般的partition image,当使用mount -o loop是将无法mount成功。这很容易理解,因为你必须知道disk image中partition的位置之后才能mount起來,怎么做呢?

需求: mount test.img 并更改第一个partition中的某个文件

我们先看看如果直接用mount -o loop会如何:
[code]lawrence@lawrence-x24:~/Desktop$ sudo mount -o loop test.img /mnt/test/
mount: you must specify the filesystem type
lawrence@lawrence-x24:~/Desktop$ sudo mount -o loop -t ext3 test.img /mnt/test/
mount: wrong fs type, bad opti[
…………

Tags – , ,

转载请注明:爱开源 » mount disk Image

您必须 登录 才能发表评论!