PDA

View Full Version : LILo problem



JCComputers
09-27-2004, 12:32 PM
hey i am having a problem with the Lilo bootloader.
i had it all working fine with knoppix and win2k but then i tried to install windows XP and now it auto loads to windows. I had a friend install linux for me and i dont really have much idea on how to configure it. any help would be appreciated.

Markus
09-27-2004, 12:58 PM
When you installed XP it overwrote the MBR on your HD, so now lilo is gone and you have to put it back:

- boot the Knoppix CD
- start konsole
- su
- mount /mnt/hdXY (XY=your linux / device and partition)
- chroot /mnt/hdXY
- lilo -v (or /sbin/lilo -v)
- Ctrl-d (three times to exit chroot, su and konsole)
- done

shah
09-27-2004, 01:06 PM
Try this, boot using knoppix cd, open kosole as SU:

mount /dev/hdxx /mnt **xx=your linux partition on hdd
ROOT=/mnt/mnt/sbin/lilo

or

moount /dev/hdxx /mnt/hdxx
chroot /mnt/hdxx
lilo

:D :D

JCComputers
09-27-2004, 01:49 PM
ok i tried this :

- boot the Knoppix CD
- start konsole
- su
- mount /mnt/hdXY (XY=your linux / device and partition)
- chroot /mnt/hdXY
- lilo -v (or /sbin/lilo -v)
- Ctrl-d (three times to exit chroot, su and konsole)
- done

but when i did the chroot thing it said it cant be found in the /etc/bash i think it was. plus i dont know what konsole is
and su ???

Markus
09-27-2004, 02:03 PM
but when i did the chroot thing it said it cant be found in the /etc/bash i think it was. This could mean you chose the wrong XY. Where did you install Linux? If ie. hda5, you should type: chroot /mnt/hda5


plus i dont know what konsole is and su ??? Konsole is a terminal, as in console, it's probably where you typed the commands. Su makes you root (Admin)

If it doesn't work , try mount like Shah said: mount /dev/hdxy /mnt/hdxy

JCComputers
09-28-2004, 04:17 AM
Ok i have got that sorted but after i have edited the lilo.conf file and then i rerun lilo it says something like "hda1(mbr to my knowledge) is read only.

hda1 - Win 2000 and (mbr)
hda2
hda3 - Linux
hda4 - XP Home
hda5

the other two are for data storage.

JCComputers
09-28-2004, 04:54 AM
ok here is the error messages i get wanted to be a bit more specific

I run lilo after edit
=Fatal : open /dev/hda1 : permission denied

when i try and mount hda1

=mount :cannot mount block device /dev/hda1 read only

any help will be appreciated.

shah
09-28-2004, 05:50 AM
Try:
mount -o dev /dev/hda1 /mnt/hda1
chroot /mnt/hda1
lilo
:D

user unknown
09-29-2004, 02:39 AM
A 'who' question can't be answered 'yes' or 'no'.

JCComputers
09-30-2004, 02:14 AM
my mbr is on hda1
i edit everything right but when i run lilo it says: /dev/hda1 permission denied i have no idea why. i have tried the command : mount -rw /dev/hda1

Markus
09-30-2004, 07:19 AM
Try right-clicking the desktop icon and changing read-write mode or have a look at: http://www.knoppix.net/docs/index.php/FaqRescue