Jump to content

Running LILO on a secondary drive


galapogos
 Share

Recommended Posts

Hi,

 

I have Mandriva 2009 installed on my main boot drive.

 

I have another drive that I wish to run LILO off of, since I will be updating its kernel.

 

The problem is that that drive runs as part of a set-top box like application, so it boots right up to the main application program, and there's no way for me to boot up from it into a shell and run LILO.

 

Is there any way I can update LILO of that drive, while booted up from my Mandriva box? I've read about chroot but I'm not sure how to use it, despite reading the man page.

 

Thanks.

Link to comment
Share on other sites

Yes, chroot is the way to do it.

 

Boot with Mandriva. mount the other drive temporarily (mkdir /mnt2; mount /dev/sdXX /mnt2) and then chroot onto it: chroot /mnt2

 

Once you are in chroot you can launch edit lilo.conf (actually you can do that before chrooting too) and then launch lilo to update the MBR.

 

The only problem could be if the device names in lilo.conf don't match the current device names, you need to make sure the device names match otherwise you risk overwriting the wrong MBR.

Edited by tux99
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...