Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub and fdisk don't agree on where partitions are
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Sun Feb 13, 2005 6:12 am    Post subject: Grub and fdisk don't agree on where partitions are Reply with quote

This all started when I reinstalled Windows on partition 1. Before the reinstall, fdisk would display this:

/dev/hda1 NTFS (my windows drive)
/dev/hda2 Windows Extended Partition
/dev/hda5 NTFS (my swap partition for Windows, a logical partition)
/dev/hda6 reiserfs (my / mount point)
/dev/hda7 swap

After the reinstall:

/dev/hda1 NTFS (my windows drive)
/dev/hda2 NTFS (my swap partition for Windows .. which is now a primary partition?)
/dev/hda3 Windows Extended Partition
/dev/hda5 reiserfs (my / mount point)
/dev/hda6 swap

The weird part, is that Grub still uses the old partitions. To boot gentoo I have to run:

Code:
root (hd0,5) #location of old /
kernel=/boot/kernel-2.6.9 root=/dev/hda5 #location of new /


Any other configuration does not boot. I also had to change my fstab to use /dev/hda5 for / and /dev/hda6 for swap. It would not boot with the fstab pointing to the old values, which grub still recognizes in its own notation.

Perhaps it's because I had to reinstall grub after Windows? Because as we all know, Windows installers kill grub.

This problem really doen't affect me too much, as I can boot with these values. I just want to know how this happened and why fdisk and Grub interpret the new partitions differently.

I'll reply tomorrow with cylinder numbers from the new fdisk (don't have any from old)
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sun Feb 13, 2005 6:43 am    Post subject: Reply with quote

Use cfdisk instead of fdisk.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum