LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-08-2006, 11:07 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,310

Rep: Reputation: 53
dm-crypt newbie


I wanted to try encryption on a partition, everything seems to work but I dont know how to write to the resulting encrypted partition, where is it?

/dev/hda8 is /opt
Here is what I have done:
cryptsetup -y create crypt /dev/hda8
mkfs reiserfs /dev/mapper/crypt
mount -t reiserfs /dev/mapper/crypt /opt

And here are the results:
# dmsetup ls
crypt (254, 0)

# mount
/dev/mapper/crypt on /opt type reiserfs (rw)

lt:/opt# ls -la
total 1
drwxr-xr-x 3 root root 48 2006-10-08 23:25 .
drwxr-xr-x 21 root root 1024 2006-07-27 17:04 ..
lt:/opt#

lt:/opt# find / -name crypt
/dev/mapper/crypt

Am I supposed to write to /dev/mapper/crypt? And will the encrypted file be in /opt?

Thank you for your help.
 
Old 10-11-2006, 08:15 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
You are supposed to write to /opt, the file will be in /opt.
The filesystem will be encrypted, not individual files.
The encrypted filesystem will be in /dev/hda8. /dev/mapper/crypt is a "virtual" device - uncrypted /dev/hda8. Or, /dev/hda8 is "encrypted" version of /dev/mapper/crypt, which holds filed of /opt.

I hope I've confused you even more now
 
Old 10-24-2006, 03:13 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,310

Original Poster
Rep: Reputation: 53
Sorry for the delay, I have been banned, reason given: none.

I wouldn't have the faintest idea why, my postings are always straight questions I take great care to have in the appropriate forum , or straight answers.

I never deviate from this.

I will retry encryption again and, if you don't mind, I'll probably have a couple more questions.

Thank you for your answer.

For any moderator or other administrative staff looking at this, I have to point out I am not bothered very much by being banned if no reason is given.

I have joined a paid service I used some years ago and I am quite ready to erase LQ from my machines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No Crypt AMMullan Linux - Software 4 08-08-2007 03:48 AM
dm-crypt rino.caldelli Linux - Software 1 07-28-2005 09:06 PM
dm-crypt rino.caldelli Linux - Security 1 07-28-2005 12:46 PM
Crypt help liguorir Linux - Security 2 05-11-2004 09:44 AM
crypt IBP Linux - Software 3 03-03-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:45 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