1832296 Members
2149 Online
110041 Solutions
New Discussion

File size > 2GB

 
SOLVED
Go to solution
Jagadesh
Frequent Advisor

File size > 2GB

Dear All,

I need to create a file of size more than 2GB in Linux Advanced server.
How can i go about in doing the same in 32 bit arch??

Thanks
Jagadesh
6 REPLIES 6
Claudio Cilloni
Honored Contributor

Re: File size > 2GB

the ext3 and reiserfs usually used in modern linux systems are able to manage files of size greater than 2GB.

how are you going to create this file?

Ciao!
Claudio
KapilRaj
Honored Contributor
Solution

Re: File size > 2GB

while true
do
find / -print >> /output.file.2gb
done

When the FS reaches 100 % it will break

Kaps
Nothing is impossible
Jagadesh
Frequent Advisor

Re: File size > 2GB

Thanks for the reply

Iam using ext3 filesystem. How to enable file size > 2gb??

Thanks
Jagadesh
Steven E. Protter
Exalted Contributor

Re: File size > 2GB

If you are using ext3 filesystem 2 GB files are already enabled.

tar or any of the compress/package tools should be able to create archives bigger than 2 GB. I've done it and I use the same OS as you.

What you have not said is what tool you are using to create the archive. If its not able to create files bigger than 2 GB or archive them you're done. Time to change methodology.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jagadesh
Frequent Advisor

Re: File size > 2GB

Thanks for ur valuable reply..
There are 2 ways that an application will enable 64bit support.

_LARGEFILE64_SOURCE
or
_FILE_OFFSET_BITS

Using the same file size of size > can be created.

I found the same in
http://www.lrz-muenchen.de/services/compute/linux-cluster/develop/LF.html


Kiyoshi Miyake
Frequent Advisor

Re: File size > 2GB

hi,

how about this.

$ dd if=/dev/zero of=./foo bs=1G count=3

thx.