* 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-09 16:19 About Loop Device Michael Zhu
@ 2002-01-09 16:27 ` Richard B. Johnson
2002-01-09 16:55 ` Michael Zhu
0 siblings, 1 reply; 11+ messages in thread
From: Richard B. Johnson @ 2002-01-09 16:27 UTC (permalink / raw)
To: Michael Zhu; +Cc: linux-kernel
On Wed, 9 Jan 2002, Michael Zhu wrote:
[SNIPPED...]
> 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
>
mount -o loop /dev/fd0 /mnt
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: About Loop Device
2002-01-09 16:27 ` Richard B. Johnson
@ 2002-01-09 16:55 ` Michael Zhu
2002-01-09 17:04 ` Doug McNaught
0 siblings, 1 reply; 11+ messages in thread
From: Michael Zhu @ 2002-01-09 16:55 UTC (permalink / raw)
To: root; +Cc: linux-kernel
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
--- "Richard B. Johnson" <root@chaos.analogic.com>
wrote:
> On Wed, 9 Jan 2002, Michael Zhu wrote:
> [SNIPPED...]
>
> > 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
> >
>
> mount -o loop /dev/fd0 /mnt
>
> 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
* Re: About Loop Device
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:32 ` Michael Zhu
0 siblings, 2 replies; 11+ messages in thread
From: Doug McNaught @ 2002-01-09 17:04 UTC (permalink / raw)
To: Michael Zhu; +Cc: root, linux-kernel
Michael Zhu <mylinuxk@yahoo.ca> writes:
> 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.
You probably want losetup(8) instead of mount.
-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: About Loop Device
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
1 sibling, 1 reply; 11+ messages in thread
From: Michael Zhu @ 2002-01-09 17:13 UTC (permalink / raw)
To: Doug McNaught; +Cc: root, linux-kernel
Can you explain that detailed for me? I mean the whole
command I can use to connect the loop device and the
floppy disk.
Thanks.
Michael
--- Doug McNaught <doug@wireboard.com> wrote:
> Michael Zhu <mylinuxk@yahoo.ca> writes:
>
> > 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.
>
> You probably want losetup(8) instead of mount.
>
> -Doug
> --
> Let us cross over the river, and rest under the
> shade of the trees.
> --T. J. Jackson, 1863
______________________________________________________________________
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-09 17:13 ` Michael Zhu
@ 2002-01-09 17:19 ` Doug McNaught
0 siblings, 0 replies; 11+ messages in thread
From: Doug McNaught @ 2002-01-09 17:19 UTC (permalink / raw)
To: Michael Zhu; +Cc: root, linux-kernel
Michael Zhu <mylinuxk@yahoo.ca> writes:
> Can you explain that detailed for me? I mean the whole
> command I can use to connect the loop device and the
> floppy disk.
Is there some problem with the manpage? Seems pretty clear to me.
-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: About Loop Device
2002-01-09 17:04 ` Doug McNaught
2002-01-09 17:13 ` Michael Zhu
@ 2002-01-09 17:32 ` Michael Zhu
2002-01-09 17:42 ` Richard B. Johnson
1 sibling, 1 reply; 11+ messages in thread
From: Michael Zhu @ 2002-01-09 17:32 UTC (permalink / raw)
To: linux-kernel
Hi, I just want to confirm whether the loop device can
encrypt the whole data on the disk even including the
boot sector. I want to make a whole block level
encryption. Thanks.
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-09 17:32 ` Michael Zhu
@ 2002-01-09 17:42 ` Richard B. Johnson
2002-01-09 20:00 ` Ville Herva
0 siblings, 1 reply; 11+ messages in thread
From: Richard B. Johnson @ 2002-01-09 17:42 UTC (permalink / raw)
To: Michael Zhu; +Cc: linux-kernel
On Wed, 9 Jan 2002, Michael Zhu wrote:
> Hi, I just want to confirm whether the loop device can
> encrypt the whole data on the disk even including the
> boot sector. I want to make a whole block level
> encryption. Thanks.
>
> Michael
This may be a troll. How would you boot? Who decrypts during the
boot?
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: About Loop Device
2002-01-09 17:42 ` Richard B. Johnson
@ 2002-01-09 20:00 ` Ville Herva
0 siblings, 0 replies; 11+ messages in thread
From: Ville Herva @ 2002-01-09 20:00 UTC (permalink / raw)
To: Richard B. Johnson; +Cc: Michael Zhu, linux-kernel
On Wed, Jan 09, 2002 at 12:42:20PM -0500, you [Richard B. Johnson] claimed:
> On Wed, 9 Jan 2002, Michael Zhu wrote:
>
> > Hi, I just want to confirm whether the loop device can
> > encrypt the whole data on the disk even including the
> > boot sector. I want to make a whole block level
> > encryption. Thanks.
>
> This may be a troll. How would you boot? Who decrypts during the
> boot?
With a boot floppy, perhaps?
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: About Loop Device
[not found] <3C3DFF15.7090707@broadpark.no>
@ 2002-01-10 21:47 ` Michael Zhu
0 siblings, 0 replies; 11+ messages in thread
From: Michael Zhu @ 2002-01-10 21:47 UTC (permalink / raw)
To: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 784 bytes --]
If I use those techniques, does it mean that I need to
add some patch to the kernel? I need to recompile the
kernel?
Michael
--- Gisle Sælensminde <gisle.selensminde@broadpark.no>
wrote:
>
> If you want to encrypt, the standard kernel is not
> sufficient, Instead,
> you should the cryptoapi
> og loop-aes modules, that is distributed separatly
> from the kernel. The
> Linux cryprography mailing
> list is probably of interest too
>
> Mailing list info:
>
> http://mail.nl.linux.org/linux-crypto/
>
> cryptoapi: http://cryptoapi.sourceforge.net
> loop-aes: http://loop-aes.sourceforge.net/
>
> Hope this helps.
>
> - Gisle
>
______________________________________________________________________
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
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®