How can create a directory with 1GB size?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How can create a directory with 1GB size?
# 1  
Old 05-25-2007
How can create a directory with 1GB size?

How can create a directory with 1GB size?
# 2  
Old 05-25-2007
Do you mind having a file inside with 1GB size?
# 3  
Old 05-25-2007
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.
# 4  
Old 05-25-2007
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.
# 5  
Old 05-25-2007
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.
# 6  
Old 05-25-2007
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.
# 7  
Old 05-27-2007
try command "mkfs"
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create directory and sub-directory with awk and bash

In the below I am trying to create a parent directory using the R_2019 line from f1 if what above it is not empty. I then create sub-directories under each parent if there is a match between $2 of f1 and $2. Inside each sub-folder the matching paths in $3 and $4 in f2are printed. If there is no... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies

3. Shell Programming and Scripting

How Create new directory and move files to that directory.?

Hi All, We have main directory called "head" under this we have several sub directories and under these directories we have sub directories. My requirement is I have to find the SQL files which are having the string "procedure" under "head" directory and sub directories as well. And create... (14 Replies)
Discussion started by: ROCK_PLSQL
14 Replies

4. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies

5. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies

6. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

7. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

8. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

9. UNIX for Advanced & Expert Users

unable to create any directory that uses numbers as the directory name

Version-Release number of selected component (if applicable): ================================================================== root@server # cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 5) root@server # uname -a Linux server.integrityserver.net... (16 Replies)
Discussion started by: fed.linuxgossip
16 Replies

10. UNIX for Dummies Questions & Answers

to create a file of specified size

hi guys, Is there any way to create a file of specified size ..ie...during creation itself u should be able to specify the size of it... (12 Replies)
Discussion started by: deep
12 Replies
Login or Register to Ask a Question