14.04 USB flash drive (32gb) was almost full, so I removed few files to free some space. But when I tried copy file into flash drive, it show error, not enough space. Although free space is enough so place file. What is the problem?
1 Answer
It seems your files are still in the Trash. If you cannot empty this via the trash icon, you can try the following in a terminal:
rm -rf /media/<user>/<drive>/.Trash-1000
In the above, <user>
is your user name and <drive>
is the name of your USB memory stick. For example, if your user name is minto
and the drive is named MemoryStick
, you would run:
rm -rf /media/minto/MemoryStick/.Trash-1000
This should delete everything in the trash on the USB stick and give you back the free space.
-
I already tried remove via terminal,
sudo rm -rf ~/.local/share/Trash/*
, not works.– mintoCommented Oct 2, 2016 at 21:22 -
He's telling you to delete the
.Trash-1000
folderon the usb drive
. You do not need to root to do so.– dougCommented Oct 2, 2016 at 23:27 -
rm -rf /media/<user>/<drive>/.Trash-1000
yes, this works. Why files was listed in Trash?– mintoCommented Oct 3, 2016 at 19:50 -
They were probably deleted from Nautilus with the regular delete command, which places them in the Trash to give you a chance to recover them. You can avoid this by either using
rm
to delete your files, or by usingShift+Del
to bypass the Trash and delete your files permanently.– AndreiCommented Oct 3, 2016 at 21:12 -
Error while copying "filename.avi". Error splicing file: No space left on device.
I see that all files I have removed from USB drive stay in Trash. But can't empty Trash for unknown reason, probably this is Ubuntu bug. When USB drive disconnected, Trash have no any files.