From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 12:19:19 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61B9437B401 for ; Tue, 22 Apr 2003 12:19:19 -0700 (PDT) Received: from mail.dada.it (mail3.dada.it [195.110.100.3]) by mx1.FreeBSD.org (Postfix) with SMTP id A057A43FE1 for ; Tue, 22 Apr 2003 12:19:12 -0700 (PDT) (envelope-from riccardo@torrini.org) Received: (qmail 9160 invoked from network); 22 Apr 2003 19:19:02 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 22 Apr 2003 19:19:02 -0000 Received: from trudy.torrini.home (localhost.torrini.home [127.0.0.1]) by torrini.org (8.12.9/8.12.9) with ESMTP id h3MJJ3NB049464; Tue, 22 Apr 2003 21:19:03 +0200 (CEST) (envelope-from riccardo@trudy.torrini.home) Received: (from riccardo@localhost) by trudy.torrini.home (8.12.9/8.12.9/Submit) id h3MJJ2Ps049463; Tue, 22 Apr 2003 21:19:02 +0200 (CEST) Date: Tue, 22 Apr 2003 21:19:02 +0200 From: Riccardo Torrini To: ticso@cicely.de, Dan Pelleg Message-ID: <20030422191902.GC2843@trudy.torrini.home> References: <20030417191637.GA505@trudy.torrini.home> <20030418002448.GH10848@cicely9.cicely.de> <20030418075945.GB4089@trudy.torrini.home> <20030418104635.GL10848@cicely9.cicely.de> <20030419144150.GC13310@trudy.torrini.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030419144150.GC13310@trudy.torrini.home> User-Agent: Mutt/1.4.1i cc: freebsd-current@FreeBSD.ORG Subject: Re: usb cf reader X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 19:19:19 -0000 On Sat, Apr 19, 2003 at 04:41:50PM +0200, Riccardo Torrini wrote: >> Do you get any kernel message with fdisk da0? > I attacched _ALL_ my /var/log/messages, the same messages I got on > console, no any other message, neither on shell nor on log file. > Only those I already attached. [...] > Nothing happens in the middle. After connecting device I tryed many > times with fdisk with all /dev/da0* I can imagine ([a-z], s[1-4], > and so on) and dd with the same device. Nothing happens. Now I try > to rebuild all modules with extra debug. Stay tuned... Sorry for delay. I got a new world. Same results :\ # uname -v FreeBSD 5.0-CURRENT #59: Sat Apr 19 19:47:40 CEST 2003 ... # camcontrol devlist -v scbus0 on ahc0 bus 0: < > at scbus0 target -1 lun -1 () scbus1 on umass-sim0 bus 0: at scbus1 target 0 lun 0 (pass0,da0) scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) # camcontrol periphlist 1:0:0 pass0: generation: 4 index: 1 status: MORE da0: generation: 4 index: 2 status: LAST # ls -ln /dev/da0 /dev/da0s1 /dev/da0s2 /dev/da0s3 /dev/da0s4 ls: /dev/da0s1: No such file or directory ls: /dev/da0s2: No such file or directory ls: /dev/da0s3: No such file or directory ls: /dev/da0s4: No such file or directory crw-r----- 1 0 5 4, 20 Apr 20 10:01 /dev/da0 -----8<----- Apr 22 21:00:41 trudy kernel: \ umass0: DataFab Systems Inc. USB CF, rev 1.10/3.06, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: \ Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 15MB (31488 512 byte sectors: 64H 32S/T 15C) -----8<----- # fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl) fdisk: invalid fdisk partition table found fdisk: /boot/mbr: length must be a multiple of sector size C/H/S are the same from fdisk and from messages. Anyway, dd should work, I'm right? # dd if=/dev/da0 | hd 0+0 records in 0+0 records out 0 bytes transferred in 0.010953 secs (0 bytes/sec) No, there are no messages, neither on console nor on /var/log/* :\ # fdisk /dev/da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl) fdisk: invalid fdisk partition table found fdisk: /boot/mbr: length must be a multiple of sector size # fdisk /dev/da0s1 fdisk: cannot open disk /dev//dev/da0s1: No such file or directory Uh? # fdisk /foo/bar/da0s1 fdisk: cannot open disk /dev//foo/bar/da0s1: No such file or directory I think it should use user provided device, not last tryed with /dev/ attached in front of (imvho :-) -- Riccardo.