Author Topic: C3000 Usb Host: Auto Mount And Umount Usb Hdd  (Read 40105 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #15 on: July 21, 2005, 02:29:58 am »
cant seem to get it to automount....I followed word for word, I can manually mount it but automount...forget it?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #16 on: July 21, 2005, 03:14:34 am »
Quote
cant seem to get it to automount....I followed word for word, I can manually mount it but automount...forget it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89002\"][{POST_SNAPBACK}][/a][/div]

why dont you try my automounter package?
it can mount up to four disks if you have a usb hub
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #17 on: July 21, 2005, 03:38:46 am »
Quote
Quote
cant seem to get it to automount....I followed word for word, I can manually mount it but automount...forget it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89002\"][{POST_SNAPBACK}][/a][/div]

why dont you try my automounter package?
it can mount up to four disks if you have a usb hub
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89003\"][{POST_SNAPBACK}][/a][/div]

i tried you script too, I pm'ed you:)

edit: ok way wierd now it works....when will I quit being a pain in the arse? Although a nice explaination of your script would be nice, how it works, how the system knows to run it etc...(for those who want to learn this)
« Last Edit: July 21, 2005, 03:41:41 am by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #18 on: July 23, 2005, 02:45:04 am »
Quote
Quote
Quote
cant seem to get it to automount....I followed word for word, I can manually mount it but automount...forget it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89002\"][{POST_SNAPBACK}][/a][/div]

why dont you try my automounter package?
it can mount up to four disks if you have a usb hub
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89003\"][{POST_SNAPBACK}][/a][/div]

i tried you script too, I pm'ed you:)

edit: ok way wierd now it works....when will I quit being a pain in the arse? Although a nice explaination of your script would be nice, how it works, how the system knows to run it etc...(for those who want to learn this)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89004\"][{POST_SNAPBACK}][/a][/div]

well, actually, I am pretty new to linux myself. I've always been a Windoze user for the desktop and Solaris for servers. Most my linux knowledge comes from reading TLD project (the linux documentation) and googling webforums.  I really recommend reading the online version of TLDP (www.tldp.org) or buying the paperback hardcopy. It's really worth a read.

Anyway, what you need to read up on is the hotplug mechanism in Linux. It's basically the way Linux handles plug'n'play. My script is just a hook into the hotplug mechanism which checks each the available scripts when it detects a device being plugged in and runs the associated script when it is unplugged. The script just needs to define a matching rule for what devices it needs to be run for and then does whatever is required to configure the device, in the case for a HDD, just mount it appropriately.

My script basically assumes there is the possibility to mount four harddrives so it checks for that and attempts to mount more drives when they are plugged in.  It also checks that the drive is not already mounted before it attempts to mount a drive. Also, I have taken the two most common options that are used to partition and format harddisk so if the disk falls into that category, the script is able to mount it, but if its one of the rarer cases, then it will fail to automount it and you will need to manually mount the disk.

The two most common type of partitions that I use quite often are:

1. the disk has one partition which is the primary partition
2. the disk has one or more partitions which are secondary partitions on a primary partition.

For case 2, only the first partition is mounted. The remaining partitions need to be mounted manually if there are any.

Most USB memory sticks, etc. will most likely be 1 and some MP3 players are 2. but some are 1. as well. For USB harddisk, it depends how people partition them, but again, 1. and 2. are the most common options I have seen. I personally use 2. for my USB disks. This way the disk will not interfere with Windows drive mapping when they are plugged into a Windows system. Windows reshuffles the drive letters, all primary partitions get drive letters assigned first before secondary partitions. So if you have C: D: E: and E: being a secondary partitions, if you plug in a USB disk which has a primary partition, the USB disk becomes E: and your former E: is reassigned as F:. If the USB disk has a drive on a secondary partition, then the USB disk is assigned the drive letter F: and E: is undisturbed.

Also, the Z by default only recognises linux native (ext2/ext3) and FAT/FAT32 (vfat, fat32, dos). If your disk is formatted using a different filesystem type, then the Z won't be able to mount it unless you install drivers for those types. I have installed the ntfs drivers as well so I can read Windows 2000/XP NTFS partitions as well.

Use google. There is a lot of info about linux out there. That's how I learned it  I never had a Linux desktop before. My Z is my first linux desktop. well kinda. I think of it as a mini Laptop.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Cagilaba

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #19 on: October 10, 2005, 05:17:48 pm »
I just got a 4GB Sitecom Mini Memory Drive (MD-202) http://www.sitecom.com/products_info.php?p...id=323&grp_id=1 . It's a small 1" hard drive.

Had some problems to start with -- for one thing it wouldn't spin up on battery power (only worked connected to a powered USB hub -- though I didn't try with Zaurus on external power). Then for the C1000 to actually mount it and write to it properly I had to eventually reformat the drive according to these useful instructions: https://oesf.org/index.php?title=Formating_..._Simultaneously

Seems to be working fine... not sure how long it will last, with its tiny mechanical parts...

Anyway, it automounts to /mnt/usbhdd now. But when my Zaurus suspends, the drive unmounts (in fact, when I resume the Z, the drive doesn't even show as connected when I do fdisk -l). Is there any way to avoid this? Is it bad for the drive? Can it cause data corruption / data loss (other than if the drive is in the middle of writing).
--
Zaurus SL-C1000. Cacko 1.23
1 Gb 80x Transcend SD -- 512 Mb 80x Transcend CF
Linksys WCF12 CF wifi card
Fellowes USB Stowaway Keyboard -- Sitecom USB Micro Hub -- Iogear USB Optical Mini Mouse
PDair case

Mac

  • Newbie
  • *
  • Posts: 36
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #20 on: October 13, 2005, 11:09:48 am »
Hi  Meanie, I installed your app   automounter-c3000_0.4.1_arm.ipk on a  C300 but it doesn't work for me, the usb-stick I tried is recognised but doesn't automount. I can manually mount them without a problem...

I also tried the usb-storage script, same thing, the USB-stick does not automount under the files tab... any idea ?
C3000 Sharp ROM
Dlink wifi - Belkin usb2lan
Billionton cf ethernet
512 mb SD

www.dinozaurus.com

bkudria

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #21 on: October 15, 2005, 01:43:48 pm »
I am unfortunately having the same problem on my 3100...the drive is recognized, but not mounted.  I can mount it with mount /mnt/usbhdd, but it will not mount manually?  It does seems to work for some people, but not for others...any help is appreciated!

Quote
Hi  Meanie, I installed your app   automounter-c3000_0.4.1_arm.ipk on a  C300 but it doesn't work for me, the usb-stick I tried is recognised but doesn't automount. I can manually mount them without a problem...

I also tried the usb-storage script, same thing, the USB-stick does not automount under the files tab... any idea ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99191\"][{POST_SNAPBACK}][/a][/div]

bkudria

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #22 on: October 21, 2005, 08:27:11 pm »
I emailed Meanie, and he recommends installing the 0.4.2 ipk.  He is right, it now works great!  The ipk is here:

http://www.users.on.net/~hluc/myZaurus/stu...0_0.4.2_arm.zip

Unzip, install, and it should work!

Mac

  • Newbie
  • *
  • Posts: 36
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #23 on: October 22, 2005, 04:44:21 am »
I installed the 0.4.2 ipk, and for my C3000 the situation isn't any better (actually is worse). The light on my usb stick keeps blinking so it looks like it's in a loop trying to mount it (and no icon shows up under the files tab...).
« Last Edit: October 22, 2005, 04:44:59 am by Mac »
C3000 Sharp ROM
Dlink wifi - Belkin usb2lan
Billionton cf ethernet
512 mb SD

www.dinozaurus.com

glennfoster

  • Newbie
  • *
  • Posts: 2
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #24 on: February 21, 2006, 05:37:47 am »
Does this page help?

Cant Mount iPod Error



G

Mac

  • Newbie
  • *
  • Posts: 36
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #25 on: February 21, 2006, 01:42:19 pm »
Nice try Glennfoster, but your link has nothing to do with the problem, and I don't think anyone will appreciate it that you spam the board with your link, trying to sell this "email"...
C3000 Sharp ROM
Dlink wifi - Belkin usb2lan
Billionton cf ethernet
512 mb SD

www.dinozaurus.com

Mac

  • Newbie
  • *
  • Posts: 36
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #26 on: February 24, 2006, 07:14:00 am »
this is solved for me by installing the automounter-C3000 version 0.4.6.  , USB sticks are mounted OK now.

one question, is it possible to unmount using the GUI or do I have to unmount using the CLI?
C3000 Sharp ROM
Dlink wifi - Belkin usb2lan
Billionton cf ethernet
512 mb SD

www.dinozaurus.com

glennfoster

  • Newbie
  • *
  • Posts: 2
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #27 on: March 04, 2006, 09:34:29 am »
Quote
Nice try Glennfoster, but your link has nothing to do with the problem, and I don't think anyone will appreciate it that you spam the board with your link, trying to sell this "email"...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115609\"][{POST_SNAPBACK}][/a][/div]

I didnt spam the board, simply i moved it from free hosting to paid for hosting so i can build up information about iPods!

doh!

Oh, and thats what that email pays for, my hosting.

And yes my method does work providing your iPod isnt broken.

Mac

  • Newbie
  • *
  • Posts: 36
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #28 on: March 04, 2006, 11:42:03 am »
if you read the thread you'll notice that it has nothing to do with iPods...
C3000 Sharp ROM
Dlink wifi - Belkin usb2lan
Billionton cf ethernet
512 mb SD

www.dinozaurus.com

mikew

  • Full Member
  • ***
  • Posts: 193
    • View Profile
C3000 Usb Host: Auto Mount And Umount Usb Hdd
« Reply #29 on: April 27, 2006, 10:54:11 am »
Can anyone tell me how I gain access to a storage device attached to the USB port.

Storage tab in System Info identifies the card reader as
Vendor:
Product: USB OHCI Root Hub
Class: HUB
ID: 0000/0000
Driver: hub

And the SD card as

Product: CS8819A2
Class: Mass Storage
ID: 04cf/8819
Driver usb-storage

But I can't access them via any file explorer.

Does this mean they are not mounted or it does not have the correct drivers to access them.

Any help would be apreciated as I want to use the new functions now that I have upgraded from a C760 to C3200.


Mike
C3200, C760 Cacko 1.23 ROM, 1gb SD, 1gb CF, WiFi, Imate Jasjar & Psion Netbook