: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;

Reply via email to