LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-08-2008, 09:44 AM   #1
mriedel
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Is there a way to emulate a usb device?


Dunno if this is the right place to post it, couldn't really decide.

Anyway I was wondering whether there is a way to, say, create two partitions on a usb device, one of which is encrypted with cryptsetup/LUKS and then fool the system into believing the encrypted one is a standalone usb device after cryptsetup luksOpen'ing it without the decrypted partition being mounted anywhere.

In simpler terms I want /dev/mapper/sdX_crypt to appear as a (fake) usb device.

Ideally hotplugging would still work so that when I unplug the actual usb device (which will be used read-only), the mapper device disappears (making the system believe the fake usb device was just unplugged).
 
Old 07-09-2008, 05:41 AM   #2
mriedel
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
bump......
 
Old 08-21-2008, 07:42 AM   #3
Fabulatech
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
there is a special software which can solve your problem - USB over Network. As link dropping is not allowed, surf google for it.
 
Old 04-23-2009, 09:38 AM   #4
markosjal
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
USB device

I am looking for the same USB over Ethernet is not the solution. We are looking for a solutio to have a computer emulate a USB device.
 
Old 04-23-2009, 10:03 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
vhba does this for cdemu, it hooks into the kernel scsi layer to emulate a virtual cdrom device.

I never looked into its internals, but since usb drives are also hooked as scsi devices, I guess that in theory it should be possible to use vhba to also emulate an usb device. I am not completely sure since in the case of usb drives there's at least one more module involved which is the usb storage one.

Maybe the subforum for the kernel would be a better place to get feedback on this. You could also try to contact with the vhba author(s) and ask them if this is indeed possible or if you should be looking into any other direction.
 
  


Reply

Tags
device, emulation, encryption, usb, virtual


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
Linux Mini Distro Suggestion: Emulate USB Flash Disk layanto Linux - Software 4 04-25-2009 03:54 PM
Can Linux emulate an external USB hard? tells Linux - Server 1 01-01-2008 04:19 PM
Emulate USB drive krizzz Linux - Hardware 2 10-29-2007 04:46 PM
Emulate/simulate an USB (or COM) device Adony Linux - Software 4 04-15-2007 03:51 PM
Emulate USB floppy to boot from USB.. feasible? Q4U Linux - Hardware 1 01-31-2007 03:24 PM

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

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