FedoraForum.org - Fedora Support Forums and Community
Results 1 to 12 of 12
  1. #1
    Join Date
    Oct 2006
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    failed to setup loop device with realcrypt

    Hello All,
    When I try to mount one of my encrypted volumns using realcrypt, I get an error saying:
    Code:
     failed to setup loop device:
    I have tried doing a "modprobe loop" as suggested in other places on the web but that doesn't fix the problem. When I do "lsmod |grep loop" it shows the loop module as loaded.

    BTW I get no errors in /var/log/messages or /var/log/security

    Any Ideas?

  2. #2
    Join Date
    Mar 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    Same problem (Fedora 19 x64), with both realcrypt and truecrypt.

  3. #3
    leigh123linux Guest

    Re: failed to setup loop device with realcrypt

    Running

    Code:
    modprobe loop
    fixes the "failed to setup loop device" error here


    Code:
    [root@main-pc leigh]# uname -r
    3.12.5-302.fc20.x86_64
    [root@main-pc leigh]# mount -l |grep real
    realcrypt on /tmp/.realcrypt_aux_mnt1 type fuse.realcrypt (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
    /dev/mapper/realcrypt1 on /media/realcrypt1 type ext4 (rw,relatime,data=ordered)
    [root@main-pc leigh]#

  4. #4
    Join Date
    Aug 2004
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    I always have to enter the password twice.
    First time I get the loop error, the second time it works.

  5. #5
    Join Date
    Sep 2009
    Location
    Just outside Philadelphia, USA
    Posts
    143
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    Quote Originally Posted by pkands
    I always have to enter the password twice.
    First time I get the loop error, the second time it works.
    This happens to me too. I enter the password twice and it works the second time. Since it was just a minor annoyance, I never bothered to look up whether this was a legit bug or not, but it looks like it is.

    Edit:
    I did a reboot and it looks like Leigh is spot on for my issue. Loop is not loaded, but after a failed attempt to launch realcrypt it appears that loop gets loaded.

    Code:
    [vespa@its-i7x ~]$ lsmod | grep loop
    [vespa@its-i7x ~]$ sudo realcrypt ~/MyTruecruptVol.tc /media/realcrypt10
    Failed to set up a loop device:
    /home/vespa/MyTruecruptVol.tc
    [vespa@its-i7x ~]$ lsmod | grep loop
    loop                   27870  0
    Right now it is just an annoyance, but I suppose I could add an entry in the /etc/modules-load.d/ folder to prevent this. (That is the current modules location right? I loose track!)
    Last edited by Vespa; 30th December 2013 at 07:08 PM. Reason: More info:

  6. #6
    Join Date
    Feb 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    I tried creating an entry in the /etc/modules-load.d/ folder but couldn't get it to work. I suspect I'm doing something dumb in the syntax. Would you kindly give an example of what should be put there? Thanks much.
    - Jeremy

  7. #7
    leigh123linux Guest

    Re: failed to setup loop device with realcrypt

    Quote Originally Posted by jgeorge
    I tried creating an entry in the /etc/modules-load.d/ folder but couldn't get it to work. I suspect I'm doing something dumb in the syntax. Would you kindly give an example of what should be put there? Thanks much.
    - Jeremy
    Hi Jeremy,

    I have looked into the issue and it's not a module issue.
    The real issue is /dev/loop addresses (lack of).

    http://old.slax.org/forum.php?action...parentID=86524

    I will push a fixed build soon.


    Leigh

  8. #8
    Join Date
    Mar 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    This workaround works for me with Fedora 20 x64 (found here) :

    echo "loop">/etc/modules-load.d/loop.conf
    echo "options loop max_loop=8">/etc/modprobe.d/eightloop.conf
    dracut --force
    reboot
    Last edited by Jamaysky; 10th January 2014 at 09:43 AM.

  9. #9
    Join Date
    Feb 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    Yes, that works for me. Thanks to all for the help.

    - Jeremy

  10. #10
    Join Date
    Oct 2006
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    For me, the loop module is getting loaded automatically and doing modprobe loop did not work. The problem was caused by the fact that there were no loop devices created i.e. ls /dev/loop* only returned /dev/loop-control.

    I created a new loop device by doing:
    Code:
     sudo losetup -f
    That created a /dev/loop0 and everything started working. I'm not sure why /dev/loop0-8 are not automatically created. I'm running 3.12.8-200.fc19.x86_64

    Any ideas?

  11. #11
    leigh123linux Guest

    Re: failed to setup loop device with realcrypt

    Quote Originally Posted by aghorash
    For me, the loop module is getting loaded automatically and doing modprobe loop did not work. The problem was caused by the fact that there were no loop devices created i.e. ls /dev/loop* only returned /dev/loop-control.

    I created a new loop device by doing:
    Code:
     sudo losetup -f
    That created a /dev/loop0 and everything started working. I'm not sure why /dev/loop0-8 are not automatically created. I'm running 3.12.8-200.fc19.x86_64

    Any ideas?
    Try reading some of the previous posts.

  12. #12
    Join Date
    Aug 2013
    Location
    Germany
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: failed to setup loop device with realcrypt

    Hi,

    same problem. In the web i found a hint that adding the loop kernel module to the initial ramdisc might do the trick:

    dracut --add-drivers loop --force

    Reboot. OK, the loop module has been loaded. But Truecrypt still complained that there is no loop device. Then i tried it again with Truecrypt and - magic - it worked.

    This can only be a temporary work around, because the next kernel update will break it again.

    There seems to be something severely broken in Fedora. Hopefully they will fix that soon.

    Greetings.
    Edgar

Similar Threads

  1. Bluetooth New Device Setup failed for mouse & keyboard
    By ticedoff8 in forum Using Fedora
    Replies: 1
    Last Post: 2nd January 2011, 10:39 PM
  2. loop device not cleanly deleted
    By joekrahn in forum Using Fedora
    Replies: 0
    Last Post: 7th January 2006, 04:57 AM
  3. Problems with encrypted loop-device
    By phaas in forum Security and Privacy
    Replies: 3
    Last Post: 25th March 2005, 09:52 AM
  4. could not find any free loop device
    By slockley in forum Using Fedora
    Replies: 0
    Last Post: 31st January 2005, 05:50 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •