[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re : L 90 90 90 90 90



Owen Jones wrote:

I think i did re run lilo, how would i get to lilo.conf?i am a complete newbie i dont know any linux commands, i still can only get into the cdrom because of this problem im not getting into linux itself

Strictly speaking, if you've booted off the Linux kernel, you're "into linux". Linux is just the kernel. Everything else is GNU software. Thus Debian's proper name is Debian GNU/Linux.

When you boot off the rescue CD, do you get to a prompt that asks for root's password, or for any username/password?

I'm assuming it's a normal prompt, asking for any username/password.

Enter your root name/password.

Check to see if / is mounted read-only. Run "mount"; here's an example of what you might see:

enjae[westk]:/home/westk> mount
/dev/hda1 on / type unknown (rw,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hda5 on /usr type ext3 (rw)

Notice my / partition is mounted on /dev/hda1, and it's mounted read-write, unless errors occur in which case it gets remounted as read-only. (In a production environment, you might want to mount / as read-only, for security's sake, but for a home machine behind a firewall, the inconvenience when it comes time to upgrade outweighs the security issues, in my opinion.)

If yours is mounted read-only, you'll have to remount it as read-write:
 mount -o remount,rw /dev/hda1 /
(or whichever /dev/hd?? is your root partition)

Now just run "/sbin/lilo" (or perhaps just "lilo", depending on your path settings). You should see something like:

enjae[westk]:/home/westk> sudo lilo
Password:
Added Linux *
Skipping /vmlinuz.old

If you get any error messages, you'll have to fix them in /etc/lilo.conf. The "vi" editing program is almost certainly available on your system, but it's pretty nasty for newbies. You might prefer "nano" if it's available:
nano /etc/lilo.conf
Here's my file for comparison (stripped of comments).

lba32
boot=/dev/hda
root=/dev/hda1
install=/boot/boot.b
delay=20
vga=normal
default=Linux
image=/vmlinuz
        label=Linux
        read-only
        initrd=/initrd.img
image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional


Just making a guess, I'd suspect your problem is that the boot line says /dev/hda1 instead of /dev/hda. Regardless, fix whatever the problem is, save the file ("ESC", then ":", then "wq<ENTER>" in vi, or Ctrl-X followed by "y<ENTER>" in nano). Then rerun lilo ("/sbin/lilo") and reboot ("init 6", or "reboot", or "shutdown -r now", or Ctrl-Alt-Delete).

--
Kent


--
Kent




Reply to: