我想要创建一个ISO映像,它可以用ext3分区类型挂载。我怎么能这么做?
我正在使用以下命令:
[root@manage upload]# dd if=testParti.txt of=./diskImage.iso
41+1 records in
41+1 records out然后,当我尝试使用以下命令挂载它时:
/bin/mount -o loop -t ext3 diskImage.iso /tmp/upgrade我知道这个错误:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)发布于 2012-02-09 10:41:35
dd只复制数据,它不生成文件系统(为此使用mkfs )。
使用dd构建一个所需大小的映像(播放bs=和count=,并使用来自/dev/zero的输入),然后在创建的文件上运行mkfs.ext3,然后像您正在做的那样挂载它,然后将所需的文件复制到挂载目录,然后卸载:现在图像有了您想要的文件。
别叫它"iso图像“。它是一个文件系统映像。ISO映像通常是包含ISO9660文件系统的文件系统映像。
https://unix.stackexchange.com/questions/31265
复制相似问题