Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: TrueCrypt - how to "Dismount" even if device is in use ?

  1. #1
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    TrueCrypt - how to "Dismount" even if device is in use ?

    I've an encrypted partition and it would be extremely nice if I could dismount it even if it's in use ( like Rythmbox is playing my mp3's, etc. ).
    Is it even possible ? When I hit "Dismount", I'm asked to enter my password and woala .. error pops out saying that I can't unmount "busy" device

    Any tips/ideas on how to achieve this ( say "Unmount" without listening to my PC's arguments ) ?

  2. #2
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    From the command line, try
    Code:
    truecrypt --force --dismount=VOLUME
    Replace VOLUME with the volume name or leave off to dismount all volumes.

  3. #3
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    that really isn't a good idea. you can really screw up your filesystem taht way.

    in the windows version of truecrypt, you are prompted to force a dismount if the volume is in use. run
    Code:
    truecrypt --help
    to find the command line arguments possible (sorry, not at a lin terminal) and look to see if there is a -f for force that you can use with -d (dismount)

  4. #4
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    Quote Originally Posted by michy99 View Post
    From the command line, try
    Code:
    truecrypt --force --dismount=VOLUME
    Replace VOLUME with the volume name or leave off to dismount all volumes.
    Something is wrong ..
    Unexpected characters following option 'dismount'.
    Quote Originally Posted by doas777 View Post
    that really isn't a good idea. you can really screw up your filesystem taht way.

    in the windows version of truecrypt, you are prompted to force a dismount if the volume is in use. run
    Code:
    truecrypt --help
    to find the command line arguments possible (sorry, not at a lin terminal) and look to see if there is a -f for force that you can use with -d (dismount)
    Good or bad, but what's the point of using TrueCrypt ? To protect my files, right ? So, in case if I need to close my streams in the matter of seconds, "damage" would be the last thing to mention

  5. #5
    Join Date
    Jun 2008
    Location
    Paris
    Beans
    260

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    Quote Originally Posted by credobyte View Post
    I've an encrypted partition and it would be extremely nice if I could dismount it even if it's in use ( like Rythmbox is playing my mp3's, etc. ).
    Is it even possible ? When I hit "Dismount", I'm asked to enter my password and woala .. error pops out saying that I can't unmount "busy" device

    Any tips/ideas on how to achieve this ( say "Unmount" without listening to my PC's arguments ) ?
    my 2 eurocents: it would be far better to try and stop whatever keeps it busy. anyway, it won't be really unmounted if you force-umount it.

    try fuser -m /any/directory/on/mounted/dir, it should give you whatever processes could still have it busy. then you can kill it the soft way (-TERM) or the hard way (-KILL).

    oh, and I am not sure I understood clearly: rhythmbox is still playing music from it and you want to unmount it anyway ?

  6. #6
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    Quote Originally Posted by regala View Post
    oh, and I am not sure I understood clearly: rhythmbox is still playing music from it and you want to unmount it anyway ?
    This should give you an overview of what I want to achieve

    Code:
    Q: Go away!
    A: No, I'm working ..
    to something like ..
    Code:
    Q: Go away!
    A: No, I'm wor (kill) .. aah .. (gone)

  7. #7
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    well, the reason that it doesn't want to dismount is a good one. it is likely not the mount point that you are going to kill, but your file system. truecrypt can't protect your files, if you destroy them.

  8. #8
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    Did you try the force dismount without specifying a volume?
    Code:
    truecrypt --force --dismount

  9. #9
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    Quote Originally Posted by doas777 View Post
    well, the reason that it doesn't want to dismount is a good one. it is likely not the mount point that you are going to kill, but your file system. truecrypt can't protect your files, if you destroy them.
    Did I forgot to mention that it's an extended partition ( only documents and similar stuff ) ? Destroy 2 files, save 2k - for me, reasonable

    Quote Originally Posted by michy99 View Post
    Did you try the force dismount without specifying a volume?
    Code:
    truecrypt --force --dismount
    Excellent ! Thanks a lot

  10. #10
    Join Date
    Jun 2008
    Location
    Paris
    Beans
    260

    Re: TrueCrypt - how to "Dismount" even if device is in use ?

    Quote Originally Posted by credobyte View Post
    Did I forgot to mention that it's an extended partition ( only documents and similar stuff ) ? Destroy 2 files, save 2k - for me, reasonable
    a filesystem code doesn't speak "documents and similar stuff". it speaks filesystem integrity for one thing, and, as every other code in kernel space, keeping a running system stable. if you really want to remove it, remove it physically by hand, but don't expect the kernel to do destructive things or even enabling you to do it thru its code

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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