Author Topic: XTS and LRW use  (Read 1129 times)

Offline clarms

  • Full Member
  • ***
  • Posts: 72
XTS and LRW use
« on: June 27, 2010, 12:15:50 AM »
In the kernel config file for 2.6.32.11-pclos2.bfs, both xts and lrw seem to be compiled in, both with "y". tc gives the "device-mapper: remove ioctl failed: Device or resource busy
Command failed" error, but turning off kernel cryptographic option fixes the error.
If both the options are compiled in, it seems to fix should not be needed. Is there some other solution, possibly recompiling the kernel?

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11580
  • ----IOFLU----
Re: XTS and LRW use
« Reply #1 on: June 27, 2010, 12:54:18 AM »
In the kernel config file for 2.6.32.11-pclos2.bfs, both xts and lrw seem to be compiled in, both with "y". tc gives the "device-mapper: remove ioctl failed: Device or resource busy
Command failed" error, but turning off kernel cryptographic option fixes the error.
If both the options are compiled in, it seems to fix should not be needed. Is there some other solution, possibly recompiling the kernel?

Instead of assuming anyone knows what you are talking about, maybe you should start at the beginning and state clearly what it is you are trying to accomplish. ;)
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline clarms

  • Full Member
  • ***
  • Posts: 72
Re: XTS and LRW use
« Reply #2 on: June 27, 2010, 01:34:17 AM »
lol yes. it is a truecrypt error when unmounting, this is fixed by turning off an option in the settings. searching around it appears the error has been reported because of xts and lrw options were NOT set in the kernel compile. the kernel config does show these two compiled in, so the question as to why the error still shows.

And it is not only an error. The volume will not unmount unless the kernel option is unchecked in the settings.
« Last Edit: June 27, 2010, 01:51:33 AM by clarms »

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11580
  • ----IOFLU----
Re: XTS and LRW use
« Reply #3 on: June 27, 2010, 06:25:30 AM »
lol yes. it is a truecrypt error when unmounting, this is fixed by turning off an option in the settings. searching around it appears the error has been reported because of xts and lrw options were NOT set in the kernel compile. the kernel config does show these two compiled in, so the question as to why the error still shows.

And it is not only an error. The volume will not unmount unless the kernel option is unchecked in the settings.

It's not necessarily an error, but rather information. If any process is still working on anything in the directory, or partition involved, then the mounted item/resource is in fact still busy, from the system's view point, and like any other mountable item will not unmount until that process is finished. If you have saved all files and are content that no process should be still running, you need to locate the process id, and kill the process, after which the device-mapper will release the device and it will then unmount.

You can find out what or who is causing the item to be busy with the commands lsof and fuser.

lsof - list open files

fuser - identify processes using files or sockets

# lsof <mount/point/directory>

# fuser <mount/point/directory>

Replace <mount/point/directory> with the full path to the directory you've mounted on. You need to install the package lsof through Synaptic to use the command.

I have a partition mounted at /home/polack/Documents. I have at least one Dolphin window open to that directory. When I use the lsof command in connection with that mount point I get this;

[root@littleboy ~]# lsof /home/polack/Documents
Code: [Select]
COMMAND     PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
kio_file    404 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kwalletd   2353 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
update-no  3998 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
sleep      4018 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
zenity     4194 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
bash       7934 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kio_file   7976 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kio_thumb  7983 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
klauncher 12429 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kded4     12431 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
gam_serve 12437 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kglobalac 12539 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
knotify4  12543 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
plasma-de 12544 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kaccess   12549 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
krunner   12557 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kdf       12559 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kget      12578 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kmix      12580 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
konsole   12582 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
konqueror 12583 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
su        12586   root  cwd    DIR   8,37    12288    2 /home/polack/Documents
skype     12588 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kalarm    12589 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
pidgin    12591 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
update-no 12601 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
pam-panel 12602 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
net_apple 12622 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
xsettings 12651 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
xbindkeys 12672 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
klipper   12674 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kio_http_ 14259 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
dolphin   16197 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
ktorrent  18327 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
firefox   27917 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kmozillah 27935 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
plugin-co 27995 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
konqueror 31615 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents
kio_file  32730 polack  cwd    DIR   8,37    12288    2 /home/polack/Documents

All of the listed processes are currently accessing that directory, in some way. Until all are finished with whatever they are doing, I cannot unmount that partition.

On the other hand, I have another partition mounted on /home/polack/Documents2. The same command against that mount point gives this;

[root@littleboy ~]# lsof /home/polack/Documents2
[root@littleboy ~]#


Nothing is currently accessing that mount point, for any reason, so it can be unmounted at any time.
« Last Edit: June 27, 2010, 06:27:09 AM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline clarms

  • Full Member
  • ***
  • Posts: 72
Re: XTS and LRW use
« Reply #4 on: June 27, 2010, 07:42:55 AM »

You can find out what or who is causing the item to be busy with the commands lsof and fuser.


Thanks for your help. Unfortunately both show no files in use. If it's not reproducable then I may have bjorked something else on the system.   :P

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11580
  • ----IOFLU----
Re: XTS and LRW use
« Reply #5 on: June 27, 2010, 07:57:33 AM »

You can find out what or who is causing the item to be busy with the commands lsof and fuser.


Thanks for your help. Unfortunately both show no files in use. If it's not reproducable then I may have bjorked something else on the system.   :P

Did you try the command truecrypt -d from a terminal?
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline clarms

  • Full Member
  • ***
  • Posts: 72
Re: XTS and LRW use
« Reply #6 on: June 27, 2010, 08:12:46 AM »
Did you try the command truecrypt -d from a terminal?

Same error. This may be kernel related or compiling something to fix it, and it's most likely simple what ever it is.  :)

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11580
  • ----IOFLU----
Re: XTS and LRW use
« Reply #7 on: June 27, 2010, 08:31:56 AM »
Did you try the command truecrypt -d from a terminal?

Same error. This may be kernel related or compiling something to fix it, and it's most likely simple what ever it is.  :)

Is this an encrypted file container or a partition? Is it new, or an older existing item?

I have truecrypt installed, but no containers yet, on this machine. I haven't used the GUI version yet, as when it first came out it couldn't do hidden volumes, like the earlier command line version did, so I stayed with that on the other machine. I'll have to figure out this GUI version before I can try to replicate your disorder.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

genomega

  • Guest
Re: XTS and LRW use
« Reply #8 on: June 27, 2010, 03:33:40 PM »
You could try this to see if this is indeed your problem: truecrypt -m=nokernelcrypto volume mountpoint
adding any other options that you need to the line. This will cause decreased performance.
 

Offline clarms

  • Full Member
  • ***
  • Posts: 72
Re: XTS and LRW use
« Reply #9 on: June 27, 2010, 10:29:07 PM »
You could try this to see if this is indeed your problem: truecrypt -m=nokernelcrypto volume mountpoint
adding any other options that you need to the line. This will cause decreased performance.
 

This is most likely the same thing as the gui option. When checked it gives the same "decreased performance" message.

Offline clarms

  • Full Member
  • ***
  • Posts: 72
Re: XTS and LRW use
« Reply #10 on: June 27, 2010, 10:33:40 PM »
Is this an encrypted file container or a partition? Is it new, or an older existing item?

Tested with a new standard container.

genomega

  • Guest
Re: XTS and LRW use
« Reply #11 on: June 27, 2010, 11:34:07 PM »
I guess this affirms I'm getting really old. truecrypt had no gui back in the day when I had to use it.
truecrypt requires xts and or lrw so I think your problem may have to do with something else.