RedHat 6.1

Posted on 2011-10-14
Last Modified: 2012-05-12
Linux : RHEL6.1 on vmware
#df -h
Filesystem          Size            used   avail   Use  mounted on
/dev/sda2             28G            2.1G    24G    8%        /
tmpfs                   504M         420K    504M   1%       /dev/shm
/dev/sda1            291M           30M    247M  11%     /boot

Now I want to partition the /dev/sda2. create file systems mounted on /u00, /u01,/u02 of 8G,4G,4G

what are my options to achive this task.?
 fdsk /dev/sda2

#mkfs.ext3 -b 4096 /dev/sda2
mke2fs 1.41.12  (17-May-2010)
/dev/sda2 is mounted; will not make a filesystem here!

Question by:taaz
    LVL 6

    Accepted Solution


    i don't exactly understand what you want to do with /dev/sda2 and why since it's the root directory. If there is some space left on /dev/sda than you can partition it with "sudo fdisk /dev/sda".

    1. First you have to create a partition with "fdisk".
    2. Than you can put filesystem on it with "mkfs.ext3".
    3. Than you can mount it with "sudo mount /dev/sdaX /u01".

    Please pay attention since partitioning (fdisk) could lead to data loss on your whole HDD!

    Author Closing Comment

    Got it thanks

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
    Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    745 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

    16 Experts available now in Live!

    Get 1:1 Help Now