LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   LILO fix failure (http://www.linuxquestions.org/questions/linux-general-1/lilo-fix-failure-4175416749/)

RiderG7 07-14-2012 05:33 PM

LILO fix failure
 
Recently I tried to fix a 15-years-old pc by installing on it DSL.It's first OS was windows98 and i deleted it in order to take full advantage of the disk space(2.5 Gb!).For the installation I followed this:http://www.damnsmalllinux.org/wiki/i...hard_disk.html.
I created a swap partition(hdc1:500MB)and the bootable partition(hdc2:2GB).Everything was fine and i choosed to have LILO as boot loader.
But when I restarted i got the "L 99.." error.After a little google search I tried editing lilo.conf and run lilo install again,through dsl live cd.
Now I have to deal with this error:
Code:

Fatal:creat  /boot/map~:Read-only filesystem
I tried chroot but when I type:
Code:

chroot /mnt/hdc/bin/bash
I get error:
Code:

/bin/bash:not a directory
When I delete "bin/bash" chroot is succesfull but lilo still can't run.
When run "chroot /mnt/hdc2" and I'm typing from "root@box" I get the error:
Code:

Fatal:cannot open /dev/hdc:permission denied
If then I try "su lilo" it says "invalid id:lilo"
I found a thread with the same error here:http://www.linuxquestions.org/questi...ooting-359458/But it gives no certain answer to the problem.
So how can I reconfigure lilo when I'm root but still have "access denied errors"????
EDIT:partially resolved.It was because of nodev that i couldn't edit lilo.
The solution was:
Code:

mount -o dev /dev/hdc2
I finally updated lilo with lilo -M /dev/hdc.
But when I reboted I get "No boot signature in partition".
???

EDIT2: I tried re-editing lilo.conf and use lilo -A to activate hdc2 but got:"no changes to partition table..." and the problem remains.


All times are GMT -5. The time now is 02:51 AM.