LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2010, 04:34 PM   #1
digilinux
LQ Newbie
 
Registered: Dec 2010
Posts: 17

Rep: Reputation: 0
encrypted file system??


Hello, when i try to mount a linux file system that was encrypted
using cryptsetup i get the following error

debian:/# mount /dev/sdb3

Command sukey slot 0
mount: u moet een bestandssysteemsoort aangeven
mount failed with run_sync status 32
Command failed: Device busy
mount.crypto_LUKS(crypto-dmc.c:168): Could not unload dm-crypt device "/dev/mapper/_dev_sdb3", cryptsetup returned HXproc status 240

"mount: u moet een bestandssysteemsoort aangeven" is dutch for
"you must specify filesystem type"

u used the correct password

any suggestions??

peace,

dagmar

Last edited by digilinux; 12-11-2010 at 04:35 PM.
 
Old 12-11-2010, 04:52 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Does /dev/mapper/_dev_sdb3 exist? What happens if you try to mount that?
 
Old 12-11-2010, 05:12 PM   #3
digilinux
LQ Newbie
 
Registered: Dec 2010
Posts: 17

Original Poster
Rep: Reputation: 0
i get:

"mount: u moet een bestandssysteemsoort aangeven"

once again.
 
Old 12-11-2010, 05:19 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
What is the history of this encrypted partition? Did you just create it or has it been in service for some time?

If you just created it then it (probably) doesn't have a file system yet.

Last edited by stress_junkie; 12-11-2010 at 05:21 PM.
 
Old 12-11-2010, 05:23 PM   #5
digilinux
LQ Newbie
 
Registered: Dec 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
What is the history of this encrypted partition? Did you just create it or has it been in service for some time?

If you just created it then it (probably) doesn't have a file system yet.
I did:

debian:/# mkfs.ext3 /dev/sdb3
debian:/# cryptsetup luksFormat /dev/sdb3

i gave a password
 
Old 12-11-2010, 05:24 PM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You did that backwards.

First you encrypt the partition, then you map it to a virtual device, then you create a file system on the virtual device.
 
Old 12-11-2010, 05:38 PM   #7
digilinux
LQ Newbie
 
Registered: Dec 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Okay, i tried again, first i needed to reboot, because the device was busy.

i used "cryptsetup luksFormat /dev/sdb3"

and seemed to work.

after that u couldnt reach "/dev/mapper/_dev_sdb3"

i tried to mount /dev/sdb3, and got the error again.

from there the mapper file showed up in "/dev/mapper/_dev_sdb3

so i did "mkfs.ext3 /dev/mapper/_dev_sdb3"

i still couldnt mount it so i rebooted again.

after that reboot i mounted /dev/sdb3 om /mnt3 and gave the password

it seems to work, great thanks!!!
 
Old 12-11-2010, 05:41 PM   #8
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You may want to run cryptsetup status /dev/mapper/<device> to see if it really is encrypted.
 
Old 12-11-2010, 05:44 PM   #9
digilinux
LQ Newbie
 
Registered: Dec 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
You may want to run cryptsetup status /dev/mapper/<device> to see if it really is encrypted.
It says:

/dev/mapper//dev/mapper/_dev_sdb3 is active:
cipher: aes-cbc-essiv:sha256
keysize: 128 bits
device: /dev/sdb3
offset: 1032 sectors
size: 104871288 sectors
mode: read/write


but maybe i put an ordinary .txt file on the partition, cat /dev/sdb3 and use grep with contents of the .txt file
and see if contents show up, to recognize is the partition is really encrypted ??
 
Old 12-11-2010, 05:49 PM   #10
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Yes. You have succeeded!

You put files onto the encrypted partition through the mount point, just like an unencrypted partition. I think you said that you mount it on /mnt3 so that is the path to the mounted encrypted partition.

Last edited by stress_junkie; 12-11-2010 at 05:51 PM.
 
Old 04-15-2011, 09:26 AM   #11
digilinux
LQ Newbie
 
Registered: Dec 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Remounting this without mapper

solved

Last edited by digilinux; 04-18-2011 at 08:01 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypted file system black_man Linux - Security 0 12-05-2005 04:38 PM
encrypted file system black_man Linux - Software 7 02-23-2004 05:24 PM
encrypted file system deNiro Slackware 2 11-30-2003 12:39 PM
Encrypted File System for 9.2? scottdwright Mandriva 3 11-24-2003 03:53 AM
Encrypted File System? scottdwright Linux - Newbie 2 11-22-2003 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration