LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-14-2003, 08:43 AM   #1
digizer0
LQ Newbie
 
Registered: Jan 2003
Location: Tokyo, Japan
Distribution: Redhat 8
Posts: 15

Rep: Reputation: 0
2.4.20 Kernel has file size limit=2GB?? How can this be!


I install TurboLinux 8(seems not so famous, but i think even i install other distroes, the case remains the same, maybe).
The kernel comes with the distro is 2.4.18, and it works very well.

But in order to support Firewire(IEEE1394) harddisk, I decided to upgrade it to 2.4.20(coz someone say this version supports Firewire better).

The new kernel i compiled seemed working well, except XWindow can't start anymore(i think i should install XFree86-devel rpm, or some dev packages alike). But the real big problem is when i ftp some backup file (about 3GB), kernel just complained about "file size limit exceed" and dumped core file with the copied file(dest file, not original file) truncated at 2GB. I've tried to set free all kernel limits by ulimit -a, but it didn't work. I even tried to recompile kernel with gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE, but it still didn't work. BTW, i don't think there is any reason to compile 2.4.x kernel with these options, the new kernel just should support Large File S(??, forgot).

Does anyone have some sugguestion to solve this? Thanks.
(maybe i should turn kernel accounting? i turned it off, who knows)
 
Old 01-14-2003, 09:05 AM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Welcome to LQ.org, digizer0.

You can always split the file up using

split -b <size in bytes> filename

which would seem to be the easiest option. Can we assume it's a tarred file?

PS. I used to live in Kita-Urawa (actually Saitama not Tokyo).
 
Old 01-14-2003, 09:08 AM   #3
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Oh, err here's the answer to the problem too I think.

Bert
 
Old 01-14-2003, 06:02 PM   #4
digizer0
LQ Newbie
 
Registered: Jan 2003
Location: Tokyo, Japan
Distribution: Redhat 8
Posts: 15

Original Poster
Rep: Reputation: 0
thanks alot Bert.
Well, you way (split file) is the last way i'll resort to, but there definitely should be some better way i think.

i wonder why the kernel i compiled can not support LFS.
Is the support for LFS *NOT* default when compiling 2.4.20 kernel?
That's too bad, the 2.4.20 should support LFS very well.
As to the page you mentioned, Bert, i've read it and recompiled kernel with "gcc -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE", but no any effect.

Does anyone know how to properly compile the kernel with LFS support?

BTW, acturally i'm not live in Tokyo, but work in Tokyo, this is common, i think you would have known
What's more surprising would be I'm NOT a Japanese , but a Chinese
 
Old 01-14-2003, 06:20 PM   #5
digizer0
LQ Newbie
 
Registered: Jan 2003
Location: Tokyo, Japan
Distribution: Redhat 8
Posts: 15

Original Poster
Rep: Reputation: 0
oh, i just forgot to ask, how to extract the files stored in the tar files, if i split the original into several? The original file is a tar.bz2 file.
And why did u come to japan and for how long? if u don't mind your privacy
 
Old 01-14-2003, 06:34 PM   #6
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
There are a few options for split, and I think the only way is to extract the tar and then split it. Look at the options in the info page. Attention could be paid to the prefix option because:

split -b 100m a bigtarfile.tar

will produce 100Mb files:

aaa aab aac aad

as I said, best to look at the info page for split and decide how you want to do it.

BTW, being Chinese and living in Japan doesn't suprise me - I actually thought you were a westerner (because your English is too good to be a Japanese!).

 
Old 01-14-2003, 07:19 PM   #7
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Quote:
Originally posted by digizer0

i wonder why the kernel i compiled can not support LFS.
Is the support for LFS *NOT* default when compiling 2.4.20 kernel?
That's too bad, the 2.4.20 should support LFS very well.
As to the page you mentioned, Bert, i've read it and recompiled kernel with "gcc -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE", but no any effect.

it's not just the kernel. some commands/services are compiled with no LFS support. i think wu-ftpd is an example.
 
Old 01-14-2003, 10:00 PM   #8
digizer0
LQ Newbie
 
Registered: Jan 2003
Location: Tokyo, Japan
Distribution: Redhat 8
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for all the people (up to now 2 persons ) who helped me.

i just have figured out the problem. Just like born4linux said, it's not the kernel but the program i used that does not support LFS.
When i changed to use another ftp client(lftp), the problem disappeared, it just works fine.

Thank you very much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very confused about 2GB file size limit! nkendrick Linux - General 6 09-29-2005 07:14 PM
Redhat 9.0 >2GB file limit Wilbs Red Hat 2 08-12-2004 01:26 PM
2GB File Limit AS2.1 jbovaird Red Hat 19 11-14-2003 11:29 AM
mencoder file size limit 2GB chii-chan Linux - Software 3 10-22-2003 04:27 AM
Is there a way round the 2gb File size Limit smurf Linux - General 2 07-10-2002 02:57 PM


All times are GMT -5. The time now is 06:56 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration