Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 05-16-2003, 05:57 PM   #1
LQ Newbie
Registered: May 2003
Posts: 10

Rep: Reputation: 0
Question trying to create additional partitions

ok say if i want to add 3 partitions on a harddrive i want:

hdb1 for the ext3 /
hdb2 for the /boot
hdb3 for the swap

how would i do this? now i lets say ext3 / type:
mkfs -t ext3 / /dev/hdb1

how do i go about creating partitions for the rest?
i know in the solaris space you can do it all at once but i can't figure
out how to create addtional partitions for the linux.

also when create your partions you can choose primary partition or
extended what is the difference?

thanx to all who help me.
Old 05-16-2003, 06:38 PM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I use fdisk

fdisk /dev/hdb

if you need to remove partitions first use d

to create a partition use n

you can have 4 primary partitions

you could create three primary and one extended partitions, then create logical drives in the extended partition.

If your planning to use the entire drive on 4 or less partitions you can make them all primary

you should look over the howto or man pages for fdisk before you start

Last edited by DavidPhillips; 05-16-2003 at 06:39 PM.
Old 05-16-2003, 10:31 PM   #3
Registered: Jun 2002
Location: White House, Washignton DC
Distribution: Red Hat 9
Posts: 270

Rep: Reputation: 30
Use parted.
1) On console type parted
2) on parted prompt type print
3) then use the mkfs command.

The documentation on for parted is pretty good....

Hope that helps...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
create several partitions between hda1 and hda3 tcma Linux - General 7 09-15-2004 12:18 PM
how many partitions should I create? Necronomicom Slackware - Installation 14 06-28-2004 09:12 PM
Additional Partitions SkylerS Linux - Newbie 6 05-16-2004 06:49 PM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 05:12 PM
RH9 How many partitions can I create? oracsol Linux - Newbie 1 09-25-2003 03:35 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration