FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-19-2010, 08:26 AM
Rodolfo Medina
 
Default Strange `No space left' on usb pendrive

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


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?

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
 
Old 09-19-2010, 08:52 AM
Sven Joachim
 
Default 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
 
Old 09-19-2010, 10:41 AM
Erwan David
 
Default 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
 
Old 09-19-2010, 11:15 AM
Rodolfo Medina
 
Default 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)


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?

Thanks
Rodolfo


--
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
 
Old 09-19-2010, 12:08 PM
Frank
 
Default Strange `No space left' on usb pendrive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 19 Sep 2010 13:15:06 +0200
Rodolfo Medina <rodolfo.medina@gmail.com> wrote:

> 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.


- --
- -- Frank --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMlf08AAoJEMEDyLTvrVhjvSwH/0CBX6G4sJHDZ4LWaJ8+6Yg0
zS/3KUzFGBmD3BQVYe0jj/Fj6TbfZ0yV5MkjiQRvfK/eNU8ptsNV6g/hglgdLcC+
DqAUGbxFm9xX9psDF2+O3YrgU7XWSw25VCYOITTRqr6iE6ujcG O/abQkb3tsD8Ep
YvQudutnFV7+jFu6YsDf3wJOfHsURb3mP1aVMLRww4LP8rAUYb 4OARHPPesLssmR
xOBo3XQFHTfyF+pPSUUvVUd3tmuZOGcC5vBcMoV8SuxXRdJ6K1 eIcV0NzJbtXcUV
yziOJEUyUDTUAToBnDUvq+wJM0Z6nJAbfC9DInOeGNzNrazB7U 9E0jHPlWRYTCU=
=nB5M
-----END PGP SIGNATURE-----


--
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
 
Old 09-19-2010, 03:15 PM
Rodolfo Medina
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org