No subject

Unknown Unknown
Sun Aug 12 11:38:20 PDT 2007


alhost>
From: Matthew Dillon <dillon at apollo.backplane.com>
Subject: Re: RealTek 8168B/8111B, new revision (ISO-request)
Date: Sun, 12 Aug 2007 11:34:28 -0700 (PDT)
BestServHost: crater.dragonflybsd.org
List-Post: <mailto:users at crater.dragonflybsd.org>
List-Subscribe: <mailto:users-request at crater.dragonflybsd.org?body=subscribe>
List-Unsubscribe: <mailto:users-request at crater.dragonflybsd.org?body=unsubscribe>
List-Help: <mailto:users-request at crater.dragonflybsd.org?body=help>
List-Owner: <mailto:owner-users at crater.dragonflybsd.org>
References: <20070808231508.794BD38912 at ikosaegor.lokales.netz> <200708091834.l79IYiMg008720 at apollo.backplane.com> <20070809225925.37AE338915 at ikosaegor.lokales.netz> <46BD1987.7070808 at online.de> <op.twv4n2k2xryfk7 at localhost> <ea7b9c170708110445x3964f3faqa2cd37d16276a855 at mail.gmail.com> <op.twwmvgbkxryfk7 at localhost> <46BE5536.9030200 at online.de> <20070812104112.DF514384BF at ikosaegor.lokales.netz> <200708121701.l7CH1SFf044133 at apollo.backplane.com> <op.twyjyud5xryfk7 at localhost> <op.twyj0br9xryfk7 at loc
alhost>
Sender: users-errors at crater.dragonflybsd.org
Errors-To: users-errors at crater.dragonflybsd.org
Lines: 39
NNTP-Posting-Host: 216.240.41.25
X-Trace: 1186944008 crater_reader.dragonflybsd.org 847 216.240.41.25
Xref: crater_reader.dragonflybsd.org dragonfly.users:9885

:Thanks for the hint, but actually I was trying to fdisk a USB stick.
:Kernel says the following when I plug it in:
:
:umass1: ChipsBnk Flash Disk, rev 2.00/1.00, addr 3
:da0 at umass-sim1 bus 1 target 0 lun 0
:da0: <ChipsBnk Flash Disk 4.00> Removable Direct Access SCSI-2 device
:da0: 1.000MB/s transfers
:da0: 1010MB (517375 2048 byte sectors: 64H 32S/T 252C)
:(da0:umass-sim1:1:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
:(da0:umass-sim1:1:0:0): NOT READY asc:3a,0
:(da0:umass-sim1:1:0:0): Medium not present
:
:In case it helps, I'll attach complete dmesg output.
:
:-- 
:Dennis den Brok

    Hmm.  Well, fdisk tries to autosense the sector size but I guess
    it isn't working as expected.

    Try this patch.

					-Matt

Index: fdisk.c
===================================================================
RCS file: /cvs/src/sbin/i386/fdisk/fdisk.c,v
retrieving revision 1.14
diff -u -p -r1.14 fdisk.c
--- fdisk.c	19 May 2007 21:43:32 -0000	1.14
+++ fdisk.c	12 Aug 2007 18:32:16 -0000
@@ -838,6 +838,7 @@ 	cyls = partinfo.d_ncylinders;
 	heads = partinfo.d_nheads;
 	sectors = partinfo.d_secpertrack;
 	cylsecs = heads * sectors;
+	secsize = partinfo.media_blksize;
     }
     dos_cyls = cyls;
     dos_heads = heads;





More information about the Users mailing list