LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 05-20-2004, 03:00 PM   #1
abcdef123
LQ Newbie
 
Registered: May 2004
Posts: 7

Rep: Reputation: 0
Packard Bell AudioKey 330 on Linux


Hello everybody,

I have a Packard Bell AudioKey 330 mp3 player and i want to use it under linux. I have looked up some tutorials on mounting usb sticks, but it doesn't work: linux (redhat 9) says it's not a valid block device, or it says it's read-only, or some other error messages.

The Audiokey exists of 2 drives: one SD / MMC card reader (the first drive in windows) which i don't use, and a flash memory with a FAT16 file system(the second drive in windows).

I can see only sda when I look for it in linux, and when I try to mount it, linux answers with errors. Does anybody know how I can use it?

Thank you!
 
Old 05-25-2004, 06:04 AM   #2
abcdef123
LQ Newbie
 
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
when i connect it to the usb port and i look at the kernel messages with tail -f /var/log/messages, it says that it is a bulk usb-storage with direct-access. in /proc/scsi/usb-storage-0 is a file called 0 which contains information about my audiokey.

but i can'ty mount it, it says it's read-only, write-protected etc.
 
Old 06-03-2004, 02:47 AM   #3
abcdef123
LQ Newbie
 
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I have solved my problem! The problem was that the RedHat 9.0 default kernel is not compiled with the option CONFIG_SCSI_MULTI_LUN set ON.
I don't know exactly which distributions have this option on or off.

You have to be logged in as root for my solution


For that reason, linux only probes the first LUN, and when you have multiple LUN's in your device (mp3 player: SD slot and internal flash memory, card reader: one reader for each card type, etc), you have to do the following:

1st way:

recompile your kernel with the option CONFIG_SCSI_MULTI_LUN set ON


2nd way (worked for me but is irritating because you have to repeat it each time you boot your computer if the scsi hosts are changed):

check to which scsi host your device is connected with
cat /proc/scsi/scsi
(this is necessary because you don't know before to which host it is connected: if I boot my computer with my mp3 player attached it is connected to scsi0, when i plug it in after the boot my cdrom-players are connected to that host and my mp3player is connected to scsi1)

then, read this first before executing the next command:
you have to change the firt and last digit of the four digits in the command.
The first digit is the scsi host your device is connected to. e.g if your device is connected to scsi1, you have to change the number to 1.
The last digit is the LUN you want to force the kernel to probe for. e.g. if you have two devices in your mp3 player, etc., you have to probe for LUN 0 and LUN 1, so set the digit to 0 or 1 (LUN 0 is probed automatically)
you have to repeat the command for each LUN that you want to probe for.

echo >/proc/scsi/scsi "scsi add-single-device 0 0 0 1"

with tail -f /var/log/messages you can check what happens if you connect your device (it displays the kernel messages but start it in a separate shell session because it doesn't stop)
you can use it to check which device you have to mount

now you can mount all the parts of your device with
mount /dev/sdx /mnt/map (replace x with the correct letter and replace map with the map you want to mount your device to

Last edited by abcdef123; 06-03-2004 at 02:52 AM.
 
  


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
Packard Bell Pc Cymro Linux - General 3 08-04-2009 11:38 AM
Pakard Bell AudioKey Logo jalotty Linux - Hardware 0 04-17-2005 10:36 AM
Linux installation on Packard Bell desktop m_amata Linux - Hardware 1 03-15-2005 10:58 AM
Packard Bell & Linux naqern Linux - Software 0 06-16-2003 06:29 AM
Packard Bell and Red Hat Linux??? ScreeminChikin Linux - Hardware 16 08-28-2002 04:16 PM


All times are GMT -5. The time now is 11:49 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration