PDA

View Full Version : how to mount a memory stick -> solution found


ogott
05-25-2003, 07:15 AM
hi!

i read a lot of mailing lists and forum topics on that and finally i found a way to get these memory sticks working under linux. i don't have any sony product, but i had the same error messages and therefore i think i should be the same problem.

my error was a message that the partition table couldn't been read altough everything seemed fine in /var/log/messages until i tried to access the stick. then i got I/O errors.

i found out that the only way that works here for me is patching the kernel to 2.4.21-rc3. i tried it with 2.4.18 and 2.4.20, but these don't work.
so i downloaded 2.4.20 (http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2 26,2 MB) and patched it to 2.4.21-rc3 with this patch: http://www.kernel.org/pub/linux/kernel/v2.4/testing/patch-2.4.21-rc3.bz2 3,7 MB

just download, then go to /usr/src/linux and do (as root) "tar xvfj /path/to/linux-2.4.20.tar.bz2". then you should have a directory called "linux-2.4.20" move it to linux-2.4.21-rc3 with "mv linux-2.4.20 linux-2.4.21-rc3". make a symbolic link to it "ln -s linux-2.4.21-rc3 linux". go into that directory and copy the patch into it "cp /path/to/patch-2.4.21-rc3.bz2 ." and unzip it "bunzip2 patch-2.4.21-rc3.bz2". now patch "patch -p1 < patch-2.4.21-rc3". finally, do a "make menuconfig" and select the options you desire (read the kernel howtos to know which ones you desire).
important are the following ones:
USB Support:
- Support for USB: y/m
- Host Controller Drivers: EHCI, UHCI or OHCI (if you dont know which one, compile all as modules): y/m
- Mass Storage Support: y/m

SCSI-Support:
- SCSI Support: y/m
- SCSI Disc Support: y/m

General Setup:
- Support for hot-pluggable devices: y

compile your kernel and the modules: "make dep && make bzImage && make modules && make modules_install" don't forget to install the kernel and the boot manager and all that stuff...

probably you have to install usbmgr, i don't know wheter it woks without it or not, but it should be shipped with your linux distribution.

finally, edit /etc/fstab with your favourite editor and add the following line:

/dev/sda1 /mp3 vfat rw,noauto,user 0 0

/dev/sda1 is probably the right one, if not you probably know how to find out which one works (maybe sdb, sdc, ...). /mp3 is my mountpoint. change it as you wish. vfat is the file system on the memory stick. noauto means that it doesn't get mounted at boot time, but only when the mount command is invoked. the rest shouldn't be that interesting.

now a simple "mount /mp3" works here for me. i hope i could help anyone. if you experience problems, just mail me: ogott at aon dot at

ogott

ogott
05-25-2003, 08:25 AM
hmm... i can't edit my post :-(

so, i found a mistake in my mini-howto: you don't have to untar the kernel source to /usr/src/linux but to /usr/src! please notice that.

i also found out that you don't need usbmgr, it workd perfectly without it.

ogott

vanRijn
08-28-2003, 06:07 PM
what device is this with? I believe that the OS 4 devices work flawlessly, but the OS 5 devices (like my NX70) don't work.

ogott
08-29-2003, 09:18 AM
well, i don't have such a device. i bought a "standalone" mp3-player called "MagicStar Combo" that has nothing to do with sony or clie or something else. the only thing that these memorysticks have in common are the error messages and kernel logs they produce.

when i plug it in, /var/log/messages says this:

Aug 29 16:13:50 hiigara kernel: hub.c: new USB device 00:02.3-2, assigned address 2
Aug 29 16:13:50 hiigara kernel: Manufacturer: AccFast
Aug 29 16:13:50 hiigara kernel: Product: AFMP3 Player
Aug 29 16:13:50 hiigara kernel: SerialNumber: 4710765066451
Aug 29 16:13:50 hiigara kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Aug 29 16:13:50 hiigara kernel: Vendor: AccFast Model: USB-MSC Disk IN Rev: T
Aug 29 16:13:50 hiigara kernel: Type: Direct-Access ANSI SCSI revision: 02
Aug 29 16:13:50 hiigara kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Aug 29 16:13:50 hiigara kernel: SCSI device sda: 255744 512-byte hdwr sectors (131 MB)
Aug 29 16:13:50 hiigara kernel: sda: Write Protect is off
Aug 29 16:13:50 hiigara kernel: sda: sda1


sorry, but i can't really tell you something usefull about your device. but if you get the same messages like me, i can probably help you.

ogott