1826631 Members
3343 Online
109695 Solutions
New Discussion

Re: new partition

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

new partition

Dear All
how to creat a new partition
fadia.marei
7 REPLIES 7
Alexander Chuzhoy
Honored Contributor

Re: new partition

use fdisk to create new partitions.
In case you want to create partition on first IDE slave drive
fdisk /dev/hdb
then type m to see available commands.

After you've created partiton you must also create a file system on that partition.
mkfs /dev/hdb1


will create file system on first partition of the same drive.

Fadia Almarei
Super Advisor

Re: new partition

kindly give it to me in more details,and hopfully with example
fadia.marei
Huc_1
Honored Contributor

Re: new partition

The following link explain's it all

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/ch-partitions.html

You probably know most of this but there are some usefull examples for Linux

Hope this helps

Jean-Pierre
Smile I will feel the difference
Alexander Chuzhoy
Honored Contributor
Solution

Re: new partition

lets say I've added a hard drive to my pc and it's a second IDE MASTER drive:

fdisk /dev/hdc
then
n
to create new partition.

then
p
to choose primary

then
1
this is a first partition on that empty drive.
then I hit enter to go with the default first sector.
then you should specify the last sector or you can give the exact size with +600M (for 600 MB for example).
after that you should also hit on
w
to write the partition table to the disk.
Exit the fdisk with q

The partition now is ready .You have to make the file system on it.
mkfs -j /dev/hdc1
will create ext3 file system on that partition.
now you can create a directory like /space
and mount that partition
mount /dev/hdc1 /space
NiCK_76
Respected Contributor

Re: new partition

Hi, Fadia Almarei

Read
http://www.tldp.org/HOWTO/Hard-Disk-Upgrade/partition.html

NiCK
just for fun
Fadia Almarei
Super Advisor

Re: new partition

Alexender ,if my partition is a secondary one what should i do ,and i have a free space on my exixting hard disk and i want to creat the new partition in this hard disk
fadia.marei
Fadia Almarei
Super Advisor

Re: new partition

my system is redhat9 linux,and is it needed to be in rescue or single user mode when using the fdisk command
fadia.marei