Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.