当前位置: 技术问答>linux和unix
LINUX下如何使用软盘映象?
来源: 互联网 发布时间:2016-04-18
本文导语: mount -o loop HOPES.IMG /mnt/floppy ,为什么用这命令会不行。ERROR 32,ioctl: LOOP_SET_FLOPPY : invalid argument 。谁能告诉我怎么解决吗? | 加个 -t msdos 试下 | mount的手册 THE LOOP DEVIC...
mount -o loop HOPES.IMG /mnt/floppy ,为什么用这命令会不行。ERROR 32,ioctl: LOOP_SET_FLOPPY : invalid argument 。谁能告诉我怎么解决吗?
|
加个 -t msdos 试下
|
mount的手册
THE LOOP DEVICE
One further possible type is a mount via the loop device. For example,
the command
mount /tmp/fdimage /mnt -t msdos -o loop=/dev/loop3,blocksize=1024
will set up the loop device /dev/loop3 to correspond to the file
/tmp/fdimage, and then mount this device on /mnt. This type of mount
knows about three options, namely loop, offset and encryption, that
are really options to losetup(8). If no explicit loop device is men-
tioned (but just an option ?o loop?is given), then mount will try to
find some unused loop device and use that. If you are not so unwise
as to make /etc/mtab a symbolic link to /proc/mounts then any loop
device allocated by mount will be freed by umount. You can also free
a loop device by hand, using 鈒osetup -d? see losetup(8).
THE LOOP DEVICE
One further possible type is a mount via the loop device. For example,
the command
mount /tmp/fdimage /mnt -t msdos -o loop=/dev/loop3,blocksize=1024
will set up the loop device /dev/loop3 to correspond to the file
/tmp/fdimage, and then mount this device on /mnt. This type of mount
knows about three options, namely loop, offset and encryption, that
are really options to losetup(8). If no explicit loop device is men-
tioned (but just an option ?o loop?is given), then mount will try to
find some unused loop device and use that. If you are not so unwise
as to make /etc/mtab a symbolic link to /proc/mounts then any loop
device allocated by mount will be freed by umount. You can also free
a loop device by hand, using 鈒osetup -d? see losetup(8).