Re: changing /var's partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

Am Mon, 2003-05-26 um 10.39 schrieb Nick H Johnson:
> It ran without error. 
> Booting up I now reach the grub splash screen and choose to boot into
> linux. 
> Then I get this: 
> 
> root (hd1,2) 
> Error 21: Selected disk does not exist 

Uups, that's my fault. I forgot to tell you to adjust the file
/boot/grub/grub.conf after removing the small hd. Sorry.

To fix it:

boot from CD to rescue mode and chroot to your new system partition
(/dev/hda3) again, as you did when you installed the new mbr.

Then change dir to /boot/grub and open the file grub.conf in vi:

   vi grub.conf

(or menu.list, there is a symbolic link to it)

your should find some lines like:

title Red Hat Linux (2.4.blabla)
        root (hd1,2)
        kernel /boot/vmlinuz-2.4.blabla ro root=/dev/Volume00/RH
        initrd /boot/initrd-2.4.blabla.img

move the cursor below the 1 in (hd1,2) and change the 1 to a 0 (in vi:
press the key r (for replace), then the key 0 and then escape).
Afterwards leave the vi by pressing :wq

Maybe it's a good idea, to make a backup copy first :-)
  

root (hd0,2) means: use the first hd (0 ist the first, 1 the second) and
there the third partition (hda3; again 0 denotes the first partition) as
the root partition

grub-install should have adjust the device map, but it doesn't matter
here.


Hope it helps!


Peter




-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux