Re: Cryptoapi problem - remounting encrypted filesystem

From: /dev/rob0 (rob0_at_gmx.co.uk)
Date: 07/29/03


Date: Tue, 29 Jul 2003 06:53:13 -0700

In article <99758932.0307281533.5cd5b04e@posting.google.com>,
  DigitalElf wrote:
> I am now able to mount the filesystem. However, after I use it and
> unmount, then detach the filesystem, when I go to mount it again, I
> have to specify the keysize, create a new password, and then re-create
> the filesystem. Is this how this is supposed to work? I was under

No, you should be able to losetup (link the file to the loop device)
using the previous passphrase. Then you would mount the loop device and
access your stored data.

> the impression that I could save work to this filesystem, unmount it,
> and it would be safe from prying eyes, then later remount it and enter
> my password and away I go. Did I miss something?

Apparently so! What exactly are you doing? See "man losetup" (the
patched one, that is) and try "losetup /dev/loop?" to see what's
attached. Are you trying to use a different loop device? That would not
matter as long as you did "losetup -d device" for the previous one. I
don't know what would happen if 2 loop devices were linked to the same
file.

-- 
  /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
  or put "not-spam" or "/dev/rob0" in Subject header to reply


Relevant Pages

  • Re: encryted filesystems
    ... changing the owner of the loop device but it didn't work at all then. ... I still couldn't access the losetup or mount ... And about the loopback over NFS, any recent documentation relating to the ... > service attack by using a feature of the ext2 filesystem. ...
    (comp.os.linux.security)
  • Re: Mounting a hard disk image ...
    ... >>Then you'll have to mount them loopback with offsets or split the image ... You can attach the whole file to a loop device and use ... so the use of "losetup" is often overlooked. ...
    (comp.os.linux.misc)
  • Re: Using noatime, and other options in /etc/fstab, correctly
    ... ....unfortunately /var is _not_ it's own partition. ... If you want /var to have different mount ... mountable filesystem, and mount it separately. ... /could/ use a loop device, make a big file on your existing partition, ...
    (comp.os.linux.misc)
  • Re: mount() function problem !
    ... mount() attaches the filesystem specified by source (which is often a device name, ... point within a file system. ... details of the options available for each filesystem type. ... Specifies the journalling mode for file data. ...
    (comp.lang.c)
  • Re: [autofs] [RFC] Towards a Modern Autofs
    ... >entangling autofs with that work. ... >filesystem it's willing to export. ... >>map is mounted. ... The result is that some users will see mount points ...
    (Linux-Kernel)