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.
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?
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.
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.
Are you sure hda1 is where your linux partition is?
It's look like hda1 belongs to windows.
Read this post http://www.knoppix.net/forum/viewtop...=lilo&start=10
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.
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)
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.Originally Posted by rrfish72
root@ttyp0[knoppix]# /sbin/lilo -C /mnt/hda3/etc/hda3
/mnt/hda3/etc/hda3: No such file or directory
Still will not go through.
HP ProLiant DL380 Gen9 8SFF Server - E5-2698 v3 - 32Cores - 128GB Ram - 1TB HDD
$299.00
Gigabyte 2U Server 2x E5-2697 v3 128gb Ram 12x 3.5" 12G 9362-8i Raid 2x 800w
$449.99
DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 128GB H730 4xRJ45
$428.00
Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT
$490.00
Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD
$123.19
HPE Proliant DL360 Gen9 1x Xeon E5-2620 V4 2.10GHZ 32GB DDR4-2133MHZ 2x 500W PSU
$100.95
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
Lenovo Thinkstation P520 Server XEON W-2135 3.7GHz 64GB 512GB QUADRO P1000
$215.00
Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray
$69.99
HP ProLiant DL360p G8 Server 2x E5-2690 2.9GHz 16-Cores / 192GB / P420 / 2x 750w
$189.99