cancel
Showing results for 
Search instead for 
Did you mean: 

upartition

 
Highlighted

upartition

Hi

I have 80GB unpartition space, I want to make linux partition. Please explain step by step process
7 REPLIES 7
Highlighted
Esteemed Contributor

Re: upartition

which version of linux are you using?

first of all you should check which hardisk having free disk space.
/dev/sda
/dev/sdb etc..

can do this with parted.

parted /dev/sda

and should follow below 2.5 session.

http://www.gnu.org/software/parted/manual/html_mono/parted.html#SEC29

let me know if you have any issue
Highlighted

Re: upartition

Hi

I am using Redhat Linux 4.5 version
Highlighted
Esteemed Contributor

Re: upartition

ok, its enterprise redhat linux 4.5
open hardware browser bye
hwbrowser

and click on hard drives
check the free size notebdown the hardisk (/dev/sdb..) and start and end cylender.

use parted
mkpart
provide start and end cylender.thanks,
Highlighted
Honored Contributor

Re: upartition

Dear Muralikrishna

You must have the parted package installed to use the parted utility. To start parted, at a shell prompt as root, type the command #parted /dev/sda, where /dev/sda is the device name for the drive you want to configure. The (parted) prompt is displayed. Type help to view a list of available commands.

--------------------------------------------
View the current partition table to determine if there is enough free space:

print

If there is not enough free space, you can resize an existing partition.

Making the Partition
From the partition table, determine the start and end points of the new partition and what partition type it should be. You can only have four primary partitions (with no extended partition) on a device. If you need more than four partitions, you can have three primary partitions, one extended partition, and multiple logical partitions within the extended

eg:mkpart primary ext3 1024 2048

The partition still does not have a file system. Create the file system:

/sbin/mkfs -t ext3 /dev/sda6

thanks and regards

Sajjad Sahir

Highlighted
Honored Contributor

Re: upartition


Dear Murali

one thing i forget to say, if u want this file system availab next reboot onwards
u should put in /etc/fstab file


thanks and regards

Sajjad Sahir
Highlighted

Re: upartition

Hi Avin

start cylinder 12000
end cylinder 16000
Highlighted
Esteemed Contributor

Re: upartition

you may follow somwthing like below example,

Start parted, where /dev/hda is the device on which to create the partition:

parted /dev/hda


View the current partition table to determine if there is enough free space:

print


For example, to create a partition with an ext3 file system from 1024 megabytes until 2048 megabytes on a hard drive type the following command:

mkpart ext3 1024 2048

Formating the Partition
The partition still does not have a file system. Create the file system:

/sbin/mkfs -t ext3 /dev/hdb3


Labeling the Partition
Next, give the partition a label. For example, if the new partition is /dev/hda3 and you want to label it /work:

e2label /dev/hda3 /work


As root, create the mount point:

mkdir /work


Add to /etc/fstab
As root, edit the /etc/fstab file to include the new partition. The new line should look similar to the following:

LABEL=/work /work


mount /work