Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-01-2001, 12:17 PM   #1
LQ Newbie
Registered: Dec 2001
Distribution: SuSE 7.3
Posts: 4

Rep: Reputation: 0
Question Editing Lilo

SuSE 7.3

Trying out this

/etc/lilo.conf as pointed out in the manual and here,

for some reason, I get permission denied.

Running in Eterm 0.9

I am LOGGED IN as ROOT, superuser.

Im using system commander 2000, and it tells me to edit LILO...I wish I could.
Old 12-01-2001, 12:56 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
i usually use the vi editor to make my changes to lilo, then after making the changes, run /sbin/lilo to activate the changes... you might want to try that and see if it works.
Old 12-01-2001, 02:34 PM   #3
LQ Newbie
Registered: Dec 2001
Distribution: SuSE 7.3
Posts: 4

Original Poster
Rep: Reputation: 0
Doh' !

VI, at root term, it gives me a nice prompt about what it is,
how would I associate it with lilo though,
and /etc/lilo.conf still gives me permission denied.....

Old 12-01-2001, 04:31 PM   #4
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
To open lilo.conf with vi, you would just type "vi lilo.conf" (no quotes). Enter insert mode (hit "i"), make your changes, and exit insert mode by hitting <esc>. Save your changes and quit by typing ZZ.

If it still yells at you about permissions, do "ls -l /etc/lilo.conf" and post the output.

Also, did you log in as root, or did you su to root? If su, try "su -" instead.

Last edited by DMR; 12-01-2001 at 04:32 PM.
Old 12-01-2001, 05:56 PM   #5
LQ Newbie
Registered: Dec 2001
Distribution: SuSE 7.3
Posts: 4

Original Poster
Rep: Reputation: 0
Hey, thanks for all the replies.

I got in, and edited.

Seemed to work, but now only linux would boot.
I am set to /dev/hda5 and am trying to get system commander 2000 to allow me to boot to linux as an option....but it always says that the boot record is missing....(I had to restore the System commander MBR by the way)

So, I have system commander, which can boot winxp and win98se, and I can boot linux it I use the SuSE bootdisk.
that sucks though, (I just want to figure out how to do this anyways, without having to use the disk, or INSTALLING Linux first, then System commander, then windows)

LILO is a little harder than it looks.
Old 12-01-2001, 08:35 PM   #6
LQ Addict
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Is /dev/hda5 your root ' / ' partition of SuSE? If it is, then make sure your ' boot= ' line reads ' boot=/dev/hda5 '. Then rerun lilo and try System Commander again.
Old 12-02-2001, 06:48 PM   #7
LQ Newbie
Registered: Dec 2001
Distribution: SuSE 7.3
Posts: 4

Original Poster
Rep: Reputation: 0
Okay, boot= line is set to


like you said, but THAT boots me to linux and only linux, I have to
restore SC 2000 mbr to fix that.

Being that I am still getting my feet wet with SuSE...
(GREAT Look and feel by the way, I didn't know what I was missing with Linux) I don't know how to copy, rename, stuff like that.....

I will tell you EXACLTY how System Commander 2000 words it.
[All credit given to V-Com]

--------- "System Commander 2000 is fully compatible with Linux.
To Boot Properly into Linux, we recommend having LILO's Target location set to the root superblock. [ IS THAT THE SAME THING?]
This option is typically selected from within linux while installing linux, [DID IT DURING INSTALL, /dev/hda5 SAME ISSUE] For the fastest and easiest boot, we suggest having LILO boot linux, and no other OS.

To install LILO to the root superblock [IS THAT ROOT FOR SHORT?]
on an existing partition, modify the LILO configuration file, typically /etc/lilo.conf, so that the boot= line refers to your linux root partition, and not your first hard disk: ie boot=/dev/hda5 instead of boot=/dev/hda

After Editing the LILO.conf file, you must run the LILO program (typically /sbin/lilo)"

****Okay, I did try the above, and some of your suggestions (to you DMR) I put in "ls -l /etc/lilo.conf"

and I get this:

-rw------ 1 root root 613 Dec 1 01:30 /etc/lilo/conf

I had to do the same for this "ls -l /sbin/lilo"

and I get this:

-rwxr-xr-x 1 root root 80224 sep 23 15:38 (in red) /sbin/lilo

System commander also offers this option.... this is probably what I will have to do.....How do I copy and save from a terminal though? :

-----------"In very rare cases, an operating system fails to follow the pc architecture [Good one V-com, way to blame the SW]
standard and requires it's own master boot record...(MBR) to boot properly. The only two cases we've encountered are the pSOS operating system, and Linux's Optional LILO Mbr Intstall. Linux is normally installed with a partition boot (called the superblock in Linux terminology) and should not need this MBR File feature.

To setup the MBR Boot selection, you will need a binary file image of the MBR. If the OSes MBR was installed prior to System Commander 2000, we will have saved the MBR in the BOOT.DAT
Please copy this to your root directory."

What would I make of this....I don't know enough about linux to know where to start....

Thanks again.

Last edited by tmnt_power; 12-02-2001 at 06:50 PM.
Old 12-02-2001, 07:13 PM   #8
Registered: Mar 2001
Distribution: enigma, slack8
Posts: 677

Rep: Reputation: 30
ok this is unrelated to your booting problems coz i don't use system commander... so i don't know much about it...

as to copying and renaming files...
if you're doing this from the command line,

copying command:
cp /sourcedirectory/sourcefile /destinationdirectory/destinationfile

for moving files:
mv /sourcedirectory/sourcefile /destinationdirectory/destinationfile

for more information on cp and mv type:
man cp
man mv

for more info on basic linux commands, check out your favorite linux website, eg., etc (can search from search engines like google)
for starters, here's a useful site:


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Lilo Kane2002 Linux - General 2 07-06-2004 11:29 PM
Editing LILO Nukem Linux - Newbie 7 11-25-2003 10:53 AM
No new kernel-option in LILO after editing lilo.conf corwax Debian 3 08-26-2003 08:55 PM
Editing LILO Negativ13 Linux - Newbie 3 12-23-2002 03:10 PM
Editing the Lilo wings9191 Linux - Newbie 1 02-12-2002 05:22 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:56 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