Re: Problem with 16-in-1 card reader

2006-03-20 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Damian Gerow [EMAIL PROTECTED] writes:
: Thus spake Alex Dupre ([EMAIL PROTECTED]) [11/03/06 22:18]:
: :  This problem has been discussed many times on the lists. In order to
: :  update devfs you can use:
: :  
: :  cat /dev/null  /dev/daX
: :  
: :  I seem to remember another method using dd.
: :  
: :  I hope this helps.
: : 
: : The 'cat' way works, thanks. Perhaps we should add this info somewhere
: : in a man page.
: 
: Really?  Isn't there a nicer way to do this?  i.e. Doesn't the card reader
: (or other USB-connected devices) notify that a disk/card/whatever has been
: removed or inserted?

There's no notification.

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


Re: Problem with 16-in-1 card reader

2006-03-12 Thread Damian Gerow
Thus spake Alex Dupre ([EMAIL PROTECTED]) [11/03/06 22:18]:
:  This problem has been discussed many times on the lists. In order to
:  update devfs you can use:
:  
:  cat /dev/null  /dev/daX
:  
:  I seem to remember another method using dd.
:  
:  I hope this helps.
: 
: The 'cat' way works, thanks. Perhaps we should add this info somewhere
: in a man page.

Really?  Isn't there a nicer way to do this?  i.e. Doesn't the card reader
(or other USB-connected devices) notify that a disk/card/whatever has been
removed or inserted?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with 16-in-1 card reader

2006-03-12 Thread Robert Marella
On Sun, 12 Mar 2006 01:32:01 +0100
Alex Dupre [EMAIL PROTECTED] wrote:

 Robert Marella wrote:
  This problem has been discussed many times on the lists. In order to
  update devfs you can use:
  
  cat /dev/null  /dev/daX
  
  I seem to remember another method using dd.
  
  I hope this helps.
 
 The 'cat' way works, thanks. Perhaps we should add this info somewhere
 in a man page.
 
 --
 Alex Dupre

It is a pleasure to be of assistance.

Have a great day.

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


Re: Problem with 16-in-1 card reader

2006-03-12 Thread Simon Dick
.. Original Message ...
On Sat, 11 Mar 2006 16:24:21 -0700 (MST) M. Warner Losh [EMAIL PROTECTED] 
wrote:
In message: [EMAIL PROTECTED]
Robert Marella [EMAIL PROTECTED] writes:
: On Sat, 11 Mar 2006 13:51:30 +0100
: Alex Dupre [EMAIL PROTECTED] wrote:
: 
:  My new PC has an internal 16-in-1 card reader connected via USB 2.0.
:  The device is the Techsolo TCR-1640
:  (http://www.techsolo.de/product/cardreader/tcr_1640/index.php).
:  I boot from a compact flash inserted in it and I can mount and unmount
:  the same CF once the system has booted and has mounted the root
:  partition from my graid3 array.
:  The problem arise when I replace the inserted CF with another one
:  (with different size and filesystem) and try to mount it. Fdisk can
:  correctly sees the new partition table, but devfs is not updated and
:  I cannot mount the new media. 
: 
: snip
: 
: Hello Alex
: 
: This problem has been discussed many times on the lists. In order to
: update devfs you can use:
: 
: cat /dev/null  /dev/daX
: 
: I seem to remember another method using dd.

dd if=/dev/null of=/dev/daX count=0

true /dev/daX
is my favourite due to typing length.

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


Re: Problem with 16-in-1 card reader

2006-03-12 Thread Edwin Groothuis
On Sun, Mar 12, 2006 at 01:32:01AM +0100, Alex Dupre wrote:
 Robert Marella wrote:
  This problem has been discussed many times on the lists. In order to
  update devfs you can use:
  
  cat /dev/null  /dev/daX
  
  I seem to remember another method using dd.
  
  I hope this helps.
 
 The 'cat' way works, thanks. Perhaps we should add this info somewhere
 in a man page.

Hmm... doesn't seem to do the trick with my Samsung SGH-D600 phone:

Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 
0 0 0 0 0 0 
Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): Medium not present
Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): Unretryable error
Mar 13 08:31:56 k7 kernel: Opened disk da0 - 6


[/home/edwin] [EMAIL PROTECTED]cat /dev/null  /dev/da0 
su: /dev/da0: Device not configured


I blame the phone at this momment :-)

Edwin
-- 
Edwin Groothuis  |Personal website: http://www.mavetju.org
[EMAIL PROTECTED]|  Weblog: http://weblog.barnet.com.au/edwin/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with 16-in-1 card reader

2006-03-12 Thread Edwin Groothuis
On Mon, Mar 13, 2006 at 08:33:31AM +1100, Edwin Groothuis wrote:
 On Sun, Mar 12, 2006 at 01:32:01AM +0100, Alex Dupre wrote:
  Robert Marella wrote:
   This problem has been discussed many times on the lists. In order to
   update devfs you can use:
   
   cat /dev/null  /dev/daX
   
   I seem to remember another method using dd.
   
   I hope this helps.
  
  The 'cat' way works, thanks. Perhaps we should add this info somewhere
  in a man page.
 
 Hmm... doesn't seem to do the trick with my Samsung SGH-D600 phone:

Don't forget these lines:

Mar 13 08:30:42 k7 kernel: umass0: Samsung SAMSUNG Mobile USB Modem, rev 
2.00/1.00, addr 2
Mar 13 08:30:43 k7 kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Mar 13 08:30:43 k7 kernel: da0:Removable Direct Access SCSI-0 device 
Mar 13 08:30:43 k7 kernel: da0: 1.000MB/s transfers
Mar 13 08:30:43 k7 kernel: da0: Attempt to query device size failed: NOT READY, 
Medium not present

 Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 
 0 0 0 0 0 0 0 
 Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status 
 Error
 Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check 
 Condition
 Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): Medium not present
 Mar 13 08:31:56 k7 kernel: (da0:umass-sim0:0:0:0): Unretryable error
 Mar 13 08:31:56 k7 kernel: Opened disk da0 - 6
 
 [/home/edwin] [EMAIL PROTECTED]cat /dev/null  /dev/da0 
 su: /dev/da0: Device not configured

Edwin
-- 
Edwin Groothuis  |Personal website: http://www.mavetju.org
[EMAIL PROTECTED]|  Weblog: http://weblog.barnet.com.au/edwin/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with 16-in-1 card reader

2006-03-11 Thread Benjamin Lutz
Hi Alex,

 My new PC has an internal 16-in-1 card reader connected via USB 2.0. The
 device is the Techsolo TCR-1640
 (http://www.techsolo.de/product/cardreader/tcr_1640/index.php).
 I boot from a compact flash inserted in it and I can mount and unmount
 the same CF once the system has booted and has mounted the root
 partition from my graid3 array.
 The problem arise when I replace the inserted CF with another one (with
 different size and filesystem) and try to mount it. Fdisk can correctly
 sees the new partition table, but devfs is not updated and I cannot
 mount the new media. I tried to issue all sort of camcontrol commands
 (rescan the bus, eject and load the device, ...) but the dev entries
 remain unchanged (equal as boot time) even if the card is inserted or
 removed (camcontrol tur can see if the media is ready or not).
 The system is a recent 6.1-PRERELEASE.

 Any ideas or suggestions?

Did you try to unplug the whole card reader, inserting the new CF card an then 
plugging it back into an USB port? It's /dev/da* entries should disappear 
once it's unplugged, and be newly created when it's reconnected.

Cheers
Benjamin


pgp2L7Gh70UQu.pgp
Description: PGP signature


Re: Problem with 16-in-1 card reader

2006-03-11 Thread Alex Dupre
Benjamin Lutz wrote:
 Did you try to unplug the whole card reader, inserting the new CF card an 
 then 
 plugging it back into an USB port? It's /dev/da* entries should disappear 
 once it's unplugged, and be newly created when it's reconnected.

Errr, there is a problem: the card reader is *internal* (it fits in a
3.5 slot). It's not so handy if I have to open the case and unplug the
usb cable everytime I insert a card.

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


Re: Problem with 16-in-1 card reader

2006-03-11 Thread Robert Marella
On Sat, 11 Mar 2006 13:51:30 +0100
Alex Dupre [EMAIL PROTECTED] wrote:

 My new PC has an internal 16-in-1 card reader connected via USB 2.0.
 The device is the Techsolo TCR-1640
 (http://www.techsolo.de/product/cardreader/tcr_1640/index.php).
 I boot from a compact flash inserted in it and I can mount and unmount
 the same CF once the system has booted and has mounted the root
 partition from my graid3 array.
 The problem arise when I replace the inserted CF with another one
 (with different size and filesystem) and try to mount it. Fdisk can
 correctly sees the new partition table, but devfs is not updated and
 I cannot mount the new media. 

snip

Hello Alex

This problem has been discussed many times on the lists. In order to
update devfs you can use:

cat /dev/null  /dev/daX

I seem to remember another method using dd.

I hope this helps.

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


Re: Problem with 16-in-1 card reader

2006-03-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Robert Marella [EMAIL PROTECTED] writes:
: On Sat, 11 Mar 2006 13:51:30 +0100
: Alex Dupre [EMAIL PROTECTED] wrote:
: 
:  My new PC has an internal 16-in-1 card reader connected via USB 2.0.
:  The device is the Techsolo TCR-1640
:  (http://www.techsolo.de/product/cardreader/tcr_1640/index.php).
:  I boot from a compact flash inserted in it and I can mount and unmount
:  the same CF once the system has booted and has mounted the root
:  partition from my graid3 array.
:  The problem arise when I replace the inserted CF with another one
:  (with different size and filesystem) and try to mount it. Fdisk can
:  correctly sees the new partition table, but devfs is not updated and
:  I cannot mount the new media. 
: 
: snip
: 
: Hello Alex
: 
: This problem has been discussed many times on the lists. In order to
: update devfs you can use:
: 
: cat /dev/null  /dev/daX
: 
: I seem to remember another method using dd.

dd if=/dev/null of=/dev/daX count=0

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


Re: Problem with 16-in-1 card reader

2006-03-11 Thread Alex Dupre
Robert Marella wrote:
 This problem has been discussed many times on the lists. In order to
 update devfs you can use:
 
 cat /dev/null  /dev/daX
 
 I seem to remember another method using dd.
 
 I hope this helps.

The 'cat' way works, thanks. Perhaps we should add this info somewhere
in a man page.

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