mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* About Loop Device
@ 2002-01-09 16:19 Michael Zhu
  2002-01-09 16:27 ` Richard B. Johnson
  0 siblings, 1 reply; 11+ messages in thread
From: Michael Zhu @ 2002-01-09 16:19 UTC (permalink / raw)
  To: linux-kernel

Hello,everyone,does anyone be familiar with the loop
device? I just read some source code of loop.c file. I
have some questions about this loop device. I am a new
one to this loop device. Thanks in advance.

I want to implement my own loop device which is used
to encrypt the whole disk,say /dev/fd0, even including
the boot sector on the floppy disk. How can I make a
connection between my own loop device with the floppy
disk? I mean how I can connect the loop device with
the floppy disk to hook the READ/WRITE operations to
the floppy disk.

Michael

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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: About Loop Device
@ 2002-01-10 17:15 Michael Zhu
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Zhu @ 2002-01-10 17:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: root

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


On Wed, 9 Jan 2002, Michael Zhu wrote:

> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <3C3DFF15.7090707@broadpark.no>]

end of thread, other threads:[~2002-01-10 21:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-09 16:19 About Loop Device Michael Zhu
2002-01-09 16:27 ` Richard B. Johnson
2002-01-09 16:55   ` Michael Zhu
2002-01-09 17:04     ` Doug McNaught
2002-01-09 17:13       ` Michael Zhu
2002-01-09 17:19         ` Doug McNaught
2002-01-09 17:32       ` Michael Zhu
2002-01-09 17:42         ` Richard B. Johnson
2002-01-09 20:00           ` Ville Herva
2002-01-10 17:15 Michael Zhu
     [not found] <3C3DFF15.7090707@broadpark.no>
2002-01-10 21:47 ` Michael Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®