Date: Thu, 5 Mar 2009 09:14:07 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-questions@freebsd.org Subject: USB key with 7.5 GByte but no space left on device after 4 GByte written Message-ID: <20090305081407.GA2242@rebelion.Sisis.de>
next in thread | raw e-mail | index | archive | help
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: <USBest Technology USB Mass Storage Device, class 0/0, rev 2.00/1.00, addr 2> 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: <Ut165 USB2FlashStorage 0.00> 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 <matthias.apitz@oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090305081407.GA2242>