LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-18-2007, 07:55 PM   #1
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 624

Rep: Reputation: 55
No space left on device even though it has free space?


How can a drive appear full when its not. I've reformatted but still can't use all of it.

cp: writing `/mnt/usbdrive/enine/Pictures/2005 Aniversery/im002591-800x600.jpg': No space left on device
root@darkstar:/home/enine# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 9381028 7467780 1412828 85% /
/dev/hda4 93232360 78665180 9831220 89% /home
/dev/sdc1 57685532 32232976 22522304 59% /mnt/usbdrive
 
Old 04-18-2007, 08:08 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
how much data are you trying to move. Looks like you've got about 2 gigs available. The cp command probably writes it to a temp file first, then to permanent storage, so it needs to use twice as much space as the amount of data you're writing.
 
Old 04-19-2007, 06:03 AM   #3
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 624

Original Poster
Rep: Reputation: 55
just a bunch of little 4m pictures
 
Old 04-19-2007, 08:54 AM   #4
SlackerJack
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11.0
Posts: 28

Rep: Reputation: 15
Maybe you're running out of inodes?

Try:
df -i

Whats your permissions?
mount | grep -i usbdrive
 
Old 04-19-2007, 12:12 PM   #5
samash
Member
 
Registered: Jun 2006
Location: Delaware
Distribution: Redhat, Fedora
Posts: 43

Rep: Reputation: 15
Make sure your not mounting a directory with data in it. Common mistake.
 
Old 05-23-2007, 08:20 PM   #6
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 624

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by SlackerJack
Maybe you're running out of inodes?

Try:
df -i

Whats your permissions?
mount | grep -i usbdrive

Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb1 7325696 52729 7272967 1% /mnt/usbdrive

looks like I'm only using 1% of my inodes on it? Or does that mean only 1% is free?

hmm, df -T says its ext2 instead of ext3, maybe thats the difference, I can't recall the ext2 limits now.
 
Old 05-24-2007, 08:27 AM   #7
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
Quote:
just a bunch of little 4m pictures
How many is a bunch and how are they organized? FAT has a terrible and not-well-documented limit for files/directories on the root of a partition. The limit is 512 if all files are named in 8.3 format. When using long names, though, every 13 characters consumes another file entry. EG: Your filename from the first post, 16 characters long, needs the same number of file entries as two files that are only 11 characters each.

This limit only affects the root of a partition. It's annoying but easily worked around by organizing files into subdirectories. I personally think there should be a warning on usb disk packages because I see this a lot.
 
Old 05-24-2007, 02:57 PM   #8
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 624

Original Poster
Rep: Reputation: 55
Thousands, but they are in subfolders. About 10G worth now as I have pictures going back to 2000 then a few scanned from earlier years.
The external drive is formatted ext2. Well was I formatted again last night and switched to ext3.
 
Old 05-30-2007, 04:22 PM   #9
SlackerJack
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11.0
Posts: 28

Rep: Reputation: 15
Still having problems, or did you solve it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No space left on device zmsc1 Linux From Scratch 7 03-28-2009 10:57 PM
No space left on the device batev Slackware 6 05-25-2006 02:40 AM
Samba: 70 Gb free space, samba reports no space left? HansLuijten Linux - Networking 1 08-18-2004 04:40 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM
How much free space left on a tape? bfloeagle Linux - General 0 08-07-2001 07:55 AM


All times are GMT -5. The time now is 01:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration