Posted on 2011-10-11
Last Modified: 2012-05-12
#df -h
filesystem       Size   Used      Avail     Use%   Moiunted on
/dev/sda2        30G    3G        27G     10%      /
tmpfs               504M  272K    504M    1%       /dev/shm
/dev/sda1         291M  30M      247M   11%      /boot

I need to create  the /dev/sda2 in to 3 sub directories of 15G,4G and 4G.
How can I achieve that task

mkdire  command create the directory but how to allocate a space to the directory.
Question by:taaz
    LVL 13

    Expert Comment

    by:Hugh McCurdy
    I think you might be confused.

    Allocating space is something you would do during partitioning.  You'd do partitioning before you install Linux.  But it appears Linux is already installed.  Unless you want to reinstall Linux, you should leave the partition table alone.

    Which Linux distribution are you using?

    Why are you trying to have a 15G limit, a 4G limit and another 4G limit?  (There are good reasons but I want to know your reason.)

    Author Comment

    Well it is a Linux 6.1 32bit installed on a vmware

    I am going to Oracle 11gr2
    ORACLE_BASE:  /u00/app/oracle  as base
    ORACLE_HOME: /u00/app/oracle/product/11.2.1
    I want to use the spaces for the control files datafiles, logfiles ,FRA, and rman

    I can reinstall the linux on vmwre.
    LVL 13

    Accepted Solution

    I'm not sure why you need separate partitions for them.  One good reason would be to separate important data on its own partition as some sort of isolation approach.  Another you already have -- the small boot partition.

    However, it's your computer.  

    I don't know the fdisk instructions for vmware (if it has its own utility or if you use the standard utility).  But some sort of fdisk is what you want.  Just make as many partitions as you need.  When you get to sda4, you should make that an extended partition and then keep adding partitions.  I think you can go up to 16 but I haven't gone past 10 myself.

    Author Closing Comment


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now