LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 01-08-2002, 11:14 AM   #1
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
Lfs


I'm tring to configure my 2.4.x system to use files bigger that 2G... at the moment, the system i'm working on is running 2.4.8 kernel with glibc ver: 2.1.3-x (fs are all ext2), but i am trying to patch the kernel or upgrade it. So, far, i can't find a kernel option to enable to allow LFS support, nor can i get files > 2g to write. Am I missing something? Most of the docs i find have patches for 2.2.x kernels, but say nothing about 2.4.x except that it just works. ???

has anyone else tried this and got it to work? Any good
 
Old 01-09-2002, 10:19 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The block size used on EXT2 file systems will place an upper limit
on how large a file can actually be stored. The triple-indirection
scheme used in EXT2 will support the following sizes based on the
block size:

Block Size File Size

512 2 GB + epsilon
1k 16 GB + epsilon
2k 128 GB + epsilon
4k 1024 GB + epsilon
8k 8192 GB + epsilon ( not without PAGE_SIZE >= 8 kB )

You cannot use an 8K block size on Intel since the page size on Intel
platforms is 4K, so the file size is limited to 1TB + epsilon, and the
4K block size is probably the best choice.

Additionally, the basic block device layer can support only 4G of 512
byte regions, 2G to be safe, so don't expect to be able to access more
than 1TB of actual data total in the EXT2 filesystem.
Sparse files can have maximum offsets according to the table above,
because blocks are not allocated for blocks that have not been written.

you can use fdisk to check the size of your blocks

this info was pretty old but I guess it applies in some cases

Last edited by DavidPhillips; 01-09-2002 at 10:27 AM.
 
Old 01-09-2002, 12:55 PM   #3
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Original Poster
Rep: Reputation: 30
ext2 block sizes

using tune2fs, i was able to determine that all my large drives have 4k block sizes.. still no luck with > 2G files.
 
Old 01-10-2002, 02:09 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Check out this thread .
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
QUERY: is LFS LFS? kevingpo Linux From Scratch 7 09-23-2005 12:15 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12: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