Find the answer to your Linux question:
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...
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    2

    Lightbulb 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

  2. #2
    Linux Guru Rubberman's Avatar
    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!

  3. #3
    Just Joined!
    Join Date
    Jul 2011
    Posts
    2

    Lightbulb Directory To Mount

    Thanks for u r response, I had created the directory and have a separate disc now and looking to mound it with with 10gb each. plz need help.... Many Thanks in Advance.

    Regrds,
    Syed hussaini.

    Quote Originally Posted by Rubberman View Post
    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.

  4. #4
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    Quote Originally Posted by hussain712 View Post
    Thanks for u r response, I had created the directory and have a separate disc now and looking to mound it with with 10gb each. plz need help.... Many Thanks in Advance.

    Regrds,
    Syed hussaini.
    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:
    Code:
    grep -H . /sys/block/[sh]d*/device/model
    Then, once you've identified your disk, show the partition table with fdisk, e.g.:
    Code:
    fdisk -l /dev/sdb
    where sdb is the name of the hard disk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...