Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi. I just got a Samsung YP-T7JX (512MB MP3 player/photo viewer) - as far as I can see it is similar to an iPod Shuffle. I am running a few boxen, but lets start with this Mandrake 2006. system, with kernel 2.6.12.
# uname -a
shows:
Linux beastie 2.6.12-11mdk #1 Sun Aug 28 19:07:22 CEST 2005 i686 AMD Athlon(tm) XP 1800+ unknown GNU/Linux
The device shows up when I plug it into my USB 2.0 port:
# lsusb
shows:
Bus 004 Device 003: ID 04e8:5047 Samsung Electronics Co., Ltd
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
and
# dmesg | tail
shows:
device eth0 entered promiscuous mode
ohci_hcd 0000:00:02.2: wakeup
ohci_hcd 0000:00:02.3: wakeup
usb 4-1: new high speed USB device using ehci_hcd and address 2
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 4-1: USB disconnect, address 2
usb 4-1: new high speed USB device using ehci_hcd and address 3
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
(I plugged and unplugged it a few times, and I don't think the scsi message applies to this device, but I could be wrong)
I can mount other USB devices (like my 1.1 Minolta DImage 7 camera) just fine.
What commands to I need to get read/write access to this device? I want to be able to copy files (mp3s and jpgs) onto the player. I think that it is pre-formatted as FAT32. The device itself comes only with support for WinXP/Media Player 10.
I don't have XP, so I don't know, but the documentation implies that you can see it, and copy things to it, using Windows Explorer - (kinda like a DAV drive?) so I think that it does.
How do I tell whether I've got those SCSI options enabled?
So, the device is there, but the USB-SCSI Mass Storage emulation does not fire up?
Finally,
#tail -f /var/log/messages (when I plug it in)
Dec 21 11:27:29 beastie kernel: usb 4-1: new high speed USB device using ehci_hcd and address 6
Dec 21 11:27:29 beastie hal.dev[17053]: DEVNAME is not set
Dec 21 11:27:29 beastie hal.dev[17069]: DEVNAME is not set
and created a new initrd with scsi Max_Luns now set to 128..
# Edit the /etc/modules.conf file.
# Add the following line:
* options scsi_mod max_scsi_luns=128
Note: If you already have a max_scsi_lun option in the modules.conf file, ensure that the value is set to 128 or 256. If you are using a 2.6 kernel distribution, replace max_scsi_luns with max_luns.
but no go - I still can see the device attaching, as per above, but it does not invoke the USB SCSI emulation, so I can't mount it.
try "modprobe sd_mod"
if that doesn't give you any errors then do "dmesg | tail"
This is what my dmesg looks like when i plug in my samsung yp-c1x:
Code:
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
Vendor: Samsung Model: YP-C1 Rev: 2001
Type: Direct-Access ANSI SCSI revision: 04
SCSI device sda: 1011712 512-byte hdwr sectors (518 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 1011712 512-byte hdwr sectors (518 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
I previously had trouble setting up a usb memory stick because i didn't have sd_mod loaded. Under linux usb storage devices are handled as scsi devices so you need scsi disk support either compiled into the kernel or as a module(in the case of a module, sd_mod needs to be loaded).
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 4-2: new high speed USB device using ehci_hcd and address 2
usb 4-2: USB disconnect, address 2
usb 4-1: new high speed USB device using ehci_hcd and address 3
That is, I don't get the critical line:
scsi0 : SCSI emulation for USB Mass Storage devices
that you do.
# fdisk -l does not show any devices in the /dev/sd* tree, only
Disk /dev/hda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1020 8193118+ 83 Linux
/dev/hda2 1021 21478 164328885 5 Extended
/dev/hda5 1021 1124 835348+ 82 Linux swap
/dev/hda6 1125 6096 39937558+ 83 Linux
/dev/hda7 6097 21478 123555883+ 83 Linux
Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 944 7582648+ 83 Linux
/dev/hdb2 945 1580 5108670 5 Extended
/dev/hdb5 945 1071 1020096 82 Linux swap
/dev/hdb6 1072 1580 4088511 83 Linux
Any more ideas? I must be close...
btw, this thing comes up like a flash drive with no trouble -and no drivers needed - in XP (I borrowed a friend's laptop to see)..
I got this same player for my wife's christmas present, it's a really cool little thing. I have the same problem, and I'm on Fedora Core 4, with kernel 2.6.14-1.1653_FC4. When I do a tail -f /var/log/messages and plug in the device, I get this:
Dec 28 17:41:01 localhost kernel: usb 1-6: new high speed USB device using ehci_hcd and address 13
Dec 28 17:42:23 localhost kernel: usb 1-6: USB disconnect, address 13
No device node gets created in /dev, and I don't even get that bit about the USB mass storage module being loaded.
After googling around and reading man udev and man hotplug, I added this rule to /etc/udev/rules.d/50-udev.rules:
Now I get a device node created when I plug it in, but when I go to mount it, I get:
[root@localhost device]# mount /dev/mp3 -t vfat /mnt/mp3
mount: /dev/mp3 is not a block device
[root@localhost dev]# file usbdev1.14
usbdev1.14: character special (189/13)
What gives? This is supposed to be a regular mass-storage device. I think our problem is with either udev or hotplug. As a side note, my sony camera mounts just fine as a scsi device, but it's not a USB2.0 high speed device.
Thanks for your response, and the informative link. After reading some of the links in the wiki article, I'm still holding out hope that mtp will be implemented for linux (without all the DRM junk)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.