A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

May 18, 2010

Creating a new Filesystem in LINUX

I need to create a new Filesystem in RHEL. The problem i am facing is that the system is allowing me to create a prtition only at the end of disk (after /dev/sda5) whereas i have empty space in between the Partitions. Please find the command results as below:

[root@tsrm72rhel ~]# umount /dev/sda4
umount: /dev/sda4: not mounted
[root@tsrm72rhel ~]# move
bash: move: command not found
[root@tsrm72rhel ~]# clear

[root@tsrm72rhel ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.9G 2.4G 1.4G 64% /
/dev/sda1 46M 11M 33M 25% /boot
none 252M 0 252M 0% /dev/shm
/dev/sda3 4.9G 64M 4.6G 2% /home
[root@tsrm72rhel ~]# parted
GNU Parted 1.6.19
Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.

Using /dev/sda
(parted) print
Disk geometry for /dev/sda: 0.000-20480.000 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 47.065 primary ext3
2 47.065 4039.782 primary ext3
3 4039.783 9295.422 primary ext3
4 19453.711 20473.461 extended
5 19453.742 20473.461 logical linux-swap
(parted)

Now i want to create a partition in between Minor 3 and 4. An ellaborative answer would be appreciated. I am quite new to LINUX so please excuse me for my silly questions.

Thanks,
Deepika

Click Here!