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
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