Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - recognize usb after boot: (8 Items)
   
recognize usb after boot  
I am running Momentics development suite 6.3.2.  If I have a usb hard drive plugged in on boot it is recognized and all 
is fine.  If I plug one in after boot the device shows in /dev but is not automounted.  How do I get it to automount or 
(pnp).  The pnp is turned off in the bios as suggested for install.
Re: recognize usb after boot  
Hello Ann,
Please make sure umass-enum is running.

Example of possible parameters:
umass-enum -h hd -d /dev -m /fs/hd -f /proc/boot/umass-enum.cfg

Also check that the usb drive is properly initialized (dinit for QNX 4 disks and partitions, mkdosfs for DOS).
Regards,
Yuriy
 
Re: recognize usb after boot  
Hi Yuriy,
The problem may be specific to one disk.  I have now tried other usb disks and memory stick and they work fine.
For the disk in question, I have formatted it as a Dos Fat32 on a windows machine.  It works fine as a dos disk on the 
qnx machine as long as I have it plugged in before booting.  I have written information to the drive (from the qnx box) 
and all appears fine.  The disk is a 32 GB IDE solid state drive in an external enclosure running on a x86 machine.   
Could there be an option in the mkdosfs that I need to use to make it fully compatible?
Thanks, Ann
RE: recognize usb after boot  
One other possibility is not having a partition table on the disk.  If
there's no partition table, then it's possible that umass-enum doesn't
know what type of file system is on the disk and therefore can't
auto-mount it. Did you use fdisk on the drive to create a partition
before creating the DOS filesystem?



-----Original Message-----
From: Ann Weickmann [mailto:ann.weickmann@noaa.gov] 
Sent: Tuesday, June 24, 2008 12:24 PM
To: general-community
Subject: Re: recognize usb after boot

Hi Yuriy,
The problem may be specific to one disk.  I have now tried other usb
disks and memory stick and they work fine.
For the disk in question, I have formatted it as a Dos Fat32 on a
windows machine.  It works fine as a dos disk on the qnx machine as long
as I have it plugged in before booting.  I have written information to
the drive (from the qnx box) and all appears fine.  The disk is a 32 GB
IDE solid state drive in an external enclosure running on a x86 machine.
Could there be an option in the mkdosfs that I need to use to make it
fully compatible?
Thanks, Ann

_______________________________________________
General
http://community.qnx.com/sf/go/post9604
Re: RE: recognize usb after boot  
I made a dos fat32 partition using the windows box.  
If I plug in the hard drive after the boot I see /dev/hd10.  If I do an fdisk /dev/hd10  I see type 12 and all the 
cylinders etc assigned.  So I believe there is a partition present. 
The  /dev/hd10t12 and /fs/hd10-dos-1 designations are not present.

If I boot with the drive installed, /dev/hd10,  /dev/hd10t12, and /fs/hd10-dos-1 all appear. 
Re: RE: recognize usb after boot  
Hello Ann,
Please try:

# mkdosfs /dev/hd10
Check whether the USB disk without partitions will be auto mounted (it does in my case).  
Regards,
Yuriy
Re: RE: recognize usb after boot  
Hi Yuriy,
I did a fresh boot,  plugged in the hard drive, verified /dev/hd10 existed, then typed
mkdosfs /dev/hd10

A few seconds later the following appeared:
Format complete: FAT32 (4096-byte clusters) 31918440 kB available

No partition (/dev/hd10t12) appeared.  I rebooted, plugged in the drive and nothing was different, just /dev/hd10 was 
present.

Ann
Re: RE: recognize usb after boot  
The problem has been solved... I noticed that after the drive was plugged in the umass-enum died.  I could manually 
start it, plug in the device and it would die again.  So I took the drive out of the case, removed the jumper (no docs) 
and plugged back in. There was alot more led activity indicating a change.
I then did the mkdosfs, fdisk and a chkdosfs and all had positive results.  I could see /dev/hd10, /dev/hd10t12 and the 
chkdosfs came back fine. I still had no entry in the /fs so I tried 
mount -t dos /dev/hd10t12 /fs/hd10-dos-1
this resulted in a corrupted file system message.  As a test I deleted and redefined the partition as type 11 and the 
results were the same.

During this time I could plug and unplug the device from the usb incurring no problems with umass-enum.  So I decided to
 take the usb drive back to a windows box and format as fat32.  When I plugged the device back into the booted qnx box 
it came up as /dev/hd10, partition /dev/hd10t12 and /fs/hd10-dos-1.  If the drive is plugged in on boot this also works 
just fine.

So it looks like all this could have been avoided by removing the jumper and formating disk as dos on the windows 
machine at the start.  I still dont understand why the I could not mount the device after formatting on the qnx box.  ??
?

Thanks for your help,
Ann