Find the answer to your Linux question:
Results 1 to 5 of 5
Is there a way to run the lilo command from the boot dvd? It doesn't get the directories right, as it has / mounted as the ramdisk memory file system, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Location
    Darien, IL
    Posts
    36

    Run lilo from boot dvd


    Is there a way to run the lilo command from the boot dvd? It doesn't get the directories right, as it has / mounted as the ramdisk memory file system, and / can't be demounted since it's busy. Mounting / to my sdb1 partition (where linux is installed) does not get the proper "maps" for the lilo command, since the dvd ramdisk / takes priority. I have Slackware 12.2 installed but am actually trying to do this with Ubuntu, but I know you Slackers know about lilo. Windows recovery disks allow this type of thing. Slackware works flawlessly unlike Ubuntu. Slackware has never crashed on me once, and I know some websites are on linux servers that haven't been rebooted in 3 years.

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,040
    My approach would be to use either Supergrub or chroot into the install, but to be honest I use grub.

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Location
    Darien, IL
    Posts
    36
    Thank you. Chroot is what I wanted.

  4. #4
    Just Joined! ford's Avatar
    Join Date
    Jan 2011
    Location
    GA, USA
    Posts
    25
    First:
    mkdir /mnt/slackware
    Second:
    mount -t ext3 /dev/sdb1 /mnt/slackware
    mount -t proc none /mnt/slackware/proc
    mount --rbind /dev /mnt/slackware/dev
    Third:
    chroot /mnt/slackware /bin/bash
    Fourth:
    source /etc/profile
    Fifth:
    vim /etc/lilo.conf
    Sixth:
    lilo

    Then just reboot.

  5. #5
    Just Joined!
    Join Date
    Jun 2010
    Location
    Darien, IL
    Posts
    36
    Well, that didn't work as the chroot doesn't find the bash command. The mount with the proc doesn't work either. I DID get it to work however, and I partially have this tread to thank for it. What I did was boot the Knoppix live cd (I think) and:

    mount /dev/sda2 /media/sda2
    chroot /media/sda2 lilo -v

    I then did my:

    dd if=/dev/sda2 of=/media/sdc1/linux.bi count=1 bs=512

    to get it into the windows vista bcdedit system and viola, I was able to get my system going again. I had to do this after upgrading. Thanks for all the help.

Posting Permissions

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