为什么这个自定义创建的 USB 驱动器映像无法安装?

为什么这个自定义创建的 USB 驱动器映像无法安装?

我正在尝试安装使用创建的自定义 USB 驱动器映像fdisk。以下是我创建映像的方式:

  1. 创建了一个与用作模型的旧 USB 驱动器映像大小完全相同的文件:(dd if=/dev/zero of=image.img count=30712320大小:15724707840 B15.7 GB
  2. 创建分区表:在fdisko
  3. 创建了分区:在fdiskn,,,,,p1enterenter
  4. 将分区类型切换为W95 FAT 32 (LBA):在fdisktc
  5. 将启动标志设置为 on: 在fdisk:中a1
  6. 将对图像的更改写入:在fdiskw

输出fdisk -l image.img

Disk image.img: 15.7 GB, 15724707840 bytes
193 heads, 9 sectors/track, 17681 cylinders, total 30712320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc8fac3e1

    Device Boot      Start         End      Blocks   Id  System
image.img1   *        2048    30712319    15355136    c  W95 FAT32 (LBA)

一切似乎都正常,但问题是我无法安装图像:

1)sudo mount image.img /media/image

mount: you must specify the filesystem type

2)sudo mount -t vfat image.img /media/image

mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail  or so

3)sudo mount -o offset=1048576 image.img /media/image1048576=起始扇区号*扇区大小):

mount: you must specify the filesystem type

4)sudo mount -t vfat -o offset=1048576 image.img /media/image1048576=起始扇区号*扇区大小):

mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail  or so

为什么会发生这种情况?

相关内容