LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-29-2009, 03:54 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 380

Rep: Reputation: 32
Secure Flash Device. How to?


Hi group,

This is a general question about how to build a 'Bullet Proof' server.
What I would like to do is emulate a CDR on a flash drive. I don't want to have a CD attached to the system but I want the functionality of a CD. That being read-only, bootable medium.I know I can mount it read-only but if a hacker gets in, then he can remount it and have his way with my system.

I am looking for a USB device that I can removed and updated. I could live with a write-once flash, maybe. Maybe a PIC?? I am not concerned about physical security, if you lose that, it is all over anyway. And of course, cost is a factor.

Any ideas?? Thanks for your time.
 
Old 06-29-2009, 04:34 PM   #2
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 380

Original Poster
Rep: Reputation: 32
After thinking about this

An SD WORM cost way to much!

So I think the way aroung this is to create a special driver to handle the new feature?? Say, create a read-only flash driver for the kernel?

Any thoughts?
 
Old 06-29-2009, 04:42 PM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
You could encrypt a USB device, then mount it read-only. The encryption would prevent other people from mounting the device in any mode. I use True Crypt because it has been ported to Linux and Windows so you can use the same encrypted disk on both systems with 100% compatibility.

http://www.truecrypt.org/

Last edited by stress_junkie; 06-29-2009 at 04:43 PM.
 
Old 06-29-2009, 05:33 PM   #4
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 380

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by stress_junkie View Post
You could encrypt a USB device, then mount it read-only. The encryption would prevent other people from mounting the device in any mode. I use True Crypt because it has been ported to Linux and Windows so you can use the same encrypted disk on both systems with 100% compatibility.

http://www.truecrypt.org/
If the drive was encrypted, could I then boot from it??
 
Old 06-29-2009, 07:14 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Quote:
Originally Posted by MrUmunhum View Post
If the drive was encrypted, could I then boot from it??
You would have to have an unencrypted boot partition that holds the contents of the /boot directory. The rest of the system could be in the encrypted partition.

However if you want to boot from the device then you should use a native Linux encryption product. You can find instructions to do this all over the Internet. Google for something like linux boot encrypted partition. You will probably have to combine instructions to boot from a USB stick with other instructions to boot from an encrypted system partition.

Good luck. Sounds like a good idea to me.
 
Old 06-29-2009, 08:09 PM   #6
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
What about booting from an SD card with a rw/ro switch. You wouldn't need to emulate a CD. It simply can't be written to.
 
Old 06-30-2009, 01:27 PM   #7
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 380

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by jschiwal View Post
What about booting from an SD card with a rw/ro switch. You wouldn't need to emulate a CD. It simply can't be written to.
After doing some googling ( which I should have done first ), it looks like a write-protected SD or pen drive is my solution. The question is, which type of flash is more dependable?? I have had many pen drive that have failed in a short time.

Your experiences, comments?
 
Old 06-30-2009, 01:31 PM   #8
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Don't know if that's what your hunting for but IronKey is pretty good to me
Of course, I don't experiment on it like my other usb's, but it works like it says...

https://www.ironkey.com/
 
Old 06-30-2009, 03:16 PM   #9
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
You may want to limit which directories you use. Flash can be fast for reads but slow for writes. Also there are a limited number of writes. So you want to use ext2 instead of ext3, to reduce the number of writes due to journaling. As you will be mounting it read-only (when mot making changes), look in the Linux Filesystem Hierarchy Guide in the tldp.org website. Some directories can be static. Those are the candidates for your R/O drive. I'm not certain, but I think that the performance of a higher quality SD card will be better. Perhaps one designed to perform well recording & playing back video. If you have an mmc card slot, this may work better than one that uses a usb interface. However a cheaper SD card may be limited to 11 MB/sec, according to testing a Sandisk card on my laptop using hdparm.

Last edited by jschiwal; 06-30-2009 at 03:27 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure clock device? smithsw Linux - Security 1 06-02-2007 02:56 PM
Secure Digital Flash Problems with ext3 Denes Programming 2 08-28-2006 12:29 PM
LXer: EDGE Tech Corp Announces Portable Flash Drive With Muscle - the New 8GB DiskGO!(TM) Now Available; Swap and Go With This Secure Thumb-Sized Flash Drive LXer Syndicated Linux News 0 12-14-2005 02:16 AM
Rio forge mp3 player (UMS device) & Secure digital card mlaverdiere Linux - Hardware 5 06-24-2005 09:29 AM


All times are GMT -5. The time now is 11:52 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration