LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-17-2009, 10:58 PM   #1
misterfever
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
can longer copy files to my empty USB pen drive on DSL - "no space left on device"


I'm brand new to Linux. In order to save some files from a few hard drives after a major system crash, my only success has come from using Damn Small Linux bootable CD - it's great.

I have been copying files onto my USB pen drive then carting them to my laptop for backup. Randomly I now get the error: "no space left on device", even though I have deleted all of the files on the drive. This exact drive was working perfectly and now will not work at all!

Any ideas? Please be as specific as possible - I'd like to learn this interface well but I am starting from scratch here. Thanks so much.

-Johnathan
 
Old 03-18-2009, 12:37 AM   #2
ps_sabu
Member
 
Registered: Nov 2006
Location: Kerala, South India
Distribution: Ubuntu 12.10, Ultimate Edition 3.5, OZ Unity 3.0 Black Opal
Posts: 117

Rep: Reputation: 15
Tried reformatting Pendrive ????
 
Old 03-18-2009, 07:43 AM   #3
misterfever
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
No, I haven't done that - should I have to? It was working fine before. I will try it but I'm not sure how to do it - can you point me in the right direction please?

Thanks -
J
 
Old 03-18-2009, 07:52 AM   #4
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
If you delete files from a USB stick with a graphical file manager what actually happens is that the files get moved to a hidden folder which is part of the recycle bin. So they are still taking up space. Empty the bin and you should be able to use the stick again.

Robin
 
Old 03-18-2009, 08:24 AM   #5
misterfever
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Robin - how to find the hidden folder? Do I need to do that in Windows or is there a way to do it in Lunix? Thanks again.
 
Old 03-18-2009, 08:39 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,314
Blog Entries: 3

Rep: Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463
Hi,

How are you copying the files from the 'USB'?
 
Old 03-18-2009, 08:55 AM   #7
Spudley
Member
 
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32
It is perfectly possible to reformat a pendrive, and probably a good idea if you're getting odd filesystem errors as you describe. If you do this, you would be best advised to format it in FAT32 format, so that it is still readable on Windows machines as well as Linux.

I doubt it's a trashcan issue -- AFAIK both KDE and Gnome delete the file outright if it's on a pendrive. The trashcan is only used for local filesystems. If it is in the trash and if that's the problem, you should be able to get rid of it by using the "Empty Trash" option on the desktop. On my KDE desktop, that's an icon in the bottom-right of the screen.


One thing that no-one's mentioned yet is the possibility that the pendrive has developed a fault.

The flash memory used in pendrives is only good for a limited number of writes, so one that has had a lot of files copied onto it and deleted (which is what you've described) may well reach the end of its lifespan.

I had one which failed a few months ago. In my case, it became impossible to delete files from it. It was a very old drive (only 128meg), and I wanted an upgrade anyway, so I just destroyed it and bought a new one.


Finally, a few other things to check -- does this happen with this pendrive in other computers? And how about other pendrives in your computer? Just so you can nail it down to definitely being a problem with this specific pendrive.
 
Old 03-18-2009, 09:08 AM   #8
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Quote:
I doubt it's a trashcan issue -- AFAIK both KDE and Gnome delete the file outright if it's on a pendrive. The trashcan is only used for local filesystems. If it is in the trash and if that's the problem, you should be able to get rid of it by using the "Empty Trash" option on the desktop. On my KDE desktop, that's an icon in the bottom-right of the screen.
I have found that both Nautilus in Gnome and Thunar in XFce will move the file to the trashcan. I've had that happen with USB sticks and mp3 players. That's why I do most file management in mc, that way something really gets deleted and I always see the hidden files.

Robin
 
Old 03-18-2009, 09:20 AM   #9
malwodyn
LQ Newbie
 
Registered: Dec 2008
Location: South Wales, UK
Distribution: Ubuntu 12.10; have used Fedora in the past
Posts: 18

Rep: Reputation: 0
I had a somewhat similar problem with a USB memory stick recently. I wanted to copy some files (.JPG images mostly) from a laptop running Fedora 10 onto a memory stick. The GUI refused me access to the stick, although I could read the files on it; nor could I even delete two files in the root directory. A friend, more experienced than I in the ways of Linux, and with access to the /root and superuser powers could not do anything at the command line either!! Worse still, I WAS able to use Window$ to carry out the file operations!!
 
Old 03-18-2009, 10:07 AM   #10
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 222

Rep: Reputation: 29
i can verify that ubuntu leaves them in a trash can on the drive. i had deleted some files from my thumbdrive, and took it over to my windows machine, and i could actually see the trashcan as a file
 
Old 03-18-2009, 10:49 AM   #11
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,218

Rep: Reputation: 231Reputation: 231Reputation: 231
misterfever:

Your pendrive is still good. But space issue is quite perplexing. Here is the solution:

1. There is possibility that your hidden trashcan is in the usb pendrive, thus being full but unseen. Do this --

=> Access the usb pendrive through the terminal, be a root, delete/empty the trashcan.
Syntax:
# ls -al (find out owners of contents)
# chown root:root *
# rm -fr *
Under normal conditions, the bin should be empty.

2. There is also possibility (in some distros) that deleted files from pendrive are stored in the /home/user/.folder but when pendrive is attached it reads status from that hidden folder. Do this --

=> Go to .local under your /home/usr directory and delete/empty the trashcan.
Syntax:
# cd /home/usr/ (be a root first to avoid delay tactics)
# ls -al (here find that ".local" folder)
# cd ./.local
# ls -al (here find that /recyclebin/file/ folder)
# cd ./whatever-it-is-called/file
# chown root:root *
# rm -fr *

Detach your usb-pendrive. Attach again to have it run a new reading. This time you should be able to have good writable space.

Hint: If you are certain at removing files from usb pendrive you should press Shift+clicking Delete if you don't want to accumulate garbage in the trashbin.

Hope it helps.

Last edited by malekmustaq; 03-18-2009 at 10:52 AM.
 
Old 03-18-2009, 03:42 PM   #12
misterfever
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I'm very impressed by the responses I've gotten. Thanks so much.

I'll try and respond to all comments in this reply. The confusing thing for me is that I was able to fill up this pendrive (4 GB), unplug it, dump it onto my laptop for backup onto an external drive, then empty it, then plug it back into the machine running DSL and repeat the whole process. I probably did this 5 times before the space issue arose. Maybe I deleted the files from Windows every time except the last time, when I might very well have deleted it inside DSL - in fact I believe I did. If it treats it differently, this may explain it all.

Regarding the "terminal" - I think I recall seeing this option in one of the few icons in DSL - I can probably find it.

In response to onebuck, I was mounting the pendrive, opening the file manager that comes with DSL (not using the "superuser" option, whatever that means), then highlighting and clicking "copy" when the right folders ere selected. Seemed like the straightforward route. I'll try the shift-clicking from now on.

I'll try what you all suggested this evening and let you know how it goes. Fortunately pendrives are dirt cheap now. I suppose I could try and hook a DVD burner up to the machine and burn data DVDs instead, but why bother - this is so much faster.

Thanks again folks.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get -f install fails due to "No space left on device" madkayaker Linux - Newbie 9 01-05-2014 09:39 PM
Moving a file into a large directory: "No space left on device" Jimantha Linux - General 2 09-09-2008 11:40 PM
"No space left on device" error using SystemV shared memory clalfa Programming 5 07-09-2007 07:34 AM
Getting a "No space left on device" message on a non-full partition... sugar2 Linux - Hardware 12 07-06-2007 01:43 AM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM


All times are GMT -5. The time now is 01:26 PM.

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