LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-14-2005, 09:32 AM   #1
FISICO
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
/dev/sg0 access...how ?


Hi. I'm posting because I'm confused about something. I have a Creative Zen Micro Mp3 Player that works perfectly on a Debian system. The player has 2 working modes. The first one allows you to upload songs and the other mode called "removable disk" allows you to upload data files such as images, programs and all kind of files. I have read somewhere a post on how to mount this "removable disk" and it was a success on the debian box. At home I use slackware 10.1 and it has (because I built the kernel by my own) full built-in USB support, as a matter of fact I'm able to upload music via the gnomad2 program. I followed steps on how to make working the removable mode (success on the debian box, failed in the Slackware box) :

1 - Look in /proc/bus/usb/devices (I see at home some info, that means that USB is working fine).
2 - Install sg3-utils package. I did this and installed the tools without any problem.
3 - Run the "sg_scan -i" command. Did it and got this :

/dev/sg0: scsi0 channel=0 id=0 lun=0 [em]
CREATIVE Zen Micro (UMS) 0001 [rmb=1 cmdq=0 pqual=0 pdev=0x0]

4 - Run the "sg_map" to determine the real SCSI device associated with your reader. Did this too and in the Debian box I got :

/dev/sg0 /dev/sda

So I can mount it without any problem by running : mount /dev/sda /media/usb.

NOW if I run the "sg_map" command in Slackware I got

/dev/sg0

So it means that /dev/sg0 is associated to nowhere. I took a look at the /dev directory and for my surprise I couldn't find /dev/sda. I must have sda in order to mount the device.
I tried "mount /dev/sg0 /mnt/usb" but as I expected it didn't work.
Any suggestions ?. Why don't I have sda ?. I didn't deleted "sda" in any time and the usb support is working right. I think that SCSI generic support is working too so what should I do ?.

Thanks everybody.
 
Old 11-20-2005, 08:50 AM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
I don't know your solution either but lets find out what is happening here:

tail -f /var/log/messages

look what happens when you connect the device
here it is possible that you see the devices (/dev/sxxxx)

( for this kind of devices I'd consider to use a 'udev' rule, but to make this
you need at least some info which you don't have right now)

greet tlowk
 
  


Reply



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
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
/dev/sg0 -> cdrw device Tuttle Linux - General 0 07-06-2004 12:28 PM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
Cannot change sg0 and scd0 permissions even as root Patrique Linux - Software 1 06-09-2004 04:08 AM
I have overwritten /dev/fd0! How do I recreate /dev/fd0 to access my floppy? drscott1 Linux - Newbie 2 02-19-2004 12:37 PM

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

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