Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Commented out boot choices in lilo.conf

  1. #1
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Wisconsin, USA
    Posts
    536

    Commented out boot choices in lilo.conf

    Need help getting back to knoppix. I don't know why but I commented out the prompt option in lilo and now my computer boots right into windows which was the default choice in lilo. How do I undo this change?

  2. #2
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    Boot using knoppix cd.
    In KDE, open konsole and run this command:
    su
    mount /dev/hdxx /mnt/hdxx ****xx=your installed knoppix partition
    chroot /mnt/hdxx
    mc
    edit your lilo /mnt/hdxx/etc/lilo.conf
    save
    lilo (to update your lilo)
    reboot.

  3. #3
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Wisconsin, USA
    Posts
    536
    This is what I get:

    knoppix@ttyp0[knoppix]$ su
    root@ttyp0[knoppix]# mount /dev/hda1 /mnt/hda1
    root@ttyp0[knoppix]# chroot /mnt/hda1
    chroot: /bin/bash: No such file or directory

    What do I need to do to get to lilo.conf on the hd install to edit it to undo the changes I made?

    I am running the cd live now but have it installed on my hd with a knoppix style installation. Need to edit the hd install knoppix lilo.conf to undo changes.

  4. #4
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    Are you sure hda1 is where your linux partition is?
    It's look like hda1 belongs to windows.

  5. #5
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788

  6. #6
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Wisconsin, USA
    Posts
    536
    Yes you are right, hda3 is the linux partition. I'll try that and post back. Running from cd now and this is what I get when I chroot /mnt/hda3:

    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied

    after doing chroot /mnt/hda3. Then it does not get back to a prompt. It does tell me that hda3 is already mounted or device is busy when I try to mount again.

  7. #7
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    You should be able to correct this by :
    mount hda3 rw (either use use the icons on the desktop or mount -rw /dev/hda3 in console)

    su
    edit /mnt/hda3/etc/lilo.conf using your favorite text editor
    then run lilo from the CD but using the edited configuration file:
    /sbin/lilo -c /mnt/hda3/etc/hda3

    If you are unable to edit & save the file to /mnt/hda3/etc/lilo.conf for some reason, you can copy the it to /home/knoppix, edit it there & then run lilo specifying the edited file (lilo -c /home/knoppix/lilo.conf)

  8. #8
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Wisconsin, USA
    Posts
    536
    Used kate to edit the file but cannot get lilo to run correct. This is what was done:

    root@ttyp0[knoppix]# su
    root@ttyp0[knoppix]# /sbin/lilo -c /mnt/hda3/etc/hda3
    usage: lilo.real [ -C config_file ] -q [ -m map_file ] [ -v N | -v ... ]
    lilo.real [ -C config_file ] [ -b boot_device ] [ -c ] [ -g | -l | -L ]
    [ -F ] [ -i boot_loader ] [ -m map_file ] [ -d delay ]
    [ -v N | -v ... ] [ -t ] [ -s save_file | -S save_file ]
    [ -p ][ -P fix | -P ignore ] [ -r root_dir ] [ -w | -w+ ]
    lilo.real [ -C config_file ] [ -m map_file ] -R [ word ... ]
    lilo.real [ -C config_file ] -I name [ options ]
    lilo.real [ -C config_file ] [ -s save_file ] -u | -U [ boot_device ]
    lilo.real -A /dev/XXX [ N ] inquire/activate a partition
    lilo.real -M /dev/XXX [ mbr | ext ] install master boot record
    lilo.real -T help list additional options
    lilo.real -X internal compile-time options
    lilo.real -V [ -v ] version information

    root@ttyp0[knoppix]# lilo
    Unrecognized token "! Please edit /etc/lilo.conf before running lilo!" at or above line 20 in file '/etc/lilo.conf'
    root@ttyp0[knoppix]# lilo -v
    LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
    Development beyond version 21 Copyright (C) 1999-2004 John Coffman
    Released 08-Apr-2004, and compiled at 22:00:55 on Apr 18 2004
    Debian GNU/Linux

    Unrecognized token "! Please edit /etc/lilo.conf before running lilo!" at or above line 20 in file '/etc/lilo.conf'

    ??????

  9. #9
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    Quote Originally Posted by rrfish72
    Used kate to edit the file but cannot get lilo to run correct. This is what was done:

    root@ttyp0[knoppix]# su
    root@ttyp0[knoppix]# /sbin/lilo -c /mnt/hda3/etc/hda3
    usage: lilo.real [ -C config_file ] -q [ -m map_file ] [ -v N | -v ... ]
    lilo.real [ -C config_file ] [ -b boot_device ] [ -c ] [ -g | -l | -L ]
    [ -F ] [ -i boot_loader ] [ -m map_file ] [ -d delay ]
    [ -v N | -v ... ] [ -t ] [ -s save_file | -S save_file ]
    [ -p ][ -P fix | -P ignore ] [ -r root_dir ] [ -w | -w+ ]
    lilo.real [ -C config_file ] [ -m map_file ] -R [ word ... ]
    lilo.real [ -C config_file ] -I name [ options ]
    lilo.real [ -C config_file ] [ -s save_file ] -u | -U [ boot_device ]
    lilo.real -A /dev/XXX [ N ] inquire/activate a partition
    lilo.real -M /dev/XXX [ mbr | ext ] install master boot record
    lilo.real -T help list additional options
    lilo.real -X internal compile-time options
    lilo.real -V [ -v ] version information

    root@ttyp0[knoppix]# lilo
    Unrecognized token "! Please edit /etc/lilo.conf before running lilo!" at or above line 20 in file '/etc/lilo.conf'
    root@ttyp0[knoppix]# lilo -v
    LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
    Development beyond version 21 Copyright (C) 1999-2004 John Coffman
    Released 08-Apr-2004, and compiled at 22:00:55 on Apr 18 2004
    Debian GNU/Linux

    Unrecognized token "! Please edit /etc/lilo.conf before running lilo!" at or above line 20 in file '/etc/lilo.conf'

    ??????
    Sorry, my mistake. Checking with man lilo shows the command to specifiy lilo.conf is -C (uppercase), not -c. So what happened is that lilo tried to use to use the default /ramdisk/etc/lilo.conf which contains the line you quoted. I think it is there just to prevent it from running accidentaly since it is not yet set up.

  10. #10
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Wisconsin, USA
    Posts
    536
    root@ttyp0[knoppix]# /sbin/lilo -C /mnt/hda3/etc/hda3
    /mnt/hda3/etc/hda3: No such file or directory

    Still will not go through.

Page 1 of 2 12 LastLast

Similar Threads

  1. Reinstall lilo to hda, using hda lilo.conf and knoppix live
    By tomjermy in forum Hardware & Booting
    Replies: 1
    Last Post: 03-17-2005, 01:07 AM
  2. can't edit lilo.conf
    By totenengle in forum General Support
    Replies: 2
    Last Post: 07-09-2004, 03:39 AM
  3. lilo.conf
    By A. Jorge Garcia in forum Hdd Install / Debian / Apt
    Replies: 11
    Last Post: 12-05-2003, 05:03 PM
  4. Different LILO.conf during remastering
    By greenbridge in forum Customising & Remastering
    Replies: 0
    Last Post: 08-11-2003, 08:51 PM
  5. lilo.conf qeustion
    By mordor in forum General Support
    Replies: 0
    Last Post: 03-28-2003, 07:42 PM

Posting Permissions

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


NEW Palmrest Keyboard For Lenovo Thinkpad E15 Gen 2 20T8 20T9 Black 5M10W64513 picture

NEW Palmrest Keyboard For Lenovo Thinkpad E15 Gen 2 20T8 20T9 Black 5M10W64513

$80.99



For Lenovo IdeaPad 3 15IIL05 15IML05 15ADA05 15ARE05 Palmrest Keyboard Touchpad picture

For Lenovo IdeaPad 3 15IIL05 15IML05 15ADA05 15ARE05 Palmrest Keyboard Touchpad

$59.25



Genuine Lenovo IdeaPad 5-15IIL05 5-15ITL05 palmrest BL keyboard 5CB0Z31242 picture

Genuine Lenovo IdeaPad 5-15IIL05 5-15ITL05 palmrest BL keyboard 5CB0Z31242

$118.90



Lenovo 500w Gen 3 Laptop, 11.6

Lenovo 500w Gen 3 Laptop, 11.6" IPS Glass, N6000, 8GB, 128GB SSD, Win 11 Home

$186.99



Lenovo IP 5 16IAU7 16

Lenovo IP 5 16IAU7 16" 2.5K Chromebook i3-1215U 8GB Ram 128GB eMMC Chrome OS

$219.99



LENOVO LEGION 5 PRO 16ITH6H | CORE I7-11800H | 2TB | 16GB RAM | WIN11 | NEW picture

LENOVO LEGION 5 PRO 16ITH6H | CORE I7-11800H | 2TB | 16GB RAM | WIN11 | NEW

$699.99



Lenovo Notebook IdeaPad 1 Laptop, N6000, 4GB, 128GB eMMC, Win 11 Home-Certified picture

Lenovo Notebook IdeaPad 1 Laptop, N6000, 4GB, 128GB eMMC, Win 11 Home-Certified

$229.49



Lenovo Ideapad 1i 15.6

Lenovo Ideapad 1i 15.6" FHD Notebook Intel Core i5-1235U 8GB RAM 256GB SSD

$339.99



Lenovo K14 AMD Laptop, 14

Lenovo K14 AMD Laptop, 14" FHD IPS LED , Ryzen 5 5600U, GB, 256GB SSD

$569.00



LENOVO THINKBOOK 14S YOGA | CORE I7-1165G7 | 512GB | 16GB | WIN10 | NEW OPEN BOX picture

LENOVO THINKBOOK 14S YOGA | CORE I7-1165G7 | 512GB | 16GB | WIN10 | NEW OPEN BOX

$419.99