Problems amending Lilo.conf


Forum: HD Install
Topic: Problems amending Lilo.conf
started by: lobber

Posted by lobber on July 22 2005,11:04
I'm totally new to linux so please bear with me while I appear a total noob.

I've got an old laptop which I am using to play around with Linux.  I had problems booting with the Live CD and finally figured out I needed to boot with dsl noagp in order to get it up and running.

I've now decided to install it to the HD using the HD_Install script.  The script ran fine and rebooted the laptop. However, it still hangs after autodetecting the devices because there isn't a noagp specified in the Lilo.conf.   Easy, I thought, amend the lilo.conf file to include noagp in the append section.

So I did the following:

sudo mount /mnt/hda1 -w
sudo beaver /mnt/hda1/etc/lilo.conf   and made the changes
sudo ln -sf /mnt/hda1/etc/lilo.conf
sudo chmod 644 /mnt/hda1/lilo.conf
sudo lilo -C /mnt/hda1/etc/lilo.conf

At this point I get the following error:

Fatal: creat /boot/map~: Read-only file system

Has anyone got any suggestions?

I can do a frugal install which prompts you for boot options and I can put in noagp as part of the script.  Why doesn't the HD install prompt you?

Thanks for any help.

Cheers
Andy

Posted by jls legalize on July 22 2005,13:40
in order to modify the lilo.conf on frugal do this:

1. Open a root shell Xhells>Root Access
2. mount /mnt/hda2
3. Now using your editor of choice... edit the following file for your boot options:
  /mnt/hda2/boot/lilo.conf
4. ln -sf /mnt/hda2/boot /
5. lilo -C /mnt/hda2/boot/lilo.conf
6. reboot

maybe it works also on hd install

Posted by lobber on July 22 2005,15:26
Thanks for the suggestion. If I do that, it tries to create a new file called lilo.conf in the boot folder as this file does not exist there.

Should there be one there?

Cheers
Andy

Posted by spotslayer on July 22 2005,23:06
lobber, Please make sure you are pointing to the location of lilo.conf on your computer. It may not be in /mnt/hda2.
Posted by tjm4fun on July 24 2005,01:37
Quote (lobber @ July 22 2005,07:04)

Quote:  (and some added comments)

So I did the following:

sudo mount /mnt/hda1 -w
sudo beaver /mnt/hda1/etc/lilo.conf   and made the changes
sudo ln -sf /mnt/hda1/etc/lilo.conf       <<<<<don't need this
sudo chmod 644 /mnt/hda1/lilo.conf   <<<<< don't need this
sudo lilo -C /mnt/hda1/etc/lilo.conf      <<<<<<<almost got it!!!

At this point I get the following error:

Fatal: creat /boot/map~: Read-only file system <<<<<<of course you will get this error. it is trying to write to the ramdisk.
When running live, you need to  tell lilo to write it to hda, so you need to add another parm to the lilo command:

lilo -M /dev/XXX [ mbr | ext ]   install master boot record

so the last command should be:
sudo lilo -C /mnt/hda1/etc/lilo.conf -M /dev/hda mbr

'hopefully this will sort it out.

Posted by ke4nt1 on July 24 2005,04:45
bookmark
Posted by DougInKY on July 25 2005,01:55
Lobber, I had the same problem here.

The easy way around it is to just hold the Alt key down while the system is booting from the hard drive after you have installed DSL. It will then stop at a LILO prompt and you can enter "linux noagp" and press return. Once in the system, you can edit lilo.conf and type lilo. Saves a lot of headaches.

Doug

Posted by lobber on July 31 2005,11:54
Thanks for all your help guys. I tried the -M bit on the lilo command, but was getting a read only error.  Not sure why when I was running it in a root access shell.

I got it working by pressing alt and booting with the linux noagp command.  Once in, it let me use the lilo command successfully.

All help much appreciated.  I have learnt a lot with this little problem.

Now I have to make my DLink wireless card work!

Cheers
Andy

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.