Find the answer to your Linux question:
Results 1 to 6 of 6
When I do: Code: dmsetup create sxb I get Code: device-mapper: version ioctl failed: Permission denied After googling I didnt find anything usefull.. I want to setup cryptsetup (On-The-Fly-Disk-Encryption) But ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429

    dmsetup


    When I do:
    Code:
    dmsetup create sxb
    I get
    Code:
    device-mapper: version ioctl failed: Permission denied
    After googling I didnt find anything usefull..
    I want to setup cryptsetup (On-The-Fly-Disk-Encryption)
    But well i am having a hard time with it.
    And Truecrypt doesnt work since I am in a Virtual Envoirment.
    Does anyone have a Idea?
    New Users, please read this..
    Google first, then ask..

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    bump
    I know its just been one single day but I NEED this BADLY..
    New Users, please read this..
    Google first, then ask..

  3. #3
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    I have absolutely no clue what dmsetup is but in case you don't know exactly what an ioctl call is here is link:
    Ioctl - Wikipedia, the free encyclopedia

    I can only imagine that your dmsetup program makes an ioctl call to query the version. This ioctl call hooks on to a piece of kernel software, maybe a driver for that program.

    "Permission denied" can mean two things:
    - The kernel module involved cannot open a file to read out stuff like version etc.

    or

    - The program you are running is restricted to be run as root

    Maybe it is something completely different, too, but you wanted a quick answer and as no one else is replying ...

    And I forgot, depending on your file system, NFS, or so, you can have often weird permission problems where you can be root but cannot read then your user files and if you're only user than you're missing the root permissions. I'm often on an NFS file system where I have to copy files to a third location to be able to get hold of them as user or as root.
    Bus Error: Passengers dumped. Hech gap yo'q.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    dmsetup makes a Virtual Device for what I get it for..
    dm-crypt - a device-mapper crypto target is the Guide I am following..
    How can I found out what the kernel trys to access?

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  6. #5
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    Only by looking at the source code.

    "device-mapper: version ioctl failed: Permission denied"

    "device-mapper" seems to be a C source code file. It could be a driver file related with that software or part of the application software itself. "find . -name "device-mapper.*" should yield something.

    The error message "version ioctl failed" could be composed. That is the source could look like this "printf [or printk] (... %s ioctl failed\n", err_string) or so.

    But more probable is that you got really a permission problem as this would be an obvious error that other people would have already asked for on the WWW. Well, depends on how much popular the program is and what's the average user. Many people simply give up and look for another program.

    But I would look first if your application software package has been installed properly. Sometimes you end up with a broken installation and don't know how and why and anything at all until you run into the first strange errors that nobody else has.
    Bus Error: Passengers dumped. Hech gap yo'q.

  7. #6
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Well its installed by Gentoo so its compiled for about 20 times already
    Its a program only SystemAdmins use.
    I did found more stuff I found out thet device-mapper is the tool from Linux used for LVM and for making your own Devices.
    I found this but that uses lots of loop drives.
    and you only have 7..
    And well I need to be able to run atleast 30 Encrypted Disks at the same time..
    I also did post the Question on the Gentoo forums now.

    Thanks alot already
    New Users, please read this..
    Google first, then ask..

Posting Permissions

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