Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
Matthias Apitz wrote: to end this threat, I did: # dd if=/dev/zero of=/dev/da0 bs=64k count=1 # newfs_msdos /dev/da0 # mount -t msdosfs /dev/da0 /mnt # time cat file file file > /mnt/big cat: stdout: File too large 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w # df -kh /mnt FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G4.0G3.5G53%/mnt i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as free; the write speed is 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; matthias Probably I'm just making more noise; you didn't give any hardware details. Some manufacturers (I have a SanDisk Cruzer) are now putting multiple partitions on a flash stick; the Cruzer has one which, on Windows,emulates a CD-ROM drive (dunno why a CD emulation would take up 3.5 GB, tho). Kevin Kinsey -- It is sweet to let the mind unbend on occasion. -- Quintus Horatius Flaccus (Horace) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
On March 5, 2009, Matthias Apitz wrote: > El día Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar > to end this threat, I did: > > # dd if=/dev/zero of=/dev/da0 bs=64k count=1 > # newfs_msdos /dev/da0 > # mount -t msdosfs /dev/da0 /mnt > # time cat file file file > /mnt/big > cat: stdout: File too large > 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w > > # df -kh /mnt > FilesystemSizeUsed Avail Capacity Mounted on > /dev/da0 7.5G4.0G3.5G53%/mnt > > i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as > free; Seems to work as it should. The maximum allowed file size on a FAT32 file system is 4GB (-1 byte). See http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32 Cheers, -- Norbert Papke. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
El día Thursday, March 05, 2009 a las 03:26:12PM +0100, Paul B. Mahol escribió: > On 3/5/09, Matthias Apitz wrote: > > El dia Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar > > escribio: > > > >> >>formatted properly? > >> > > >> >I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; > >> >maybe I should do > >> > > >> ># newfs_msdos /dev/da0 > >> > > >> >??? > >> > >> to be sure do > >> > >> dd if=/dev/zero of=/dev/da0 bs=64k count=1 > >> > >> before to clean anything from beginning, if any mess is there. > > > > to end this threat, I did: > > > > # dd if=/dev/zero of=/dev/da0 bs=64k count=1 > > # newfs_msdos /dev/da0 > > # mount -t msdosfs /dev/da0 /mnt > > # time cat file file file > /mnt/big > > cat: stdout: File too large > > 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w > > > > # df -kh /mnt > > FilesystemSizeUsed Avail Capacity Mounted on > > /dev/da0 7.5G4.0G3.5G53%/mnt > > > > i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as > > free; > > > > the write speed is > > 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; > > > should'nt you first try to measure with dd(1) how da0 is big > before we start blaming msdosfs: > > # dd if=/dev/da0 of=/dev/null bs=1m ? I've not blamed anybody; please check the full thread; I've reported a problem with a lot of details and got help; the device is around 7.7G but wasn't useable like that as it was formated by the factory; nothing more; 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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
On 3/5/09, Matthias Apitz wrote: > El dia Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar > escribio: > >> >>formatted properly? >> > >> >I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; >> >maybe I should do >> > >> ># newfs_msdos /dev/da0 >> > >> >??? >> >> to be sure do >> >> dd if=/dev/zero of=/dev/da0 bs=64k count=1 >> >> before to clean anything from beginning, if any mess is there. > > to end this threat, I did: > > # dd if=/dev/zero of=/dev/da0 bs=64k count=1 > # newfs_msdos /dev/da0 > # mount -t msdosfs /dev/da0 /mnt > # time cat file file file > /mnt/big > cat: stdout: File too large > 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w > > # df -kh /mnt > FilesystemSizeUsed Avail Capacity Mounted on > /dev/da0 7.5G4.0G3.5G53%/mnt > > i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as > free; > > the write speed is > 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; should'nt you first try to measure with dd(1) how da0 is big before we start blaming msdosfs: # dd if=/dev/da0 of=/dev/null bs=1m ? -- Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
El día Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar escribió: > >>formatted properly? > > > >I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; > >maybe I should do > > > ># newfs_msdos /dev/da0 > > > >??? > > to be sure do > > dd if=/dev/zero of=/dev/da0 bs=64k count=1 > > before to clean anything from beginning, if any mess is there. to end this threat, I did: # dd if=/dev/zero of=/dev/da0 bs=64k count=1 # newfs_msdos /dev/da0 # mount -t msdosfs /dev/da0 /mnt # time cat file file file > /mnt/big cat: stdout: File too large 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w # df -kh /mnt FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G4.0G3.5G53%/mnt i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as free; the write speed is 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; 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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
formatted properly? I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; maybe I should do # newfs_msdos /dev/da0 ??? to be sure do dd if=/dev/zero of=/dev/da0 bs=64k count=1 before to clean anything from beginning, if any mess is there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
formatted properly? I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; maybe I should do # newfs_msdos /dev/da0 yes. anyway - windoze at least XP no more needs partitions on such devices. ??? 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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
El día Thursday, March 05, 2009 a las 01:09:27AM -0800, Charles Oppermann escribió: > > > > 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 > > > > msdosfs bug or strangely made msdos filesystem on that pendrive. > > if you use it FreeBSD only, clear first 4kB with dd, then do newfs and > > use as UFS > > if not - use newfs_msdos > > Wouldn't it be /dev/da0s1? Is it possible that the drive hasn't been > formatted properly? I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; maybe I should do # newfs_msdos /dev/da0 ??? 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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
> > 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 > > msdosfs bug or strangely made msdos filesystem on that pendrive. > if you use it FreeBSD only, clear first 4kB with dd, then do newfs and > use as UFS > if not - use newfs_msdos Wouldn't it be /dev/da0s1? Is it possible that the drive hasn't been formatted properly? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
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 FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G 48K7.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 msdosfs bug or strangely made msdos filesystem on that pendrive. if you use it FreeBSD only, clear first 4kB with dd, then do newfs and use as UFS if not - use newfs_msdos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"