LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2004, 02:23 PM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
debian partitioning


i used cfdisk to partition my HD. I've created hda1 as the root partition and hda2 as swap. Is it right to register the swap partition as primary?
 
Old 08-22-2004, 02:45 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Re: debian partitioning

Quote:
Originally posted by nocturna_gr
i used cfdisk to partition my HD. I've created hda1 as the root partition and hda2 as swap. Is it right to register the swap partition as primary?
Yes and you may want to make one more partition for /home as well. You can have 4 primary partitions or 3 primary and 1 extended partition (this one can have many logical partitions in it to allow you to have more than 4 partitions) on a hard drive.
 
Old 08-22-2004, 02:48 PM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
thanks
 
Old 08-22-2004, 02:56 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
What's the difference between primary and extended partitions?
 
Old 08-22-2004, 03:38 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Quote:
Originally posted by darkleaf
What's the difference between primary and extended partitions?
A primary partition is one single partition to itself. An extended partition is a container that holds logical partitions my HD's for example.
Code:
[HappyTux:/home/stephen]# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          31      248976   82  Linux swap
/dev/hda2   *          32         639     4883760   83  Linux
/dev/hda3             640        1855     9767520   83  Linux
/dev/hda4            1856       14593   102317985    5  Extended
/dev/hda5            1856        7934    48829536   83  Linux
/dev/hda6            7935       14593    53488386   83  Linux

Disk /dev/hdd: 40.0 GB, 40037760000 bytes
255 heads, 63 sectors/track, 4867 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1               1          32      257008+  82  Linux swap
/dev/hdd2   *          33         640     4883760   83  Linux
/dev/hdd3             641        1856     9767520   83  Linux
/dev/hdd4            1857        4867    24185857+  83  Linux
As you can see my larger drive I have partitioned up into 5 pieces the /dev/hda4 does not count it as it is only the container for the 2 logical partitions hda5 and hda6 which take up the entire space inside it. You can tell this by looking at the starting and ending blocks for the hda4 then adding together the hda5 and hda6. Whereas the smaller one is only the 4 primary partitions.
 
Old 08-22-2004, 04:43 PM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Thanks!
 
  


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
Debian partitioning with DiskDrake darkgamer20 Debian 2 11-06-2004 03:40 PM
Debian, XP, and Partitioning taran Debian 1 03-25-2004 03:20 AM
Noob needs your help (partitioning for debian) xbbd Linux - Newbie 4 03-12-2004 05:22 PM
The best way of partitioning debian White R4bbit Debian 2 02-20-2004 07:19 PM
Will the Debian install do my partitioning? snatale1 Debian 1 09-13-2003 04:25 PM


All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration