Jason Greenwood wrote:
> Good idea, never thought of that, might have to do some Googling on
> chroot before I try it. I assume it's a simulated environment then,
> where I am root on that partition for that shell session?

Yep thats about it a new shell session is created with what ever directory you 
pointed chroot to as /. I found it help full to then run su as it would load 
up my various bash settings for that installation. The only thing that can 
catch you out I found was if you have your /boot on it's own partion in which 
case you need to unmount it before running chroot and then mount it again 
once you've run chroot to make sure the the kernel goes where it's supposed 
to.
I used it in a similar situation in the week end when after running windows I 
tried to load back into linux only to find out that windows had wiped the 
MBR, Partions table and /boot partion. Had to use fdisk to delete what 
remained of the corrupted partion table and then reload it using the Mandrake 
rescue CD and the partion back up disk I made when install Mandrake 9.1.
I'd lost all the kernels in /boot though so I had to use chroot in the rescue 
CD to gain access to the apps on main undamaged partion mount /boot and use 
urpmi to install the latest kernel. deleted all the old entries from 
lilo.conf ran lilo and rebooted loaded no problems.

Chad


>
> Cheers
>
> Jason
>
> Chad wrote:
> > Another option might be to boot up into stable and use the
> > chroot command to change partions to the cooker one and trying force
> > installing a working kernel.
> >
> > eg
> > chroot /mnt/cooker
> >
> > Chad
> >
> > Jason Greenwood wrote:
> >>Anyone got a copy I can have please? Just did the latest Cooker Kernel
> >>Upgrade to my testing partition and it borked my system. I stupidly
> >>trusted it to work and uninstalled/deleted the old kernel BEFORE
> >>rebooting/testing the new one, thus the need for a re-install. I'd hate
> >>to have to URPMI up from Beta 2 (which I have). I have all the latest
> >>RPMS from the last 8 days since RC1 has been out but just need the
> >>install disks. I'd be most grateful!
> >>
> >>Cheers
> >>
> >>Jason
> >>(writing from his stable 9.1 partition) =)

Reply via email to