LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to avoid "file system full" error message while copying/ ftping a file? (https://www.linuxquestions.org/questions/linux-software-2/how-to-avoid-file-system-full-error-message-while-copying-ftping-a-file-925928/)

laginagesh 01-27-2012 02:31 AM

how to avoid "file system full" error message while copying/ ftping a file?
 
hi,

copy command does it calculates the file size and the target available disc space?
is copy and ftp copy both same?
how to avoid "file system full" error message while copying/ ftping a file which is bigger than the target available disc space?

Thanks
Nagesh

fukawi1 01-27-2012 02:45 AM

Quote:

Originally Posted by laginagesh (Post 4585650)
how to avoid "file system full" error message while copying/ ftping a file which is bigger than the target available disc space?

There are three ways to prevent this error:
A) Get a bigger filesystem (disk) on the target.
B) Compress the source file so it fits on the target filesystem
C) Copy a smaller file.

laginagesh 01-27-2012 03:18 AM

A) Get a bigger filesystem (disk) on the target.
This is a rare case, to handle that case i need some solution.
B) Compress the source file so it fits on the target filesystem
This is already compressed file (tar.gz)

fukawi1 01-27-2012 03:23 AM

ok a fourth option.
D) delete stuff from the destination filesystem, to make room.

Other than that there is no solution to your problem.

wpeckham 01-27-2012 03:03 PM

but I want it to fit....
 
How do you write a 1.2 GB DVD image to a 750Meg CD-RW disk?
You don't!

The only way to be sure you will not get the error message, is to manually check that the target has adequate space BEFORE you start the copy. There is no way to shoehorn a large file into a smaller space non-destructively.

There IS, actually, a way to avoid seeing the message (suppressing or redirecting STDERR), but the resulting target file will be truncated and probably useless. Something you would generally want to know ASAP, thus the message.


All times are GMT -5. The time now is 09:13 PM.