Find the answer to your Linux question:
Results 1 to 8 of 8
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Apr 2008
    Posts
    128

    Running LILO on a secondary drive


    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.

  2. #2
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    if you want to run lilo command form that drive that you ll have to boot from that drive as far as I know.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  3. #3
    Linux Newbie
    Join Date
    Apr 2008
    Posts
    128
    AFAIK LILO simply reads lilo.conf and writes the boot sector to the specified drive. Isn't there a way to do this remotely, given lilo.conf and the destination drive(eg. /dev/sdb)? Sounds to me like there should?

  4. #4
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    when you execute the lilo command it write infor to the current HD and not to some other HDD. I suggest that u boot form other HDD and configure the lilo.conf and give the lilo command . And as for the remote call you said I dont think there a some command to do that but i wish there was one would have saved lot of work
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  5. #5
    Linux Newbie
    Join Date
    Apr 2008
    Posts
    128
    The problem like I said is that I can't boot up from the other HDD. It doesn't boot up to a shell.

  6. #6
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    yes it can be done

    You have to edit the lilo.conf file for that there is a option
    Code:
    boot=/dev/hda
    change this to the HDD on which you want to install the lilo but make a backup of the lilo.conf file before you try any stunts
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  7. #7
    Linux Newbie
    Join Date
    Apr 2008
    Posts
    128
    I know how to change lilo.conf, but I don't know how to apply the changes by running the actual lilo command.

  8. #8
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    Make a backup first

    Dude this is my sincere advice that you first make a backup
    change the boot to the HDD on which you want to install the MBR
    Code:
    boot=/dev/hdx
    or
    boot=/dev/sdx
    depending on you HDD
    after making changes come out and run this command
    Code:
    lilo
    It will now show you the entries it has done on the MBR
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •