Skip to contentSkip to conversation

About Loop Device

DISCUSSION Michael Zhu 1 participant 1 message Jan 10, 2002

lore
Share & tools
lore
#0 lore raw

Hi, now I can use the "mount -o loop /dev/fd0 /mnt" to mount the loop device after I use mke2fs format the /dev/fd0. But how can I test it? What are the /dev/loop0,/dev/loop1.....,/dev/loop7 used for? Are there any detailed informations about how to use the loop device? I've read some souce code about the loop.c file. But not fully understand. Can anyone give me a hand on this. Thanks in advance.

Michael

Quoted 7 lines · Michael Zhu

Thanks for the reply. But when I try to use the command "mount -o loop /dev/fd0 /floppy", the mount returns an error saying "mount: you must specify the filesystem type". What is wrong? Thanks.

Michael

man mount

mount -o loop -t ext2 /dev/fd0 /mnt # Usual linux
mount -o loop -t msdos /dev/fd0 /mnt # DOS
file-system
mount -o loop -t vfat /dev/fd0 /mnt # Win/NT, etc.

                    |         |    |__________
mount-point
                    |         |_______________ device
                    |_________________________

File-system type

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (797.90 BogoMips).

I was going to compile a list of innovations that
could be
attributed to Microsoft. Once I realized that
Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't
any.

______________________________________________________________________
Web-hosting solutions for home and business! http://website.yahoo.ca