The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unable to create any directory that uses numbers as the directory name fed.linuxgossip UNIX for Advanced & Expert Users 16 01-13-2008 05:54 PM
Create n number of files of size x the_learner Shell Programming and Scripting 2 05-02-2007 03:35 PM
To create a file of spcified size suneelkumar Shell Programming and Scripting 0 12-11-2006 12:31 PM
to create a file of specified size deep UNIX for Dummies Questions & Answers 12 02-06-2006 08:27 PM
How to create file of fixed size? dblevans UNIX for Dummies Questions & Answers 3 10-18-2002 05:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-25-2007
Registered User
 

Join Date: May 2007
Posts: 3
How can create a directory with 1GB size?

How can create a directory with 1GB size?
Reply With Quote
Forum Sponsor
  #2  
Old 05-25-2007
praveenkumar_l's Avatar
Registered User
 

Join Date: May 2007
Posts: 36
Do you mind having a file inside with 1GB size?
Reply With Quote
  #3  
Old 05-25-2007
Registered User
 

Join Date: May 2007
Posts: 3
Yes, Infact I need to create a file with 10GB size. The mount point have more than 10GB space. Eventhen when I create Oracle DB Datafile it gives error.

So I need a way to create a directory with enough space and then create the file.
Reply With Quote
  #4  
Old 05-25-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
What is ulimit set to?
The directory size only relates to the number of entries that are in the directory.
IF you want a large directory, then write a script to create a few thousand empty files in the directory then delete the files.
Reply With Quote
  #5  
Old 05-25-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,619
Quote:
Originally Posted by jgt
What is ulimit set to?
The directory size only relates to the number of entries that are in the directory.
IF you want a large directory, then write a script to create a few thousand empty files in the directory then delete the files.
It would take many, many thousands of empty files. This would devastate performance; and, by wasting a GB of space, it would reduce the probability of being able to create a large file in the same filesystem.
Reply With Quote
  #6  
Old 05-25-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
The real question here, is not how to create a large directory, but rather how to preallocate a large file.
The maximum size of an individual file is dependent upon the operating system and the file system type. This value may be further reduced by the value of ULIMIT, which can be set by the system administrator.
If you are using a system that does not support a 10gb file then you should consider creating an Oracle raw file system, or upgrading your current operating environment to one that will support larger files.
Reply With Quote
  #7  
Old 05-27-2007
Registered User
 

Join Date: May 2007
Posts: 10
try command "mkfs"
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0