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 |
Quote:
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. |
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) |
ok a fourth option.
D) delete stuff from the destination filesystem, to make room. Other than that there is no solution to your problem. |
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. |