PDA

View Full Version : How to mount a memory stick with the nx70v?


Kromur
03-21-2003, 08:53 AM
Hi.
I own a nx70v, and i tried to mount the memory stick via MSimport. When, as root, i use the command:

mount -t vfat /dev/scsi sda <directory>

bash sais that

mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file systems

Can somebody help me with that? This system works with all os4 pda, but it seems to have problems with os5.

dwarchbold
03-21-2003, 09:03 AM
Here's what I use:

mount -t vfat /dev/sda1 /mnt/clie

Substitute /dev/sda1 for your SCSI device. Also, make sure you have the proper kernel support (either built-in or modules).

This site has a lot of good info:
http://homepages.nildram.co.uk/~milnber/cliehowto.html

Kromur
03-21-2003, 09:53 AM
It does'nt work. I only have "sda" under /dev.

When i tail /var/log/messages, here's what i get:

Mar 21 17:04:45 Zenit kernel: SCSI device (ioctl) reports ILLEGAL REQUEST.
Mar 21 17:04:45 Zenit kernel: Device busy for revalidation (usage=1)
Mar 21 17:04:45 Zenit kernel: I/O error: dev 08:00, sector 0
Mar 21 17:04:45 Zenit kernel: FAT: unable to read boot sector
Mar 21 17:04:45 Zenit kernel: SCSI device (ioctl) reports ILLEGAL REQUEST.
Mar 21 17:04:45 Zenit kernel: SCSI device sda: 253696 512-byte hdwr sectors (130 MB)
Mar 21 17:04:45 Zenit kernel: sda: Write Protect is off
Mar 21 17:04:45 Zenit kernel: /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Mar 21 17:04:45 Zenit kernel: I/O error: dev 08:00, sector 0
Mar 21 17:04:45 Zenit kernel: unable to read partition table


I DON'T have to recompile the kernel, do i?

zipslack
03-24-2003, 06:35 PM
Try using "autofs" instead of "vfat" and see if that works (you lose long filename support). If that doesn't work either, your stick probably has a bad file/directory which you can only fix by formatting (speaking from experience). Move all your stuff to anothe stick or to RAM (use compression, if necessary) and then format it using MS-Gate or other file manager. Move everything back and re-do your app settings. It should work right then.

I may be wrong on this, but it happend that way for me. One day I could access it, the next I couldn't. Turned out there was a filesystem problem under /palm/rograms/msfile that wouldn't allow me to delete the file or the directory. After re-formatting, everything is kosher again.

cyclone
03-28-2003, 05:04 PM
I think I've found a clue to mounting the NX-70 memory stick (which I've found no evidence anyone has managed to do). I just bought a new digital camera, and when trying to mount it on Linux saw the same symptom as the Clie, that is, "mount: /dev/sda1 is not a valid block device". A bit of digging turned up the need to add the camera's device ID to /usr/linux/src/drivers/usb/storage/unusual_devs.h, then typing "make modules" from /usr/linux/src, then copy usb-storage.o from the above directory to /lib/modules/2.4.whatever/kernel/drivers/usb/storage (may vary depending on your distribution), then rebooting. Once I did this I could mount the camera's internal memory with no problem.

Following this line of reasoning, I found several other entries in unusual_devs.h which reference Sony memory stick products. I used usbview to determine the USB ID for the NX-70 (0x054c, 0x00d9), and created a new entry:

UNUSUAL_DEV( 0x054c, 0x00d9, 0x0000, 0x9999,
"Sony",
"Clie Mass Storage",
US_SC_8070, US_PR_CB, NULL,
US_FL_SINGLE_LUN | US_FL_START_STOP ),

Upon building, copying, and rebooting, I got farther, in that I no longer got an error message when selecting "MS Import" from the Clie (and the Clie would show up in /var/log/messages). The mount still didn't work, but I think it may have to do with the set of options "US_SC_8070, US_PR_CB, NULL, US_FL_SINGLE_LUN | US_FL_START_STOP )". The various memory stick entries in unusual_devs.h have different combinations of these; I tried a few, but none quite worked. Does anyone know enough about these to have a sense of what combination might be right?

Bill

mrbjg4
04-01-2003, 08:44 PM
Does your NX say "connected to PC"? I tried to mount last week with same exact results as you. And it says connected. I changed fstab properly, and diskdrake shows sda device, but it does not recognize my MS format. I reformatted an old 32 MB stick but it still does not recognize it. I'm not sure where to go from here, but I sure would like to xfer files to the stick without rebooting into windows. Using mdk9

Good luck, i'll let you know if I figure anything out.
mrbjg

Kromur
04-02-2003, 07:06 AM
Yes, the CLič says it is connected with the computer... anyway, i'll try to do what cyclone said, and see if it works...

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

i just wrote this:
http://www.cliesource.com/forums/showthread.php?threadid=15531
maybe that helps...

ogott