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 11-23-2009, 08:32 PM   #1
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 113

Rep: Reputation: 15
Linux partition numbering scheme


Hello,
Quick question, does partition numbers matter on a disk in Linux:

Example:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p5      31G  2.1G   28G   7% /
/dev/cciss/c0d0p3      67G  180M   64G   1% /data
/dev/cciss/c0d0p2     124G  188M  118G   1% /home
/dev/cciss/c0d0p1     183M  7.0M  166M   5% /boot
tmpfs                 2.0G     0  2.0G   0% /dev/shm
[root@localhost ~]# fdisk -l

Disk /dev/cciss/c0d0: 250.0 GB, 250023444480 bytes
255 heads, 63 sectors/track, 30396 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          24      192748+  83  Linux
/dev/cciss/c0d0p2              25       16689   133861612+  83  Linux
/dev/cciss/c0d0p3           16690       25696    72348727+  83  Linux
/dev/cciss/c0d0p4           25697       30396    37752750    5  Extended
/dev/cciss/c0d0p5           25697       29873    33551721   83  Linux
/dev/cciss/c0d0p6           29874       30395     4192933+  82  Linux swap / Sol
I know that the only difference is the size and start and end cylinders but would p5 be the same as p8? And is data on the lower cylinders portion of the disk the same as data on the higher cylinders of the disk. Hope this makes sense. Thanks.
 
Old 11-23-2009, 08:57 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
I know that the only difference is the size and start and end cylinders
A partition is, physically, an area of the disk, which is defined by a starting point and an ending point.

Quote:
but would p5 be the same as p8?
There's no "p8" in your code at all. Maybe you mean p4. In any case, no partitions are the same. That would make no sense.

If you meant p4 and p5, then they start at the same point because p4 is an extended partition.

When you use an MBR model, the partition table can only hold up to four partitions. Extended partitions were created to overcome this limitation. An extended partition is a partition that can hold additional partitions inside of it.

You have three primary partitions and one extended partition. This means that the only way for you to get additional partitions with an MBR based system is by creating logical drives inside the extended partition. Hence, p4 contains p5 and p6, as you can see clearly by looking at the numbers. p5 starts where p4 starts, and p6 ends where p4 ends.

Quote:
And is data on the lower cylinders portion of the disk the same as data on the higher cylinders of the disk. Hope this makes sense. Thanks.
No idea what do you mean. Data at the beginning is at the beginning, and data at the end is at the end. Data in one cylinder can't be on another cylinder, since each point of the 3-dimensional space is supposed to be unique, unless there's some kind of n-dimensional worm hole inside your hard disk being n>=4. :P

Last edited by i92guboj; 11-23-2009 at 09:01 PM.
 
Old 11-24-2009, 07:38 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,053

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
Quote:
Originally Posted by i92guboj View Post
No idea what do you mean.
Congratulations; you did better at decoding the original post (as far as I can tell) than I did. Although by this
Quote:
And is data on the lower cylinders portion of the disk the same as data on the higher cylinders
I think the OP is getting confused by the surfaces of the several (potentially) platters inside the disk drive.

In any case, the data is not duplicated. That would imply a loss of space on a large scale, although if you do want a loss of space on a large scale, there are RAID mode that allow that.
 
Old 11-24-2009, 08:43 PM   #4
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 113

Original Poster
Rep: Reputation: 15
Sorry for the confusing post, let me rephrase my question:

Say if I install the /data on /dev/cciss/c0d0p3 with a 67G partition for a client but then the client wants the /data on /dev/cciss/c0d0p2? Would I have to reinstall or is there no difference between p3 and p2?
 
Old 11-24-2009, 08:46 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
You can move the data to whatever partition, as long as it's formatted on a format that your OS will understand and that it's mounted.

If what you want to move is the OS itself, then this is possible in linux, you will need to adjust your bootloader and your /etc/fstab files at least though.
 
  


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
Partition Scheme for dual booting winXP and linux hungrigerhaifisch Linux - General 2 03-27-2008 12:33 PM
Kernel Version Numbering Scheme - Question rrrssssss Linux - General 4 07-29-2007 05:10 PM
XP/LINUX dual boot partition scheme? climater Linux - Newbie 7 07-03-2004 06:00 PM
Linux Partition Scheme JediDrunk Linux - General 4 12-22-2003 03:41 PM
Partition Numbering question! concoran Linux - General 8 07-26-2002 05:55 AM


All times are GMT -5. The time now is 06:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration