Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > dmsetup

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-18-2007   #1 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,381
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
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?
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline  



Reply With Quote
Old 12-20-2007   #2 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,381
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
bump
I know its just been one single day but I NEED this BADLY..
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline   Reply With Quote
Old 12-20-2007   #3 (permalink)
Linux Newbie
 
dilbert's Avatar
 
Join Date: Sep 2006
Location: Yorkshire, GB
Posts: 221
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.
dilbert is offline   Reply With Quote
Old 12-20-2007   #4 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,381
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
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
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline   Reply With Quote
Old 12-20-2007   #5 (permalink)
Linux Newbie
 
dilbert's Avatar
 
Join Date: Sep 2006
Location: Yorkshire, GB
Posts: 221
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.
dilbert is offline   Reply With Quote
Old 12-20-2007   #6 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,381
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
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
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 02:04 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1