OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

4 Pages V  « < 2 3 4  
Reply to this topicStart new topic
> Usbapplet, my first attempt
Meanie
post Aug 13 2010, 08:05 AM
Post #46





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(xamindar @ May 16 2010, 06:48 PM) *
QUOTE(xamindar @ Oct 4 2008, 02:59 AM) *
I'm using a powered usb hub. When I plug more than one usb drive into it only the first is mounted and shows in the files tab. I can mount a second one manually so I know they work. Just wondering why this applet and/or the automount package doesn't do more than one.

No one ever responded to this so I decided (2 years later wink.gif) to look into it myself. The /etc/hotplug/usb/usb-storage script is what is called when a drive is inserted and it will by default mount up to 4 drives (sda-sdd). If you connect one flash drive it will run through, check for a remove script and if it does not exist will then go ahead and mount the drive by looking for each of the four in turn. Then, once it is done mounting it will create a remove link under /var/run/usb/. If you then connect a second drive afterwards the script will run again and first check for any remove scripts which in this case will exist and therefore it will not try to mount anything else.
On the other hand, if I plug four flash drives into a usb hub and then afterwards plug that hub into the Zaurus the script will run and because there is no remove link yet it will run through and mount all four drives in the first go. Drives can be unmounted individually from the usb tray applet but ALL have to be physically disconnected from the zaurus before it will remove that remove link and allow mounting new drives again.
I'm not sure why whoever made this automounter (meanie?) decided to make it this way but it isn't very robust at all. Of course, I'm not very skilled with hotplug as the zaurus is the only linux I have that still uses it. Oh well, good enough as long as you understand how this usb-storage script is working. Maybe a simple change to the script to check if the drive is already mounted before trying to mount it instead of looking for that remove script would fix it. I'll try it but it may be that way for a reason.

I mainly put this here so in the future when I again try to figure this out I will remember where I left off.


Yeah that was my fault. Back then when I wrote it I was a Linux n00b.
Go to the top of the page
 
+Quote Post
Snappy
post Aug 15 2010, 07:33 AM
Post #47





Group: Members
Posts: 793
Joined: 28-November 04
From: NM, US, sometimes Asia
Member No.: 5,633



Hi folks, how has everyone been? smile.gif
Go to the top of the page
 
+Quote Post
Meanie
post Sep 6 2010, 04:55 AM
Post #48





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(Snappy @ Aug 16 2010, 01:33 AM) *
Hi folks, how has everyone been? smile.gif


Life has been too busy. No time to to develop anything new for the Zaurus, but I am still using it.
Go to the top of the page
 
+Quote Post
xamindar
post Sep 6 2010, 10:16 AM
Post #49





Group: Members
Posts: 803
Joined: 30-March 04
From: California
Member No.: 2,368



QUOTE(Meanie @ Sep 6 2010, 05:55 AM) *
QUOTE(Snappy @ Aug 16 2010, 01:33 AM) *
Hi folks, how has everyone been? smile.gif


Life has been too busy. No time to to develop anything new for the Zaurus, but I am still using it.

Great to see you are still around. I still refer to your website on occasion. I haven't found anything to replace my Zaurus yet and am starting to think I never will.
Go to the top of the page
 
+Quote Post

4 Pages V  « < 2 3 4
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd July 2014 - 05:24 AM