LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-24-2002, 02:51 AM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
Partition Numbering question!


Is it always true that
1. the first partition (primary) is called /dev/hda1,
2. the second (primary) contigous /dev/hda2
and so on...? [make conservative assumptions, like your drive is
not SCSI..]
 
Old 07-24-2002, 03:37 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
hda1-4 are primary or extended partitions, hda5-> will be partitions inside an extended partition
 
Old 07-24-2002, 05:46 PM   #3
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Original Poster
Rep: Reputation: 30
I have an interesting situation.
My earlier harddrive map looked like this,
|<hda1(QNX)>|<empty 1 (unallocated)>|<hda2>|<empty 2(unallocated)>|<hda5>..

Later, I installed BSD after creating a BSD type partition (No 165)
in first empty space.

Upon fdisking, the old hda2 still appears as hda2, and the new
BSD partition appears as hda4. Not sure why...
So, the new map is
|<hda1>|<hda4>|<hda2>|<hda5>.....

Any idea what's going on?

Is it possible to change the name of partition numbers?

Last edited by concoran; 07-24-2002 at 05:48 PM.
 
Old 07-25-2002, 01:36 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The numbers are assigned (well, nott exactly, but we can say this) when a partition is created. So when a partition between hda1 and hda2 was created, it took free number.
Note that some OSes (especially Windows) don't handle such situation easily. It may create problems.
 
Old 07-25-2002, 03:16 PM   #5
progster
Member
 
Registered: Feb 2002
Distribution: ubuntu
Posts: 76

Rep: Reputation: 15
plus you should give it correctly, the numbers are actually like this:

<hda1> primary
<hda4> primary
<hda2> primary
<hda3> extended
<hda5> logical
etc

Btw: i thought windows didn't support more then one primary partition?

~Progster
 
Old 07-25-2002, 07:50 PM   #6
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Original Poster
Rep: Reputation: 30
Well, It is possible to change the numbers? like, can I change the
name of /dev/hda2 to /dev/hda3? If yes, how?
 
Old 07-26-2002, 05:11 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I think you have hda3... Extended partitions are created inside a primary one. This primary one (you can't use it as other ones) may be hda3.
 
Old 07-26-2002, 05:24 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
welll hd3 will be the extended partition, inside them will be virtual partitions, or whatever fdisk calls them
 
Old 07-26-2002, 05:55 AM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I believe that the only way to change the numbers of the partitions is to edit the partition table and rearrange the entries. Whichever partition comes first in the table is hda1 and the next one would be hda2.

To make hda2 become hda3 and hda3 become hda2, you would have to swap their entries in the partition table. It's not something you really want to do. You could mess it up.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice numbering Q dianat100 Linux - Software 2 11-06-2005 01:58 PM
Inode numbering zaheer031 Linux - Newbie 1 10-20-2004 08:47 AM
PPP woes in Slackware 10.0 on changing partition numbering gdiv Slackware 5 08-28-2004 11:05 PM
Drive re-numbering naismith Linux - Hardware 1 03-19-2004 10:59 AM
Question about Software Numbering Pwcca Linux - Software 1 04-16-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:29 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