RedHat 6.1

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!

Who is Participating?
JelcinConnect With a Mentor Commented:

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!
taazAuthor Commented:
Got it thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.