Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-07-2004, 08:37 PM   #1
Registered: Jul 2004
Location: Mass
Distribution: Freebsd 5.3, Debian sid 2.6.7
Posts: 101

Rep: Reputation: 15
Unhappy HELP! how to lilo in knoppix??


Being the stupidest newbie of all, I played around with the fdisk /dev/hda so that the root partition is no longer what my dear lilo boots, and forgot to update lilo. So now i'm in knoppix, trying to load in a revised lilo.conf into my MBR, but the thing is, when i ran something like lilo -C /mnt/hda5/etc/lilo.conf, the thing doesn't work and give me something like "Fatal: Sorry, don't know how to handle device 0xf000"

i guess my question is how can i load in a new lilo.conf so it knows which partition is now the new root, without bein able to get into the system in the first place? please help!

Thanks a bunch!
Old 11-07-2004, 08:41 PM   #2
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
does liloconfig have any more success?
Old 11-07-2004, 08:51 PM   #3
Senior Member
Registered: Oct 2003
Posts: 2,666

Rep: Reputation: 238Reputation: 238Reputation: 238
Open a console and run this:

$ su
# umount /dev/hda5
# mount /dev/hda5
# chroot /mnt/hda5
# /sbin/lilo -v

This assumes your root partition is on hda5, you have edited your /etc/lilo.conf file on hda5 and it is the revised lilo.conf you want to write to the mbr, and you made any necessary changes to /etc/fstab, if any, that may have been required due to any changes in the partition structure on hda.

Note, knoppix mounts all partitions "nodev" and read only which is why you have to unmount the partition that your lilo.conf is on and remount it using the "/dev/hdax" before chrooting to /mnt/hda5 and running lilo from hda5. Also, knoppix has no root password; just doing "su" and hitting the Enter key will take you to a root prompt.
Old 11-07-2004, 08:51 PM   #4
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 31
Mount your root partition like this:

mount -o dev /dev/hdax
chroot into it:

chroot /mnt/hdax
Then run lilo as usual. (just type lilo).
Old 11-07-2004, 09:17 PM   #5
Registered: Jul 2004
Location: Mass
Distribution: Freebsd 5.3, Debian sid 2.6.7
Posts: 101

Original Poster
Rep: Reputation: 15

thank you for those heaven sent replies!

that chroot was a great trick!

i'm back in my debian box ready to do more damage now

thanks again!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:15 PM
Editing LILO in a Knoppix Install projectborn Linux - Newbie 9 05-30-2005 04:00 PM
How to install lilo from knoppix JediMasterTux Linux - Newbie 3 12-19-2004 04:58 PM
Remove LILO and Knoppix/Debian go4java Linux - Newbie 2 10-12-2004 04:34 AM
Re-installing Lilo with Knoppix E-ball Linux - Newbie 8 09-14-2004 01:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:18 AM.

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