Linux 使用newfs文件系统创建可装载映像
我想用newfs文件系统创建一个可装载的映像,它可以用newfs文件系统装载。我该怎么做 我已尝试使用命令创建图像Linux 使用newfs文件系统创建可装载映像,linux,image,filesystems,mount,mount-point,Linux,Image,Filesystems,Mount,Mount Point,我想用newfs文件系统创建一个可装载的映像,它可以用newfs文件系统装载。我该怎么做 我已尝试使用命令创建图像 dd if=localfiles.tar.gz of=/root/upload/test.img 但我无法创建一个新的FS文件系统。我该怎么做呢?大致如下: $ dd if=/dev/zero bs=8M count=<depends on the size of the fs you need> of=/root/upload/test.img $ mkfs.new
dd if=localfiles.tar.gz of=/root/upload/test.img
但我无法创建一个新的FS文件系统。我该怎么做呢?大致如下:
$ dd if=/dev/zero bs=8M count=<depends on the size of the fs you need> of=/root/upload/test.img
$ mkfs.newfs /root/upload/test.img
# mount -o loop /root/upload/test.img /mnt
$ cd /mnt
$ tar xzf /path/to/localfiles.tar.gz
$ cd
# umount /mnt