Re: How to mount USB drive in FreeBSD 5.0?

2003-09-30 Thread Simon Rutishauser
Hi,

i had some problems which look similar to yours with an usb cardreader
_and_ an external hd.

After an upgrade to the latest "testing" (or whatever this is called ;-))
a month or so ago the problems vanished (even though FreeBSD still needs
about one minute to recognize my Cardreader)

Peschmä

Am Mon, 29 Sep 2003 00:39:57 +0200 schrieb Andreas Kohn:

> On Mon, 2003-09-29 at 00:44, [EMAIL PROTECTED] wrote:
>> On Sunday 28 September 2003 2:36 pm, Kent Stewart wrote:
>> > On Sunday 28 September 2003 11:13 pm, Frank Lee wrote:
>> >> On Sunday 28 September 2003 20:57, Andreas Kohn wrote:
>> >> > It doesn't even look like your usb drive is plugged in? Even if
>> >> > umass hadn't accepted it, ugen should have had attached (outputting
>> >> > some messages)
>> >>
>> >> ughh. well, it helps to plug it *all the way* in. :-( It's new
>> >> and I didn't want break it...
>> >>
>> >> The message I get is:
>> >> umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01,
>> >> addr 2 umass0: Get Max Lun not supported (STALLED)
>> >>
>> >> The system just halts there...
>> 
>> Let me clarify this statement. There's a On/Off switch on the drive.
>> It's when I turn it (usb drive) off, the messages scroll (which I'd post
>> if I could get them) and systems reboots. Happened twice. The third
>> time, it says it got disconnected and the system continues to run fine.
> 
> You could try two things:
> 1) If that is a kernel panic (which I assume), it should tell you that is
> going to reboot IFF you do not press a key on your keyboard. Pressing a
> key should stop the reboot timer and give you time to copy the message by
> hand.
> 2) What happens if you plug the drive in _after_ the system has started?
> 
> Dumbing down the drive should not be needed, as it can't (normally) do any
> USB 2.x stuff over a USB 1.1 link (ie. it should dumb down itself)
> 
> 
>> 
>> > I find that FreeBSD gets really confused if you have a msdos formatted
>> > zip in the zip drive when you boot.
>> 
>> It is a msdos formatted usb drive (2.5" laptop type drive in a
>> IDE-to-USB2.0 case). Not a zip drive, but thank you for sharing that
>> piece of info.
>> 
>> Frank Lee


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-29 Thread Bernd Walter
On Mon, Sep 29, 2003 at 06:13:23AM +, Frank Lee wrote:
> Since it stops at the "umass0: Get Max Lun not supported (STALLED)" message, 
> there's no /dev/da0* :

Your drive needs at least a NO_GETMAXLUN quirk in umass.c
Sigh - why do so many vendors think that specs can be ignored :(

-- 
B.Walter   BWCThttp://www.bwct.de
[EMAIL PROTECTED]  [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-28 Thread Andreas Kohn
On Mon, 2003-09-29 at 00:44, [EMAIL PROTECTED] wrote:
> On Sunday 28 September 2003 2:36 pm, Kent Stewart wrote:
> > On Sunday 28 September 2003 11:13 pm, Frank Lee wrote:
> >> On Sunday 28 September 2003 20:57, Andreas Kohn wrote:
> >> > It doesn't even look like your usb drive is plugged in? Even if
> >> > umass hadn't accepted it, ugen should have had attached (outputting
> >> > some messages)
> >>
> >> ughh. well, it helps to plug it *all the way* in. :-( It's new
> >> and I didn't want break it...
> >>
> >> The message I get is:
> >> umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01,
> >> addr 2 umass0: Get Max Lun not supported (STALLED)
> >>
> >> The system just halts there...
> 
> Let me clarify this statement. There's a On/Off switch on the drive.
> It's when I turn it (usb drive) off, the messages scroll (which I'd
> post if I could get them) and systems reboots. Happened twice. The
> third time, it says it got disconnected and the system continues to
> run fine.

You could try two things:
1) If that is a kernel panic (which I assume), it should tell you that
is going to reboot IFF you do not press a key on your keyboard. Pressing
a key should stop the reboot timer and give you time to copy the message
by hand.
2) What happens if you plug the drive in _after_ the system has started?

Dumbing down the drive should not be needed, as it can't (normally) do
any USB 2.x stuff over a USB 1.1 link (ie. it should dumb down itself)

> 
> 
> > I find that FreeBSD gets really confused if you have a msdos formatted
> > zip in the zip drive when you boot.
> 
> It is a msdos formatted usb drive (2.5" laptop type drive in a
> IDE-to-USB2.0 case). Not a zip drive, but thank you for sharing that
> piece of info.
> 
> Frank Lee
-- 
Andreas Kohn <[EMAIL PROTECTED]>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-28 Thread frank
On Sunday 28 September 2003 2:36 pm, Kent Stewart wrote:
> On Sunday 28 September 2003 11:13 pm, Frank Lee wrote:
>> On Sunday 28 September 2003 20:57, Andreas Kohn wrote:
>> > It doesn't even look like your usb drive is plugged in? Even if
>> > umass hadn't accepted it, ugen should have had attached (outputting
>> > some messages)
>>
>> ughh. well, it helps to plug it *all the way* in. :-( It's new
>> and I didn't want break it...
>>
>> The message I get is:
>> umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01,
>> addr 2 umass0: Get Max Lun not supported (STALLED)
>>
>> The system just halts there...

Let me clarify this statement. There's a On/Off switch on the drive.
It's when I turn it (usb drive) off, the messages scroll (which I'd
post if I could get them) and systems reboots. Happened twice. The
third time, it says it got disconnected and the system continues to
run fine.


> I find that FreeBSD gets really confused if you have a msdos formatted
> zip in the zip drive when you boot.

It is a msdos formatted usb drive (2.5" laptop type drive in a
IDE-to-USB2.0 case). Not a zip drive, but thank you for sharing that
piece of info.

Frank Lee
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-28 Thread Kent Stewart
On Sunday 28 September 2003 11:13 pm, Frank Lee wrote:
> On Sunday 28 September 2003 20:57, Andreas Kohn wrote:
> > It doesn't even look like your usb drive is plugged in? Even if
> > umass hadn't accepted it, ugen should have had attached (outputting
> > some messages)
>
> ughh. well, it helps to plug it *all the way* in. :-( It's new
> and I didn't want break it...
>
> The message I get is:
> umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01,
> addr 2 umass0: Get Max Lun not supported (STALLED)
>
> The system just halts there...

I find that FreeBSD gets really confused if you have a msdos formatted 
zip in the zip drive when you boot.

Kent

>
> If I turn it (usb drive) off or unplug it, a bunch of other messages
> scroll up and it tells me that it's going to reboot...
>
> > [assuming that umass hat attached to the usb drive]
> > There should be a new device node daX[sY] in /dev, which you should
> > mount.
> > mount -t msdos /dev/da0* /mnt/usb
> >
> > * Can't remember whether one needed to specify a slice
>
> Since it stops at the "umass0: Get Max Lun not supported (STALLED)"
> message, there's no /dev/da0* :
>
> # ls -l /dev/d*
> crw---  1 root  wheel  173,   0 Sep 29 05:41 /dev/devctl
> #
>
> Is there a way to have FreeBSD dumb it (usb drive) down to 1.1? The
> box says it (usb drive) supports 1.1 and 2.0). My laptop is only 1.1.

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-28 Thread Frank Lee
On Sunday 28 September 2003 20:57, Andreas Kohn wrote:
> It doesn't even look like your usb drive is plugged in? Even if umass
> hadn't accepted it, ugen should have had attached (outputting some
> messages)

ughh. well, it helps to plug it *all the way* in. :-( It's new and I 
didn't want break it...

The message I get is:
umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01, addr 2
umass0: Get Max Lun not supported (STALLED)

The system just halts there...

If I turn it (usb drive) off or unplug it, a bunch of other messages scroll up 
and it tells me that it's going to reboot...


> [assuming that umass hat attached to the usb drive]
> There should be a new device node daX[sY] in /dev, which you should
> mount.
> mount -t msdos /dev/da0* /mnt/usb
>
> * Can't remember whether one needed to specify a slice

Since it stops at the "umass0: Get Max Lun not supported (STALLED)" message, 
there's no /dev/da0* :

# ls -l /dev/d*
crw---  1 root  wheel  173,   0 Sep 29 05:41 /dev/devctl
#

Is there a way to have FreeBSD dumb it (usb drive) down to 1.1? The box says 
it (usb drive) supports 1.1 and 2.0). My laptop is only 1.1.

Thank you for the help!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-28 Thread Andreas Kohn
On Mon, 2003-09-29 at 07:26, Frank Lee wrote:
> On Sunday 28 September 2003 19:46, Andreas Kohn wrote:
> > On Mon, 2003-09-29 at 06:27, Frank Lee wrote:
> > > Hi all. My first FreeBSD post. :-)
> > >
> > > I have a USB drive (Win95 formatted) that I'm trying to dd data off of.
> > >
> > > - FreeBSD 5.0-Release
> > > - USB 2.0/1.1 drive.
> > > - laptop is 1.1
> > >
> > > How do I mount this USB drive? I done it on 4.7 with MAKEDEV and all, but
> > > can't find any info on getting it to mount in 5.0 (no MAKEDEV and all).
> > >
> > > Thank you,
> > > Frank Lee
> >
> > Hello,
> >
> > add umass (and scbus + da) to your kernel configuration (if not there
> > already), and it should be autodetected. Mounting should work like in
> > 4.7.
> >
> > In FreeBSD 5, devfs makes MAKEDEV unneccessary.
> >
> > If that still doesn't work, please post relevant messages to the list.
> 
> Thank you for your quick reply!
> 
> - The kernel is generic. So umass, scbus, and da are already in there.
> - "usbd" is running.
>   # ps auxw | grep usbd
>   root330  0.0  0.2  1144  680  ??  Ss3:40AM   0:00.01/usr/sbin/usbd
> - I noticed that the "USB modules" section in /boot/loader.conf was set to 
> "NO". So I copied that over to /boot and set them to "YES":
>   usb_load="YES"  # USB subsystem
>   udbp_load="YES" # USB double bulk pipe host 2 host cables
>   ugen_load="YES" # USB generic device, if all else fails ...
>   umass_load="YES"# Mass Storage Devices
> - rebooted and got (from dmesg):
> 
> Preloaded elf kernel "/boot/kernel/kernel" at 0xc0689000.
> Preloaded elf module "/boot/kernel/udbp.ko" at 0xc06890a8.
> Preloaded elf module "/boot/kernel/ugen.ko" at 0xc0689154.
> Preloaded elf module "/boot/kernel/umass.ko" at 0xc0689200.
> Preloaded elf module "/boot/kernel/uscanner.ko" at 0xc06892ac.
> Preloaded elf module "/boot/kernel/acpi.ko" at 0xc068935c.
> link_elf: symbol ng_newtype undefined
> KLD file udbp.ko - could not finalize loading
> module_register: module uhub/ugen already exists!
> Module uhub/ugen failed to register: 17
> module_register: module uhub/umass already exists!
> Module uhub/umass failed to register: 17
> module_register: module uhub/uscanner already exists!
> Module uhub/uscanner failed to register: 17
> Timecounter "i8254"  frequency 1193182 Hz
>  
> 
> So i guess I didn't need to set them to "YES"... :-\ 
Setting those to "YES" instructs the loader to load the respectively
named modules. So this would only be necessary if you hadn't compiled
them into your kernel. (Which is the reason for those "already exists"
messages)

>  And later in dmesg:
> 
> uhci0:  port 0xfce0-0xfcff irq 10 at 
> de
> vice 7.2 on pci0
> usb0:  on uhci0
> usb0: USB revision 1.0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> 
> 
> It may have detected that there's a drive...
> # usbdevs -v
> Controller /dev/usb0:
> addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
> Intel(0x), rev 1.00
>  port 1 powered
>  port 2 powered
> # usbdevs -d
> addr 1: UHCI root hub, Intel
>   uhub0
> #
> but if FreeBSD autodetected it, I, myself, am not detecting it. :( I guess I 
> forgot I how did it in 4.7 :(

It doesn't even look like your usb drive is plugged in? Even if umass
hadn't accepted it, ugen should have had attached (outputting some
messages)
> 
> But how do I mount it? I've tried:
> 
> # mkdir /mnt/usb
> # mount -t msdos /dev/usb /mnt/usb
> msdosfs: /dev/usb: Block device required
> # mount -t msdos /dev/usb0 /mnt/usb
> msdosfs: /dev/usb0: Block device required
> # mount -t msdos /dev/ad0s1a /mnt/usb
> msdosfs: /dev/ad0s1a: Device busy
> # mount -t msdos /dev/ad0s1b /mnt/usb
> msdosfs: /dev/ad0s1b: Device busy
> # mount -t msdos /dev/ad0s1c /mnt/usb
> msdosfs: /dev/ad0s1c: Invalid argument
> # mount_msdosfs /dev/ad0s1b /mnt/usb
> mount_msdosfs: /dev/ad0s1b: Device busy
> #
> 
[assuming that umass hat attached to the usb drive]
There should be a new device node daX[sY] in /dev, which you should
mount.
mount -t msdos /dev/da0* /mnt/usb

* Can't remember whether one needed to specify a slice

> Thanks for your help. The winning command itself would be nice :)
First thing before issueing a winning command is to have it detected =)

> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
-- 
Andreas Kohn <[EMAIL PROTECTED]>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-28 Thread Frank Lee
On Sunday 28 September 2003 19:46, Andreas Kohn wrote:
> On Mon, 2003-09-29 at 06:27, Frank Lee wrote:
> > Hi all. My first FreeBSD post. :-)
> >
> > I have a USB drive (Win95 formatted) that I'm trying to dd data off of.
> >
> > - FreeBSD 5.0-Release
> > - USB 2.0/1.1 drive.
> > - laptop is 1.1
> >
> > How do I mount this USB drive? I done it on 4.7 with MAKEDEV and all, but
> > can't find any info on getting it to mount in 5.0 (no MAKEDEV and all).
> >
> > Thank you,
> > Frank Lee
>
> Hello,
>
> add umass (and scbus + da) to your kernel configuration (if not there
> already), and it should be autodetected. Mounting should work like in
> 4.7.
>
> In FreeBSD 5, devfs makes MAKEDEV unneccessary.
>
> If that still doesn't work, please post relevant messages to the list.

Thank you for your quick reply!

- The kernel is generic. So umass, scbus, and da are already in there.
- "usbd" is running.
  # ps auxw | grep usbd
  root330  0.0  0.2  1144  680  ??  Ss3:40AM   0:00.01/usr/sbin/usbd
- I noticed that the "USB modules" section in /boot/loader.conf was set to 
"NO". So I copied that over to /boot and set them to "YES":
  usb_load="YES"  # USB subsystem
  udbp_load="YES" # USB double bulk pipe host 2 host cables
  ugen_load="YES" # USB generic device, if all else fails ...
  umass_load="YES"# Mass Storage Devices
- rebooted and got (from dmesg):

Preloaded elf kernel "/boot/kernel/kernel" at 0xc0689000.
Preloaded elf module "/boot/kernel/udbp.ko" at 0xc06890a8.
Preloaded elf module "/boot/kernel/ugen.ko" at 0xc0689154.
Preloaded elf module "/boot/kernel/umass.ko" at 0xc0689200.
Preloaded elf module "/boot/kernel/uscanner.ko" at 0xc06892ac.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc068935c.
link_elf: symbol ng_newtype undefined
KLD file udbp.ko - could not finalize loading
module_register: module uhub/ugen already exists!
Module uhub/ugen failed to register: 17
module_register: module uhub/umass already exists!
Module uhub/umass failed to register: 17
module_register: module uhub/uscanner already exists!
Module uhub/uscanner failed to register: 17
Timecounter "i8254"  frequency 1193182 Hz
 

So i guess I didn't need to set them to "YES"... :-\  And later in dmesg:

uhci0:  port 0xfce0-0xfcff irq 10 at 
de
vice 7.2 on pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered


It may have detected that there's a drive...
# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x), rev 1.00
 port 1 powered
 port 2 powered
# usbdevs -d
addr 1: UHCI root hub, Intel
  uhub0
#

but if FreeBSD autodetected it, I, myself, am not detecting it. :( I guess I 
forgot I how did it in 4.7 :(

But how do I mount it? I've tried:

# mkdir /mnt/usb
# mount -t msdos /dev/usb /mnt/usb
msdosfs: /dev/usb: Block device required
# mount -t msdos /dev/usb0 /mnt/usb
msdosfs: /dev/usb0: Block device required
# mount -t msdos /dev/ad0s1a /mnt/usb
msdosfs: /dev/ad0s1a: Device busy
# mount -t msdos /dev/ad0s1b /mnt/usb
msdosfs: /dev/ad0s1b: Device busy
# mount -t msdos /dev/ad0s1c /mnt/usb
msdosfs: /dev/ad0s1c: Invalid argument
# mount_msdosfs /dev/ad0s1b /mnt/usb
mount_msdosfs: /dev/ad0s1b: Device busy
#

# cat /etc/fstab
# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0
#

Thanks for your help. The winning command itself would be nice :)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to mount USB drive in FreeBSD 5.0?

2003-09-28 Thread Andreas Kohn
On Mon, 2003-09-29 at 06:27, Frank Lee wrote:
> Hi all. My first FreeBSD post. :-)
> 
> I have a USB drive (Win95 formatted) that I'm trying to dd data off of.
> 
> - FreeBSD 5.0-Release
> - USB 2.0/1.1 drive.
> - laptop is 1.1
> 
> How do I mount this USB drive? I done it on 4.7 with MAKEDEV and all, but 
> can't find any info on getting it to mount in 5.0 (no MAKEDEV and all).
> 
> Thank you,
> Frank Lee
> 
Hello,

add umass (and scbus + da) to your kernel configuration (if not there
already), and it should be autodetected. Mounting should work like in
4.7. 

In FreeBSD 5, devfs makes MAKEDEV unneccessary.

If that still doesn't work, please post relevant messages to the list.

HTH, 
-- 
Andreas Kohn <[EMAIL PROTECTED]>


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"