LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-06-2005, 11:44 AM   #1
ampersand
LQ Newbie
 
Registered: Oct 2004
Distribution: fedora core 3, ubuntu
Posts: 12

Rep: Reputation: 0
Rio Forge mp3 player, flash card access


so I got a rio forge and it is neat. The first time I plugged it into FC3 it reads the player and lets me drop files into and everything is good, however it does not read the 512mb SD expansion card. So I have done some looking around and people had the same problem and said they solved it by adding this line "/dev/sdb1 /mnt/usbsdb1 auto defaults,user,noauto,showexec,umask=022 0 0" in their /etc/fstab, so I did that. However when I try to open it after plugging in my rio it comes up with an error no mount point so I created a dir in my /mnt and now when I click on the drive link it says "mount: special device /dev/sdb1 does not exist" so I am at a loss as to what to do next. I found out about the fstab changes in this thread http://www.linuxquestions.org/questi...&highlight=rio
so any help would be much appreciated.
 
Old 02-07-2005, 05:57 AM   #2
mlaverdiere
LQ Newbie
 
Registered: Jul 2004
Posts: 20

Rep: Reputation: 0
Hi,

You're using Fedora, right? Is it possible that your device is located elsewhere: Ex: /dev/usb/sdb1, /dev/sdb0, /dev/sdb2?

The best thing for you would be to plug your Riof Forge, than open a terminal, and issue the command "dmesg". Look at the end of the output, you should see someting like this:

Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Rio Model: Forge Rev: 0151
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 501504 512-byte hdwr sectors (257 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Vendor: Rio Model: Forge Rev: 0151
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 1984000 512-byte hdwr sectors (1016 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun1: p1
Attached scsi removable disk sdb at scsi0, channel 0, id 0, lun 1
USB Mass Storage device found at 2
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.


This output means that I can access the Rio Forge internal memory at /dev/sda1 and the SD card at /dev/sdb1.

With the output you get, try to figure out where your device are located and put the appropriate line in /etc/fstab. You wight have to try different options before it works.... You shouldn't be too far....

In my case, here's what I had to do to make it work:

1. Make sure that have the relevant following lines in my /etc/fstab file:

/dev/sda1 /mnt/usbsda1 auto defaults,user,noauto,showexec,umask=022 0 0
/dev/sdb1 /mnt/usbsdb1 auto defaults,user,noauto,showexec,umask=022 0 0

2. Make sure to create the needed directories in /mnt, i.e. /mnt/usbsda1 and /mnt/usbsdb1

3. Try to mount thing by clicking on KDE device icons, or with the wollowing command line:

mount /dev/sda1
mount /dev/sdb1


Good luck!
 
Old 02-15-2005, 03:08 PM   #3
ampersand
LQ Newbie
 
Registered: Oct 2004
Distribution: fedora core 3, ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
OK so my dmesg output only shows sda which is the rio forge's internal memory. There is nothing in the output concerning a sdb or anything else that would lead me to believe that it is finding the internal flash card.
here is what dmesg outputs
usb 4-1: new full speed USB device using ohci_hcd and address 2
usb 4-1: not running at top speed; connect to a high speed hub
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
Vendor: Rio Model: Forge Rev: 0151
Type: Direct-Access ANSI SCSI revision: 04
usb-storage: device scan complete
SCSI device sda: 248576 512-byte hdwr sectors (127 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 248576 512-byte hdwr sectors (127 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
SELinux: initialized (dev sda1, type vfat), uses genfs_contexts

So I do not have any idea what to do from here. Btw the internal flash card is a 512mb card. The device is 128mb
 
Old 02-18-2005, 01:43 AM   #4
ampersand
LQ Newbie
 
Registered: Oct 2004
Distribution: fedora core 3, ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
OK, OK, OK I have figured it out after 2 months of fiddling I have discovered the awful truth, actually it was pretty simple.
SO if the whole dmesg thing is not outputting anything about an sda and sdb, or just two devices in one in general then the next possiblity could be that the MAX_LUNS is set to one. So there are two ways to fix this, if you are using fedora core 3 like myself it was pretty simple
all you have to do is plug in the mp3 player or any device that has multiple reader slots. My MP3 player has both internal memory and a SD flash card( the other possiblity is a muti-slot flash card reader. So fedora was reading the internal memory just fine, but it never could find the flash card. So the problem seems to be in the kernel it is not looking for mor e than one memory slot or whatever.
What you have to do is tell it to look for the second location
Now with fedora core 3 you can directly tell it to search for another location here is how:


Some distributions (notably Red Hat) turn off the kernel option CONFIG_SCSI_MULTI_LUN. This prevents usb-storage from automatically detecting all the devices in your removable storage device. You can either recompile your kernel with this option enabled or (if your distribution supports this) add the following line to /etc/modules.conf;

options scsi_mod max_scsi_luns=15

If you do not want to do this for all SCSI devices then you can tell the kernel to scan for a specific device using;

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

The first zero is the host id (so it is zero if this is your first "SCSI" adapter, check "cat /proc/scsi/scsi" to see which is your USB Storage device), the second the channel (which for usb-storage should always be zero I believe), the third is the target (which again is always 0 for usb-storage) and the last is the LUN. LUN 0 is the only one probed if this kernel option is off, so you'd need to repeat this command as root for every media type your device accepts increasing the LUN number.
(this was taken from http://www.linux-usb.org faq)

The thrid option worked perfectly for me, so now I need to figure out how to turn this into a script and I will be set or find the module.conf file anyways so that is a problem solved.

Last edited by ampersand; 02-18-2005 at 01:45 AM.
 
Old 02-18-2005, 05:50 AM   #5
mlaverdiere
LQ Newbie
 
Registered: Jul 2004
Posts: 20

Rep: Reputation: 0
Glad you've fond the solution. Didn't know that it could be this tricky...

If you want to automate the process, go with the modification of the /etc/modules.conf file, like suggested in the howto, but don't forget to run the update-modules command after to make your changes effective.

Ciao!
 
Old 12-14-2005, 02:20 PM   #6
xtremeharley
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
MP3 problems

I have a rio forge and its not reading the 512 card I have added. I've read about putting in some code or something but I don't have a clue as to what these guys are saying. I would really like to get this mp3 player going so I don't have to toss it out.
 
  


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
Flash Drive or MP3 Player, slow access underscorelinux Linux - Software 0 10-05-2005 10:48 AM
Rio forge mp3 player (UMS device) & Secure digital card mlaverdiere Linux - Hardware 5 06-24-2005 09:29 AM
Trying to mount a Rio Riot 20gb mp3 player Trance56k Linux - Newbie 1 02-24-2005 12:22 PM
How to start JRioUtil for Rio MP3 Player Lakota Linux - Software 1 12-30-2004 08:08 AM
rio 500 MP3 player via USB Laura Programming 2 04-07-2003 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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