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 12-27-2004, 11:52 AM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
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?
 
Old 12-28-2004, 02:00 PM   #2
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
bump
 
Old 12-28-2004, 04:34 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,678

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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?
 
Old 12-28-2004, 08:04 PM   #4
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
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?
 
Old 12-29-2004, 01:04 PM   #5
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
bump
 
Old 12-30-2004, 09:33 PM   #6
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
bump
 
Old 12-31-2004, 07:58 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,678

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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.
 
  


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
cd labels? firedance Linux - Software 4 04-14-2008 08:19 AM
Logical device names and instant names Gins Linux - General 8 11-30-2004 08:17 PM
weird drive/partition names truthe Linux - Hardware 3 11-14-2004 05:10 PM
I can't read cyrillic names of files on win98 partition, mounted in Slackware9.1 toodr Slackware 2 08-01-2004 07:51 PM
SAMBA: display of share names is OK but files names are wrong superandrzej Linux - Software 5 02-02-2004 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:54 PM.

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
Open Source Consulting | Domain Registration