LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   check size limit (https://www.linuxquestions.org/questions/linux-newbie-8/check-size-limit-939963/)

ust 04-15-2012 09:35 PM

check size limit
 
I use Redhat 4 server , can advise if I would like to know the file size limit of the server , how to check it ?

as I would to copy a very large file to it so I want to know first .

Tinkster 04-15-2012 09:39 PM

What do you mean? Partition size? Filesystem limitation?

http://en.wikipedia.org/wiki/Compari...systems#Limits

ust 04-15-2012 10:05 PM

Quote:

Originally Posted by Tinkster (Post 4653641)
What do you mean? Partition size? Filesystem limitation?

http://en.wikipedia.org/wiki/Compari...systems#Limits

thx ,

One single file size limit , is it 2G ?

p.s. I use 32bit system

Tinkster 04-15-2012 10:12 PM

Which file-system? Just check the link I posted. It's all there.

ust 04-15-2012 10:15 PM

thx reply ,

is there any command or configuration file can be used to check it ?

thx

Tinkster 04-16-2012 12:39 AM

You've been using Linux since 2003 and haven't picked up
how to find out which file-systems you're using along
the way? Wow.

A few ways ....
  1. less /etc/fstab
  2. mount

ust 04-16-2012 12:52 AM

Quote:

Originally Posted by Tinkster (Post 4653732)
You've been using Linux since 2003 and haven't picked up
how to find out which file-systems you're using along
the way? Wow.

A few ways ....
  1. less /etc/fstab
  2. mount

thx reply ,

I use the command "ulimit -a" , the result is as below , is that mean my system do not have file size limit ? I can create the file its size reaches to the maximum of partition size ? thx

"
file size (blocks, -f) unlimited
"

Tinkster 04-16-2012 12:57 AM

That means that the shell and it's children can create files up to the partition
size or file-system inherent limitations.

Again, find out what file-system you're using, and check the table on wikipedia.

pan64 04-16-2012 02:26 AM

if you want to check it by yourself just write a small app which will create a file and continuously fill it up. Wait for the error message....

ust 04-16-2012 02:30 AM

Quote:

Originally Posted by pan64 (Post 4653805)
if you want to check it by yourself just write a small app which will create a file and continuously fill it up. Wait for the error message....

thx reply ,

I am also looking for such script , can you please advise how to write a script to do that ?

thx

pan64 04-16-2012 02:58 AM

do you know there is a little app named yes so you need to write only:
yes > filename
this is not the optimal solution, maybe better to start with a big file (you make a copy of an avi and yes >> copy_of_big_file).
see also http://www.linuxforums.org/forum/sus...mmy-files.html
or http://www.skorks.com/2010/03/how-to...ne-with-linux/
for more solutions.


All times are GMT -5. The time now is 04:50 AM.