From owner-freebsd-questions@FreeBSD.ORG Thu Mar 5 08:14:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4109106564A for ; Thu, 5 Mar 2009 08:14:16 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 5D4728FC24 for ; Thu, 5 Mar 2009 08:14:15 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([10.0.1.29]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Thu, 5 Mar 2009 09:14:14 +0100 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id n258ECPF002452; Thu, 5 Mar 2009 09:14:12 +0100 (CET) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Thu, 5 Mar 2009 09:14:07 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20090305081407.GA2242@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-STABLE (i386) X-OriginalArrivalTime: 05 Mar 2009 08:14:14.0375 (UTC) FILETIME=[5F100770:01C99D6A] Subject: USB key with 7.5 GByte but no space left on device after 4 GByte written X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2009 08:14:17 -0000 Hello, I've just bought a new USB key. The label claims "8 GByte" which is the first lying; it shows up as only ~7.5 GByte in /var/log/messages, but there seems to be another bigger problem: Mar 5 08:48:32 rebelion root: Unknown USB device: vendor 0x1307 product 0x0165 bus uhub4 Mar 5 08:48:33 rebelion kernel: umass0: on uhub4 Mar 5 08:48:33 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Mar 5 08:48:33 rebelion kernel: da0: Removable Direct Access SCSI-2 device Mar 5 08:48:33 rebelion kernel: da0: 40.000MB/s transfers Mar 5 08:48:33 rebelion kernel: da0: 7712MB (15794176 512 byte sectors: 255H 63S/T 983C) Mar 5 08:48:35 rebelion kernel: GEOM_LABEL: Label for provider da0 is msdosfs/pen disk. # mount -t msdosfs /dev/da0 /mnt Mar 5 08:50:18 rebelion kernel: GEOM_LABEL: Label msdosfs/pen disk removed. # df -kh /mnt Filesystem Size Used Avail Capacity Mounted on /dev/da0 7.5G 48K 7.5G 0% /mnt # ls -lh file total 3745826 -r--r--r-- 1 guru wheel 1,7G 16 may 2007 file # time cat file file file > /mnt/big cat: stdout: No space left on device 0.194u 13.064s 8:46.32 2.5% 10+1100k 33429+65536io 0pf+0w # ls -lh /mnt/big -rwxr-xr-x 1 root wheel 4,0G 5 mar 09:01 /mnt/big # df -kh /mnt Filesystem Size Used Avail Capacity Mounted on /dev/da0 7.5G 7.5G 0B 100% /mnt How is this possible that ls(1) shows 4G while df(1) 7.5G used? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/