LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 05-16-2003, 04:57 PM   #1
rmuhammad
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, 05:38 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
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

http://www.linuxplanet.com/linuxplan...orials/3174/6/

Last edited by DavidPhillips; 05-16-2003 at 05:39 PM.
 
Old 05-16-2003, 09:31 PM   #3
chem1
Member
 
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 http://www.gnu.org for parted is pretty good....

Hope that helps...
 
  


Reply


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 11:18 AM
how many partitions should I create? Necronomicom Slackware - Installation 14 06-28-2004 08:12 PM
Additional Partitions SkylerS Linux - Newbie 6 05-16-2004 05:49 PM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
RH9 How many partitions can I create? oracsol Linux - Newbie 1 09-25-2003 02:35 PM


All times are GMT -5. The time now is 06:02 AM.

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