Mounting crypt.fs from script

  • Kirk Zurell

    Kirk Zurell - 2009-10-14

    I have a crypt.fs filesystem that I mount and unmount successfully at the command line. After doing so, losetup -a shows no loop devices.

    I need to mount it from a php script. I seem to be able to successfully pass the passphrase via file descriptor 3 in proc_open() and fwrite(), and pick it up with -passwd-fd 3 in the command.

    These messages appear in the error output, captured to a file:

        e2fsck 1.41.4 (27-Jan-2009)
        e2fsck: need terminal for interactive repairs
        device-mapper: remove ioctl failed: Device or resource busy
        device-mapper task failed
        LOOP_CLR_FD ioctl() failed on "/dev/loop0"
        failed to free device (7,0)

    losetup -a shows the loop device still active, and can't delete it.

    Any advice or instruction appreciated.


  • Kirk Zurell

    Kirk Zurell - 2009-10-14

    Should have thought of this before posting. I'll try adding the nocheck option in fsoptions=


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks