LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 12-30-2008, 06:56 AM   #1
DieVirulenz
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Mounting an USB-Device as CD-Rom


Hello to everyone on this forum.

As you can see this is my first post here and I will give my best to do it in a proper way. But if I happen to forget anything or just do it wrong (ie. wrong Forum, forgot any details, etc.), my apologies. Just bare with me, for I´m here for your help and will take any steps necessary to achieve it. Also I have to admit I only come across Linux or Unix based systems at work from time to time, so my experiences are limited but still I´m willing to learn what I need to know.

That said here comes my problem:

I work for a company wich produces banking-USB-devices. We got a support call from a customer who operates an Ubuntu 8.10 system. On his machine the USB-Stick when plugged in is mounted as an CD-Rom drive. We set up a similar system over here, but here of course the stick is mounted as it should be.

So my question is:
How can we reproduce that behavior?
Or does anyone around here know why this might happen?

I tried Google of course but all I manged to pinpoint so far is that it might be caused by installing Ubuntu from an USB-device in the first place. Still I´m a bit lost here and thought maybe someone with more experience could shed some light on it.

If there are any question feel free to ask, I´ll try to answer asap.

Thanks in advance and for setting up such a great place for newbies like me!
 
Old 12-30-2008, 07:24 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,896

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Welcome to LinuxQuestions.

You will have to further explain your banking-USB-device and how it is designed to function. Is it just a regular flash drive? There still might be some differences between your customer and the similar system. Do you have any details about the customer's system other then running Ubuntu?
 
Old 12-30-2008, 08:01 AM   #3
DieVirulenz
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions.
Thanks

Quote:
Originally Posted by michaelk View Post
You will have to further explain your banking-USB-device and how it is designed to function. Is it just a regular flash drive?
No it isn´t. It´s a usb-dongle with a flash memory and an
integrated (SIM-) cardreader. So the "flash-part" is usually mounted as /dev/usb/hiddev0 under /mount/M-IDentity, but I´m not sure if that is the kind of information you need. Would you need a productID or Vendor or anything?


Quote:
Originally Posted by michaelk View Post
There still might be some differences between your customer and the similar system. Do you have any details about the customer's system other then running Ubuntu?

Unfortunaltey not yet. We are currently inquiring for more details. All we know is that he is on a Ubuntu 8.10. I will post more info as soon as I get them.

Thanks for the quick response

greetings
Nicholas

EDIT: Just wanted to add I just got a big Log-File created on the customers machine, but I´m not sure if it might be of any service. Ought I post it or attach it? Anyways I also received a screenshot which might be of more help...

These are the error messages the customer gets when plugging in the device:
http://img240.imageshack.us/img240/1...rmfoto5hs3.jpg

Maybe this helps anyone to get a better hold of where the problem lies? Are those maybe "common" errors or something?

thanks again for your patients and time!

Last edited by DieVirulenz; 12-30-2008 at 08:18 AM. Reason: additional info received
 
Old 12-30-2008, 08:12 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,896

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
A first guess would be to take a look at udev.
 
Old 12-30-2008, 08:40 AM   #5
DieVirulenz
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Ok that´s what I got about the udev rules from the log file:

Code:
--------------- Udev-Rules-INFO ------------
/etc/udev/rules.d/20-names.rules:SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
/etc/udev/rules.d/20-names.rules:# Legacy usb_device class equivalent to above
/etc/udev/rules.d/20-names.rules:SUBSYSTEM!="usb_device", GOTO="usb_device_end"
/etc/udev/rules.d/20-names.rules:IMPORT{program}="usb_device_name --export %k"
/etc/udev/rules.d/20-names.rules:LABEL="usb_device_end"
/etc/udev/rules.d/40-permissions.rules:SUBSYSTEM=="usb_device", GOTO="usb_serial_start"
/etc/udev/rules.d/40-permissions.rules:SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="usb_serial_start"
/etc/udev/rules.d/45-libmtp7.rules:SUBSYSTEM=="usb_device", GOTO="libmtp_usb_device_rules"
/etc/udev/rules.d/45-libmtp7.rules:LABEL="libmtp_usb_device_rules"
/etc/udev/rules.d/024_hpmud.rules:SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
/etc/udev/rules.d/024_hpmud.rules:SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
/etc/udev/rules.d/85-brltty.rules:SUBSYSTEM!="usb_device", GOTO="brltty_rules_end"
/etc/udev/rules.d/45-libnjb.rules:SUBSYSTEM!="usb_device", ACTION!="add", GOTO="libnjb_rules_end"
/etc/udev/rules.d/40-basic-permissions.rules:SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
/etc/udev/rules.d/40-basic-permissions.rules:SUBSYSTEM=="usb_device",		MODE="0666"
/etc/udev/rules.d/45-libmtp8.rules:SUBSYSTEM=="usb_device", GOTO="libmtp_usb_device_rules"
/etc/udev/rules.d/45-libmtp8.rules:LABEL="libmtp_usb_device_rules"
/etc/udev/libmtp.rules:SUBSYSTEM=="usb_device", GOTO="libmtp_rules"
/etc/udev/libmtp8.rules:SUBSYSTEM=="usb_device", GOTO="libmtp_usb_device_rules"
/etc/udev/libmtp8.rules:LABEL="libmtp_usb_device_rules"
 
Old 12-30-2008, 09:01 AM   #6
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,285
Blog Entries: 1

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by DieVirulenz View Post
Maybe this helps anyone to get a better hold of where the problem lies?
If we could get the output of "dmesg" or the contents of "/var/log/messages", that would probably help us more. Then we might be able to see why the kernel is detecting the device as a CD-ROM, instead of a hard drive.
 
Old 12-31-2008, 09:26 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
USB key with "CD file system" ( CDFS )

> > Sandisk U3 technology
http://www.everythingusb.com/u3.html

( googling .. make u3 usb .. )

It is done by a proprietary tool, some of the tools
are available for windowsXP, e.g. for erasing cdfs.
....

Last edited by knudfl; 12-31-2008 at 11:51 AM.
 
Old 12-31-2008, 04:25 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,896

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
knudfl, From the information provided it is not a U3 device. The exact function was not mentioned but probably some kind of software license key sometimes referred to as a dongle.
 
  


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
USB device not mounting crimbo Linux - Hardware 3 02-05-2007 07:42 PM
Mounting USB DVD-ROM on connect gravitek Linux - Hardware 4 01-03-2007 03:01 AM
Problem in mounting CD ROM and USB rohitjun Linux - General 4 04-20-2006 02:36 AM
Block Device and CD-Rom Mounting Alybyzrp Linux - Newbie 12 10-28-2003 07:45 AM
mounting cd-rom(not a valid block device) reidstev Linux - Hardware 5 11-12-2002 12:04 PM


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