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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-27-2004, 11:52 AM
|
#1
|
Member
Registered: Oct 2004
Posts: 309
Rep:
|
partition names and labels
im setting up partitions on my hd, using cfdisk and i have a few questions:
1. i want the main partition to be called hda1, but i also want my swap space to be at the beginning of the drive(its supposed to be faster). if i make the swap partition first, it gives me the option to write it at the beginning of the drive, but then my main partition is called hda2. if i make the main partition first, its called hda1 like i want, but i dont get to make the swap at the beginning of the drive.
2. what is a label? most of the partitions i create dont have a label, but the NTFS one i created using windows seems to have a label of "[^R]" whats the difference between a name and a label? what is a label?
3. is there a way i can change my hd name and label to what i want? maybe a more advanced partitioning tool than cfdisk that has more options or something?
|
|
|
12-28-2004, 02:00 PM
|
#2
|
Member
Registered: Oct 2004
Posts: 309
Original Poster
Rep:
|
bump
|
|
|
12-28-2004, 04:34 PM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,112
|
hda1 is a device ID and not a name. It refers to the 1st partition on the hard drive connected to the 1st IDE controller master drive.
hda - 1st IDE controller master
hdb - 1st IDE controller slave
hdc - 2nd IDE controller master
and so on...
An IDE drive can be divided into a maxium of 64 partitions. Partitions 1-4 are also called parimary partitions. In order to create more then 4 partitions a primary is designated as an extended paritition. In a nutshell an extended partition is a container for logical partitions. A logical partition has an ID >=5.
You can google for additional info on partitions.
It really does not matter what partition linux is installed to. Here is a simple partitioning scheme I use:
hda1 /boot (100mb)
hda2 - swap (512mb)
hda3 / (the remaining hard drive space)
A volume label is just a name you can assign to a partition. A volume label can be anything.
BTW what distribution are you trying to install?
|
|
|
12-28-2004, 08:04 PM
|
#4
|
Member
Registered: Oct 2004
Posts: 309
Original Poster
Rep:
|
im basically dual booting slackware and windows xp. my setup is like this:
hda1: ntfs
hdb1: Linux
hdb5: Swap (cfdisk automatically made it hda5 for some reason)
it works, but i was wondering about the drive label thing, what is it? is that what makes it say "c:" when im in windows? somebody told me that i could change the label using "makefs -L" but wouldnt that just rename the fs, or are the drive lable and the fs label the samething?
|
|
|
12-29-2004, 01:04 PM
|
#5
|
Member
Registered: Oct 2004
Posts: 309
Original Poster
Rep:
|
bump
|
|
|
12-30-2004, 09:33 PM
|
#6
|
Member
Registered: Oct 2004
Posts: 309
Original Poster
Rep:
|
bump
|
|
|
12-31-2004, 07:58 AM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,112
|
Unless you change the drive mapping windows will automatically assign letters. The first recognized partition on the first recognized physical drive is c:, the first recognized partition on the next physical drive is d:, then all recognized logical drives will be assigned starting back with the first drive.
cfdisk automatically created an extended partition. hdb5 is a logical partition as I described in my previous post.
volume labels and fs names are not the same thing. I assume you are refering to a fs name as hdb1. hdb1 can not be changed. Again see my previous post for device IDs. A volume label is just a unique name you can assign to a partition.
An example of using volume labels with linux is via fstab. Redhat /fedora uses volume labels instead of device IDs in the fstab. This allows moving partitions around without needing to update the fstab.
|
|
|
All times are GMT -5. The time now is 04:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|