[CentOS] Manually mounting partitions in "linux rescue" mode

Tue Aug 3 14:48:32 UTC 2010
Edward Diener <eldiener at tropicsoft.com>

On 8/3/2010 12:22 AM, Mark Pryor wrote:
>
>
> --- On Mon, 8/2/10, Edward Diener<eldiener at tropicsoft.com>  wrote:
>
>> From: Edward Diener<eldiener at tropicsoft.com>
>> Subject: [CentOS] Manually mounting partitions in "linux rescue" mode
>> To: centos at centos.org
>> Date: Monday, August 2, 2010, 9:07 PM
>> I boot from the installation DVD,
>> with an already existing CentOS 5.5
>> system on my hard disks. I have separate boot, root, and
>> home
>> partitions. I have moved the boot partition and now I need
>> to
>> re-initialize grub from rescue mode.
>>
>> Attempting to use 'rescue mode" to automatically mount my
>> system under
>> /mnt/sysimage eventally fails with an error message, which
>> essentially
>> says 'mount error' and nothing else. I am then put at a
>> command prompt
>> as root.
>>
>> So now I decide to manually mount my partitions at
>> /mnt/sysimage and
>> then do a chroot to /mnt/sysimage. This succeeds and when I
>> look at my
>> files they are there.
>>
>> I now try 'grub' and the 'grub' shell comes up. I now
>> attempt the 'grub'
>> command:
>>
>> root (hd0,9)
>
> try /dev/sdb8 ->  (hd1,7)

The 'root' for grub is the boot partition, not the root partition. On my 
system the boot partition is /dev/sda10 -> (hd0,9).