LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2005, 11:55 AM   #1
mstep
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Rep: Reputation: 15
LILO probrems


Hi. I'm completely new to Linux and installed Debian Woody a couple of weeks ago. everything ran fine, and when Debian Sarge came out I ran apt-get dist-upgrade. The update appeared to run smoothly, however I was unaware that I had to manually install LILO afterwards. When I rebooted my computer I was confronted with just the LI of LILO (a rather common error I gather).

I booted into Knoppix from a cd and searched the net for help. Eventually I found what I was looking for. It seems several people had the same problem as me. Using konsole in Knoppix I issued the following commands:

>su
>mount -rw -t ext2 /dev/hda3 /mnt
>chroot /mnt

ok so far so good, it looked as though I had root access to my files. But when I tried running /etc/lilo, I got the following message:

warning '/proc/pratitions/' does not exist, disk scan bypassed
Fatal: open /vmlinuz:no such file or directory

Great. Later I noticed that there was a file in /dev/hda1 (my boot partition) called vmlinuz. I tried >mount -rw -t ext2 /dev/hda1 /mnt and though it mounted, I could not chroot, getting the error:

chroot: cannot run command `/bin/bash': no such file or directory

So, now I'm at a loss. I don't know which partition to use to run this file, and even if I did, it seems it wouldn't be much of a help. Hopefully there's someone out there who can help me get back my system
 
Old 06-25-2005, 12:04 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

You will need to mount both partitions in the correct place:
Code:
mount -rw -t ext2 /dev/hda3 /mnt
mount -rw -t ext2 /dev/hda1 /mnt/boot
chroot /mnt
/sbin/lilo
You may also want to consider moving to ext3 rather than ext2.
 
Old 06-25-2005, 12:24 PM   #3
mstep
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
Welcome to LQ.

You will need to mount both partitions in the correct place:
Code:
mount -rw -t ext2 /dev/hda3 /mnt
mount -rw -t ext2 /dev/hda1 /mnt/boot
chroot /mnt
/sbin/lilo
You may also want to consider moving to ext3 rather than ext2.
I tried mounting at /mnt/boot and received the following error:

mount: mount point at /mnt/boot does not exist.

And yes upgrading to ext3 has been on my todo list ever since my first fsck
 
Old 06-26-2005, 03:59 AM   #4
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
==============================
mount -rw -t ext2 /dev/hda3 /mnt
mkdir /mnt/boot
mount -rw -t ext2 /dev/hda1 /mnt/boot
chroot /mnt
/sbin/lilo
===============================
 
Old 06-26-2005, 11:16 AM   #5
mstep
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Thankyou both very much
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 04:50 PM
lilo and openmosix was just installed and was added to lilo boot menu but.. kublador Linux - Software 0 06-18-2003 01:59 AM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration