LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2012, 02:31 AM   #1
laginagesh
Member
 
Registered: Jul 2009
Posts: 42

Rep: Reputation: 16
Question 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
 
Old 01-27-2012, 02:45 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
Quote:
Originally Posted by laginagesh View Post
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.
 
Old 01-27-2012, 03:18 AM   #3
laginagesh
Member
 
Registered: Jul 2009
Posts: 42

Original Poster
Rep: Reputation: 16
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)
 
Old 01-27-2012, 03:23 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

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

Other than that there is no solution to your problem.
 
Old 01-27-2012, 03:03 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
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.
 
  


Reply



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
Getting "E514: write Error (file system full ?)" error senthilums Linux - Newbie 3 08-07-2009 11:57 AM
"read-only file system" message on boot maye Linux - General 2 01-08-2009 10:36 PM
AIX file system "/" full. Can't login anymore Doomhammer AIX 13 07-20-2007 10:05 AM
error message "no such file or directory" Luisa Linux - General 3 02-14-2004 02:40 PM
Error message "no such file or directory" Luisa Linux - General 0 02-13-2004 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration