问题描述
我想在centos中创建一个包含三个文件的dmg文件.我正在使用hfsutils命令,但显示诸如无已知卷;使用'hmount'引入新卷"之类的错误.我在Google上进行了大量搜索,以获取创建dmg的清晰步骤.知道这些步骤的人请在这里发布
I want to create a dmg file of three files in centos . i am using hfsutils commands, but it is showing errors like "No known volumes; use `hmount' to introduce new volumes". I googled a lot to get clear steps for creating dmg. some one who knows these steps please post here
推荐答案
如果要创建名为file1,file2,file3的三个文件的dmg,请将这三个文件保存在一个目录中
Say if you want to create dmg of three files named file1,file2,file3.keep these three in one directory
应该在保存三个文件的目录中运行此命令
Should run this command in the directory where we kept our three files
dd if =/dev/zero of ="example.dmg" bs = 1M count = 10hformat -l"example" ./"example.dmg"
dd if=/dev/zero of="example.dmg" bs=1M count=10hformat -l "example" ./"example.dmg"
一个dmg文件将在我们的目录中形成.接下来从那里运行到/usr/sbin,然后1)挂载/directorypath/example.dmg2)hcopy/directorypath/file1示例:3)hcopy/directorypath/file2示例:4)hcopy/directorypath/file3示例: 5)humount,然后将此文件复制到您的mac系统中并打开dmg文件,您将在其中找到所有三个文件.
A dmg file will be formed in our directory. next go to /usr/sbin from there run and then1)hmount /directorypath/example.dmg2)hcopy /directorypath/file1 example:3)hcopy /directorypath/file2 example:4)hcopy /directorypath/file3 example: 5)humount and then copy this file in to your mac system and open the dmg file,you will find all your three files in it.
这篇关于如何通过命令行在Centos中创建dmg文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!