LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2007, 06:09 PM   #1
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
How do you change partition order from say hda2 to hda1, where hda1 does not exist


There are currently 2 partitions:
hda2, which is the root partition
hda3, which is the swap partition

I need to make my hda2 partition to be detected as hda1. Linking does not help here.
Do I need to manually edit the partition table and make my partitions take up the first 2 entries?
 
Old 04-09-2007, 06:49 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
What did you use to make the partitions? I've never seen anything assign hda2 when there isn't any hda1 to begin with...
 
Old 04-09-2007, 06:49 PM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Who says you only got two partitions?

Do a cat /proc/partitions and paste it here
 
Old 04-09-2007, 06:53 PM   #4
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by x_terminat_or_3
Who says you only got two partitions?

Do a cat /proc/partitions and paste it here
here ya go:
Code:
rootbeer:$ cat /proc/partitions
major minor  #blocks  name

   3    64  195360984 hdb
   3    66   26370666 hdb2
   3    67    5140800 hdb3
   8     0     126464 sda
   8     1     126236 sda1
 
Old 04-09-2007, 06:55 PM   #5
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jay73
What did you use to make the partitions? I've never seen anything assign hda2 when there isn't any hda1 to begin with...
Its called ME (spelled with capitals).
There used to be a Windows partition at hda1 that I deleted. Now I need my linux partition to take up hda1.
I am comfortable editing fstab and lilo.conf so we are not breaking anything here.
 
Old 04-09-2007, 07:11 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by r00tb33r
There used to be a Windows partition at hda1 that I deleted. Now I need my linux partition to take up hda1.
Why do you *need* this. Nothing I know of requires this.
If you're worried about the "Partition table entries are not in disk order" message, don't be.

Easiest would be to delete the partition under fdisk, then reallocate a new one using the same start and size. Should allocate it as part1.
 
Old 04-09-2007, 11:33 PM   #7
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
The above worked nicely. I was able to install my freshly compiled kernel.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
If hda1 is (0,0), What Are hda2, hda5, and hda6? rrrssssss Linux - General 2 01-21-2007 04:51 AM
Linux root moved from hda2 to hda1 dangerousdave Linux - Software 3 11-02-2005 06:18 PM
Can mount hda1, but not hda2,3,4,5, or 6? Dobie Linux - Newbie 4 06-13-2004 04:37 PM
mount filesystems from hda1 and hda2 jhirshon Linux - Newbie 3 01-29-2004 12:05 PM
hda1, hda2 and hda3.. partitioning order concoran Linux - Software 4 10-15-2003 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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