LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-01-2004, 11:10 PM   #1
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Rep: Reputation: 15
Using the 2nd CD: logged in as root@rescuedisc, change lilo.conf file or any files?


Question:

Using the 2nd Slackware CD: logged in as root@rescuedisc, how do I change lilo.conf file or make any changes at all?

Summary:

This may seem like an odd question, since I was able to use the rescue floppy-disk and make my changes that way.

However, I had tried the 2nd Slackware CD Rescuedisk first and I had believe that this was the prefered method.

I must be wrong...

I couldn't even see the lilo.conf file when I used the 2nd Slackware CD Rescuedisk.

Do I need specific boot parameters? The parameters suggested at the boot prompt didn't get me too far.

Thank you for reading this post.
 
Old 11-01-2004, 11:32 PM   #2
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
you need to mount the / partition first. check your /etc/fstab for the correct partition number, then open a terminal and do this:

su

mkdir /mnt/rescue
mnt /dev/hda3 /mnt/rescue

that should mount the data in /mnt/rescue/ and you can open /mnt/rescue/etc/lilo.conf and edit it. make sure you read the manpage for mnt first.

man mnt

Last edited by mcd; 11-01-2004 at 11:35 PM.
 
Old 11-02-2004, 04:28 AM   #3
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Just want to add one minor point and one major point to what mcd said.

Minor point:
In the command 'mnt /dev/hda3 /mnt/rescue', you'll have to change the '/dev/hda3' to whichever partition you find in fstab which corresponds to /

Major point:
Whatever changes you make to lilo.conf won't take effect until you run lilo. Use the command 'chroot /mnt/rescue /sbin/lilo'

Enjoy!
--- Cerbere
 
Old 11-02-2004, 09:14 AM   #4
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Original Poster
Rep: Reputation: 15
Thank you.

Worked as described above...
 
  


Reply


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
not logged in as root, how to change files short101 Linux - Newbie 3 06-22-2004 05:21 AM
Modify lilo.conf when not logged in as root BadBigShot Linux - Newbie 7 03-27-2004 11:09 AM
How do I change the Default in LILO.CONF timmy toad Linux - Newbie 3 09-26-2003 01:28 PM
LILO / lilo.conf - can't change the config clearh20 Linux - Newbie 14 06-05-2003 09:20 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM


All times are GMT -5. The time now is 12:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration