LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to partition a Hard Disk (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-partition-a-hard-disk-712776/)

umwai 03-19-2009 05:52 AM

How to partition a Hard Disk
 
I've bought a new Hard Disk and I want to know how to patition It using both GUI tools and command line tools. I googled for it but they don't give it from the scratch. I wanna know how to set the size, label them etc..

cloud9repo 03-19-2009 06:06 AM

Quote:

Originally Posted by umwai (Post 3480520)
I've bought a new Hard Disk and I want to know how to patition It using both GUI tools and command line tools. I googled for it but they don't give it from the scratch. I wanna know how to set the size, label them etc..

parted is the command line. And, gparted is a good gui.

If you want a livecd to boot from and partition, then there's:

http://gparted.sourceforge.net/livecd.php

ssuhaib 03-19-2009 06:24 AM

Try this:

1. # fdisk -l

Note down the device name config (like sda or hda ).

2. # fdisk <device name>
Select n for new partition
Select cylinders & size

3. # partprobe

4. format the new partition by
# mkfs.ext3 <new partition>

5. Mount the new partition to a directory ( mount point)
#mount <new partition> <directory>.

Hope this helps.


All times are GMT -5. The time now is 01:42 AM.