When I try to copy more than 40MB onto an empty new 2GB usb pendrive, I get an
inexplicable `No space left on device' error message:
`11022008699.jpg' -> `/mnt/pendrive-carolina2/11022008699.jpg'
`11022008700.jpg' -> `/mnt/pendrive-carolina2/11022008700.jpg'
cp: cannot create regular file `/mnt/pendrive-carolina2/11022008700.jpg': No space left on device
`11022008701.jpg' -> `/mnt/pendrive-carolina2/11022008701.jpg'
cp: cannot create regular file `/mnt/pendrive-carolina2/11022008701.jpg': No space left on device
The command df seems to show that everything is all right:
# parted /dev/sda1
GNU Parted 1.7.1
Using /dev/sda1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Disk /dev/sda1: 2004MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00kB 2004MB 2004MB fat16
Please help understand what the problem may be. Should I format the device?
Thanks for any help
Rodolfo
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87iq2216mk.fsf@gmail.com">http://lists.debian.org/87iq2216mk.fsf@gmail.com
09-19-2010, 08:52 AM
Sven Joachim
Strange `No space left' on usb pendrive
On 2010-09-19 10:26 +0200, Rodolfo Medina wrote:
> When I try to copy more than 40MB onto an empty new 2GB usb pendrive, I get an
> inexplicable `No space left on device' error message:
>
>
> `11022008699.jpg' -> `/mnt/pendrive-carolina2/11022008699.jpg'
> `11022008700.jpg' -> `/mnt/pendrive-carolina2/11022008700.jpg'
> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008700.jpg': No space left on device
> `11022008701.jpg' -> `/mnt/pendrive-carolina2/11022008701.jpg'
> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008701.jpg': No space left on device
>
>
> The command df seems to show that everything is all right:
>
> $ df -lh
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda6 11G 9.2G 912M 92% /
> tmpfs 110M 0 110M 0% /lib/init/rw
> udev 10M 80K 10M 1% /dev
> tmpfs 110M 0 110M 0% /dev/shm
> /dev/hda1 7.8G 7.3G 541M 94% /mnt/hda1
> /dev/hda7 4.9G 1.9G 2.7G 42% /mnt/hda7
> /dev/hda8 4.9G 3.4G 1.3G 74% /mnt/hda8
> /dev/hda9 7.9G 2.7G 4.9G 36% /mnt/hda9
> /dev/sda1 1.9G 40M 1.9G 3% /mnt/pendrive-carolina2
>
>
> and so parted:
>
> # parted /dev/sda1
> GNU Parted 1.7.1
> Using /dev/sda1
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) p
>
> Disk /dev/sda1: 2004MB
> Sector size (logical/physical): 512B/512B
> Partition Table: loop
>
> Number Start End Size File system Flags
> 1 0.00kB 2004MB 2004MB fat16
>
>
> Please help understand what the problem may be. Should I format the device?
Not necessarily (unless you want a better filesystem), but you should
create some subdirectories and move files there. FAT16 has a rather low
limit of directory entries for the root directory¹, and you're hitting
that.
Switching to FAT32 will avoid that and also waste less disk space, since
the cluster size gets reduced to 4 KiB from 32 KiB with FAT16.
Sven
¹ http://en.wikipedia.org/wiki/Fat16#Final_FAT16
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87hbhm5d3w.fsf@turtle.gmx.de">http://lists.debian.org/87hbhm5d3w.fsf@turtle.gmx.de
09-19-2010, 10:41 AM
Erwan David
Strange `No space left' on usb pendrive
Le Sun 19/09/2010, Rodolfo Medina disait
> Hi all.
>
> When I try to copy more than 40MB onto an empty new 2GB usb pendrive, I get an
> inexplicable `No space left on device' error message:
>
>
> `11022008699.jpg' -> `/mnt/pendrive-carolina2/11022008699.jpg'
> `11022008700.jpg' -> `/mnt/pendrive-carolina2/11022008700.jpg'
> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008700.jpg': No space left on device
> `11022008701.jpg' -> `/mnt/pendrive-carolina2/11022008701.jpg'
> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008701.jpg': No space left on device
>
>
> The command df seems to show that everything is all right:
>
> $ df -lh
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda6 11G 9.2G 912M 92% /
> tmpfs 110M 0 110M 0% /lib/init/rw
> udev 10M 80K 10M 1% /dev
> tmpfs 110M 0 110M 0% /dev/shm
> /dev/hda1 7.8G 7.3G 541M 94% /mnt/hda1
> /dev/hda7 4.9G 1.9G 2.7G 42% /mnt/hda7
> /dev/hda8 4.9G 3.4G 1.3G 74% /mnt/hda8
> /dev/hda9 7.9G 2.7G 4.9G 36% /mnt/hda9
> /dev/sda1 1.9G 40M 1.9G 3% /mnt/pendrive-carolina2
>
What does df -i say ?
You might be out of inodes (depends on the filesystem of the key)
--
Erwan
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100919104148.GB161@rail.eu.org">http://lists.debian.org/20100919104148.GB161@rail.eu.org
09-19-2010, 11:15 AM
Rodolfo Medina
Strange `No space left' on usb pendrive
On 2010-09-19 10:26 +0200, Rodolfo Medina wrote:
> When I try to copy more than 40MB onto an empty new 2GB usb pendrive, I get an
> inexplicable `No space left on device' error message:
>
>
> `11022008699.jpg' -> `/mnt/pendrive-carolina2/11022008699.jpg'
> `11022008700.jpg' -> `/mnt/pendrive-carolina2/11022008700.jpg'
> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008700.jpg': No space left on device
> `11022008701.jpg' -> `/mnt/pendrive-carolina2/11022008701.jpg'
> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008701.jpg': No space left on device
>
>
> The command df seems to show that everything is all right:
>
> $ df -lh
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda6 11G 9.2G 912M 92% /
> tmpfs 110M 0 110M 0% /lib/init/rw
> udev 10M 80K 10M 1% /dev
> tmpfs 110M 0 110M 0% /dev/shm
> /dev/hda1 7.8G 7.3G 541M 94% /mnt/hda1
> /dev/hda7 4.9G 1.9G 2.7G 42% /mnt/hda7
> /dev/hda8 4.9G 3.4G 1.3G 74% /mnt/hda8
> /dev/hda9 7.9G 2.7G 4.9G 36% /mnt/hda9
> /dev/sda1 1.9G 40M 1.9G 3% /mnt/pendrive-carolina2
>
>
> and so parted:
>
> # parted /dev/sda1
> GNU Parted 1.7.1
> Using /dev/sda1
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) p
>
> Disk /dev/sda1: 2004MB
> Sector size (logical/physical): 512B/512B
> Partition Table: loop
>
> Number Start End Size File system Flags
> 1 0.00kB 2004MB 2004MB fat16
>
>
> Please help understand what the problem may be. Should I format the device?
Erwan David <erwan@rail.eu.org> writes:
> What does df -i say ?
> You might be out of inodes (depends on the filesystem of the key)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 874odmouh1.fsf@gmail.com">http://lists.debian.org/874odmouh1.fsf@gmail.com
> On 2010-09-19 10:26 +0200, Rodolfo Medina wrote:
>
> > When I try to copy more than 40MB onto an empty new 2GB usb pendrive, I get an
> > inexplicable `No space left on device' error message:
> >
> >
> > `11022008699.jpg' -> `/mnt/pendrive-carolina2/11022008699.jpg'
> > `11022008700.jpg' -> `/mnt/pendrive-carolina2/11022008700.jpg'
> > cp: cannot create regular file `/mnt/pendrive-carolina2/11022008700.jpg': No space left on device
> > `11022008701.jpg' -> `/mnt/pendrive-carolina2/11022008701.jpg'
> > cp: cannot create regular file `/mnt/pendrive-carolina2/11022008701.jpg': No space left on device
> >
> >
>
> Effectively, df -i produces a suspect output:
>
> $ df -i
> Filesystem Inodes IUsed IFree IUse% Mounted on
> /dev/hda6 1409024 147438 1261586 11% /
> tmpfs 28039 2 28037 1% /lib/init/rw
> udev 28039 512 27527 2% /dev
> tmpfs 28039 1 28038 1% /dev/shm
> /dev/hda1 0 0 0 - /mnt/hda1
> /dev/hda7 640000 14 639986 1% /mnt/hda7
> /dev/hda8 640000 51785 588215 9% /mnt/hda8
> /dev/hda9 525200 54395 470805 11% /mnt/hda9
> /dev/sda1 0 0 0 - /mnt/pendrive-carolina2
>
>
> What then?
Listen to what Sven Joachim is saying. The problem arises because
of FAT formatting. You can only put a certain number of files
(128??) in the root. Create a sub-directory and put your files in
there. Problem solved.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100919080828.20a5bbfd.debianlist@videotron.ca">h ttp://lists.debian.org/20100919080828.20a5bbfd.debianlist@videotron.ca
09-19-2010, 03:15 PM
Rodolfo Medina
Strange `No space left' on usb pendrive
On 2010-09-19 10:26 +0200, Rodolfo Medina wrote:
>> When I try to copy more than 40MB onto an empty new 2GB usb pendrive, I get
>> an inexplicable `No space left on device' error message:
>>
>>
>> `11022008699.jpg' -> `/mnt/pendrive-carolina2/11022008699.jpg'
>> `11022008700.jpg' -> `/mnt/pendrive-carolina2/11022008700.jpg'
>> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008700.jpg': No space left on device
>> `11022008701.jpg' -> `/mnt/pendrive-carolina2/11022008701.jpg'
>> cp: cannot create regular file `/mnt/pendrive-carolina2/11022008701.jpg': No space left on device
>>
>>
>> The command df seems to show that everything is all right:
>>
>> $ df -lh
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/hda6 11G 9.2G 912M 92% /
>> tmpfs 110M 0 110M 0% /lib/init/rw
>> udev 10M 80K 10M 1% /dev
>> tmpfs 110M 0 110M 0% /dev/shm
>> /dev/hda1 7.8G 7.3G 541M 94% /mnt/hda1
>> /dev/hda7 4.9G 1.9G 2.7G 42% /mnt/hda7
>> /dev/hda8 4.9G 3.4G 1.3G 74% /mnt/hda8
>> /dev/hda9 7.9G 2.7G 4.9G 36% /mnt/hda9
>> /dev/sda1 1.9G 40M 1.9G 3% /mnt/pendrive-carolina2
>>
>>
>> and so parted:
>>
>> # parted /dev/sda1
>> GNU Parted 1.7.1
>> Using /dev/sda1
>> Welcome to GNU Parted! Type 'help' to view a list of commands.
>> (parted) p
>>
>> Disk /dev/sda1: 2004MB
>> Sector size (logical/physical): 512B/512B
>> Partition Table: loop
>>
>> Number Start End Size File system Flags
>> 1 0.00kB 2004MB 2004MB fat16
>>
>>
>> Please help understand what the problem may be. Should I format the device?
Sven Joachim <svenjoac@gmx.de> writes:
> Not necessarily (unless you want a better filesystem), but you should
> create some subdirectories and move files there. FAT16 has a rather low
> limit of directory entries for the root directory¹, and you're hitting
> that.
>
> Switching to FAT32 will avoid that and also waste less disk space, since
> the cluster size gets reduced to 4 KiB from 32 KiB with FAT16.
Thanks. I switched to fat32: within parted, I did: `mkpartfs primary fat32'.
Now the problem seems to be solved.
Rodolfo
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87vd61ix31.fsf@gmail.com">http://lists.debian.org/87vd61ix31.fsf@gmail.com