将磁盘映像与dev / loop0设备关联后,我无法在/ dev / loop0p1中挂载文件系统
root@reading2 Documents]# fdisk -l /dev/loop0 Disk /dev/loop0: 31.9 GB, 31914983424 bytes 255 heads, 63 sectors/track, 3880 cylinders, total 62333952 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: 0x00000000 Device Boot Start End Blocks Id System /dev/loop0p1 * 8192 62333951 31162880 c W95 FAT32 (LBA) [root@reading2 Documents]# ls -l /mnt total 0 [root@reading2 Documents]# mount -t vfat /dev/loop1 /mnt mount: block device /dev/loop1 is write-protected, mounting read-only mount: /dev/loop1: can't read superblock [root@reading2 Documents]#
我究竟做错了什么?
提前致谢
你的mount命令有一个错字。
您将一个磁盘映像挂载到/dev/loop0的环回设备,其分区变成/dev/loop0p1 。
因此,要安装它,你会使用类似于:
mount -o ro -t vfat /dev/loop0p1 /mnt
但是,您在mount命令中键入/dev/loop1 。