- 论坛徽章:
- 0
|
本帖最后由 chobit_s 于 2011-02-18 17:52 编辑
有块 用于kvm的磁盘镜像:x.img (已经用fdisk分过区 mkfs文件系统了)
我在本机想挂在它:
# losetup /dev/loop0 x.img
#fdisk -l /dev/loop0
Disk /dev/loop0: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc2345f81
Device Boot Start End Blocks Id System
/dev/loop0p1 * 1 17 136521 83 Linux
/dev/loop0p2 18 149 1060290 82 Linux swap / Solaris
/dev/loop0p3 150 1305 9285570 83 Linux
# ll /dev/loop0
brw-rw----. 1 root disk 7, 0 2011-02-18 15:04 /dev/loop0
但是/dev下面没有loop0p*
我自己用mknod /dev/loop0p1 b 7 1
但是/dev/loop0p1没法mount(而且/dev/loop0p1与/dev/loop0没关系 里面是空的)
剩下的操作怎么办? |
|