Skip to contentSkip to conversation

About Loop Device

DISCUSSION Michael Zhu 4 participants 9 messages Jan 9, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

On Wed, 9 Jan 2002, Michael Zhu wrote:
[SNIPPED...]

Quoted 7 lines

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.

#2 lore raw

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" <[email protected]>

Quoted 22 lines · wrote:

On Wed, 9 Jan 2002, Michael Zhu wrote:
[SNIPPED...]

Quoted 1 line

connection between my own loop device with the

floppy

Quoted 1 line

disk? I mean how I can connect the loop device

with

Quoted 1 line

the floppy disk to hook the READ/WRITE operations

to

Quoted 4 lines

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).

Quoted 8 lines

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

#3 lore raw
Quoted 4 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.

You probably want losetup(8) instead of mount.

-Doug

Signature · 2 lines
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863
#4 lore raw

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

Quoted 4 lines · --- Doug McNaught
Quoted 2 lines · Michael Zhu

Thanks for the reply. But when I try to use the
command "mount -o loop /dev/fd0 /floppy", the

Quoted 12 lines

mount

Quoted 1 line

returns an error saying "mount: you must specify

the

Quoted 1 line

filesystem type". What is wrong? Thanks.

You probably want losetup(8) instead of mount.

-Doug

Signature · 3 lines
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

#5 lore raw
Quoted 3 lines · Michael Zhu

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

Signature · 2 lines
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863
#6 lore raw
In reply to Doug McNaught

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

#7 lore raw
Quoted 6 lines · Michael Zhu

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.

#8 lore raw
In reply to Michael Zhu

On Wed, Jan 09, 2002 at 12:42:20PM -0500, you [Richard B. Johnson] claimed:

Quoted 9 lines · Michael Zhu
Quoted 5 lines

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 --

[email protected]