LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-17-2006, 12:36 PM   #16
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357

Quote:
Another thing, I don't agree with you that partition designators almost match hardware reality. They will only match it if you create the partitions in sequence from the first cluster to the following one. If you create a partition at the beginning of your hard disk, then one at the end and then one in the middle of it, they aren't goint to be correctly labeled or saying it differently they aren't goint to be sequencely labeled (1,2,3...)
I'm not sure exactly what you said above. So I may be reinforcing you, or contradicting you with the stuff below.

I originally had some primary FAT32 and NTFS partitions at the beginning of my disk, and an extended partition containing Linux logical partitions at the end of my disk. The MIDDLE of the disk was unpartitioned.
Code:
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          34      273073+   b  W95 FAT32
/dev/hda2              35         799     6144862+   7  HPFS/NTFS
/dev/hda3           22940       24321   177116625    f  W95 Ext'd (LBA)
/dev/hda5           22940       24214    10241406   8e  Linux LVM
/dev/hda6           24215       24278      514048+  82  Linux swap / Solaris
/dev/hda7           24279       24317      313236   83  Linux
/dev/hda8   *       24318       24321       32098+  83  Linux
Later, I added a new 160Gb LVM logical partition. See below. My partition designations DID change. For example, above you'll see my boot partition (the last one on the disk) was /dev/hda8. But below you'll see it was moved to /dev/hda9 when I squeezed that new LVM partition into the middle of the disk. So in my experience, partition designations WILL change to reflect the new physical sequence on the disk. This is why I said you'd need to modify fstab, menu.lst, and initrd previously. I know that I had to do this after making my changes! I made the fstab and grub changes right off the bat, before trying to boot, because I knew that would be required. I didn't realize I'd also need to recreate initrd until after I tried to boot, and failed.
Code:
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          34      273073+   b  W95 FAT32
/dev/hda2              35         799     6144862+   7  HPFS/NTFS
/dev/hda3            2272       24321   177116625    f  W95 Ext'd (LBA)
/dev/hda5            2272       22939   166015678+  8e  Linux LVM
/dev/hda6           22940       24214    10241406   8e  Linux LVM
/dev/hda7           24215       24278      514048+  82  Linux swap / Solaris
/dev/hda8           24279       24317      313236   83  Linux
/dev/hda9   *       24318       24321       32098+  83  Linux
You'll note that I still have a little unpartitioned space in the middle of my disk - 10Gb or so. If I partition this as a logical I will need to redo fstab, grub, and initrd again. However, if I partition it primary, I don't think I'll need to do anything special to get Linux to boot. Because a new primary should take /dev/hda3 and bump the extended to hda4, or it will leave the extended at hda3 and take hda4 for itself. I'm not exactly sure which scenerio will unfold. In either case, hda5 and up should remain unchanged. That's my theory anyway. We'll see what actually happens once I partition this space!
 
  


Reply



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
does anyone know how to change between different partitions under linux? kuertensun Linux - Newbie 20 06-12-2005 07:15 AM
Any way to change what partitions /home is on without reinstalling? DraaX Slackware 8 02-21-2005 11:32 AM
How can I change interrupts (IRQ numbers) in SuSE 9.1? (Please...) Robhogg SUSE / openSUSE 3 10-16-2004 06:47 PM
How to change interrupts / IRQ numbers in SuSE 9.1? Robhogg Linux - Hardware 0 10-12-2004 06:33 PM
Adding numbers, break on non-numbers... Cruger Programming 1 03-22-2004 09:18 AM

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

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