Hmm. What if /boot is very corrupted and you cannot even backup files?
In this case, the files were not corrupted. Would a fsck have helped?
Again,a strange symptom I noticed when I ran ext2.fsck on my mounted /boot partition from Live CD,it came out clean......Now what's this about? And for Mehul,if you say that the grub>root (hd0,<Tab> showed the partition numbers as they were ie hda9 for the ninth partition,how do you explain the appearance of hda0 ie zeroth partition? What we are confused about whether grub counted partitions from 0 or from 1?Both of them are debatable since if grub counted partitions from zero,hda0 is understood but hda9 is not since I have only 9 partitions,no 10th partition which would show up as hda9. And if Grub counted partitions from 1,how does hda0 come in?There cannot be a -1 partition,AFAIK. ;)
Regards, Easwar
Easwar Hariharan wrote:
What we are confused about whether grub counted partitions from 0 or from 1?Both of them are debatable since if grub counted partitions from zero,hda0 is understood but hda9 is not since I have only 9 partitions,no 10th partition which would show up as hda9. And if Grub counted partitions from 1,how does hda0 come in?There cannot be a -1 partition,AFAIK. ;)
Its not debatable. Grub reads from 0 whereas /dev/hdxn begins from a1. So (hd0,0) for grub is /dev/hda1 and (hd0,8) is /dev/hda9.
Mehul had accidentally made a typo. Do go through the link I had posted. It clears a lot of doubts. :)
http://www.troubleshooters.com/linux/grub/grub.htm
On 8/15/07, Easwar Hariharan meindian523@gmail.com wrote:
And for Mehul,if you say that the grub>root (hd0,<Tab> showed the partition numbers as they were ie hda9 for the ninth partition,how do you explain the appearance of hda0 ie zeroth partition?
Only for the logical partitions, is the scheme followed. hda1 is a primary partition. I am not sure if it's so everytime but atleast in your case it is. So, hda1 is (hd0,0) whereas hda5 is (hd0,5). This is what was happening.
mehul wrote:
On 8/15/07, Easwar Hariharan meindian523@gmail.com wrote:
And for Mehul,if you say that the grub>root (hd0,<Tab> showed the partition numbers as they were ie hda9 for the ninth partition,how do you explain the appearance of hda0 ie zeroth partition?
Only for the logical partitions, is the scheme followed. hda1 is a primary partition. I am not sure if it's so everytime but atleast in your case it is. So, hda1 is (hd0,0) whereas hda5 is (hd0,5). This is what was happening.
In my system I have grub on hda3 and hda6. Grub reads it as (hd0,2) and (hd0,5). The former is primary and latter is logical. Its the same rule for both.
On 8/15/07, mehul mehul.forums@gmail.com wrote:
On 8/15/07, Easwar Hariharan meindian523@gmail.com wrote:
And for Mehul,if you say that the grub>root (hd0,<Tab> showed the partition numbers as they were ie hda9 for the ninth partition,how do you explain the appearance of hda0 ie zeroth partition?
Only for the logical partitions, is the scheme followed. hda1
Nope, it's for all partitions.
How did you realize that the boot partition was corrupt? I'm asking since you said that fsck came out clean.