Results 1 to 4 of 4
Hello All,
I am looking to create the Directory with an allocated space of 10gb plz guide me! very new to Linux.
Regards,
Hussain...
- 07-05-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 2
Create Directory With Allocated Space
Hello All,
I am looking to create the Directory with an allocated space of 10gb plz guide me! very new to Linux.


Regards,
Hussain
- 07-05-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
You are just trying to create a directory with allocated space? Or a file system mounted on a directory with that space? In Linux, you cannot do the first, but you can create a directory (empty), and create a file system on a disc somewhere with the specified amount of space that you can mount on that directory, resulting in the effect you want.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 07-06-2011 #3Just Joined!
- Join Date
- Jul 2011
- Posts
- 2
- 07-06-2011 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
What do you mean by each, do you have more than one directory you wish to create?
You'll need to know your separate disk's name (sdb, sdc, etc.) and then partition it, if not done already. Then you'll need to format it with a filesystem (if not done already). Finally, you'll need to put an entry in your /etc/fstab file which will automount it to your desired directory for you.
Send us your disk details, and we can help you. If you don't know your hard disks, try this:
Then, once you've identified your disk, show the partition table with fdisk, e.g.:Code:grep -H . /sys/block/[sh]d*/device/model
where sdb is the name of the hard disk.Code:fdisk -l /dev/sdb


Reply With Quote
