Jump to content

lilo [SOLVED]


ADB
 Share

Recommended Posts

I 'm trying to get my 2 distro's (Mandrake and fedora) in my linuxloader.

 

Here's what I did already:

*I've made a map in /mnt named fedora

*tried to edit fstab:

/dev/hda6 / ext3 defaults 1 1
/dev/hda7 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,sync,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
[b]/dev/hda3 /mnt/fedora auto users ext3 defaults 0 0[/b]

 

*this is lilo.conf:

default="linux"
boot=/dev/hda
map=/boot/map
keytable=/boot/be2-latin1.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda6
initrd=/boot/initrd.img
append="acpi=ht resume=/dev/hda5 splash=silent"
vga=788
read-only
[b]image=mnt/fedora/boot/vmlinuz-2.6.9-1.667
label="fedora"
root=/dev/hda3
initrd=/mnt/fedora/boot/initrd-2.6.9-1.667.img
append=aspi=ht
vga=788
read-only[/b]

 

When I type in console:mount /dev/hda3

is the output: cannot find /dev/hda3 in /etc/fstab

 

PLease tell me what is wrong here? what did I forget?

Edited by ADB
Link to comment
Share on other sites

try changing your lilo entry to the following. take note of the changes i made in RED...........

 

image=/mnt/fedora/boot/vmlinuz-2.6.9-1.667

label="fedora"

root=/dev/hda3

initrd=/mnt/fedora/boot/initrd-2.6.9-1.667.img

append="acpi=ht splash=silent resume=/dev/hda5"

vga=788

read-only

 

you had some incorrect syntax.

 

also, make sure you run lilo -v to update the entries. in terminal as root do..........

 

lilo -v

 

if you get no errors, reboot, select the Fedora entry, it should boot.

 

Chris

Link to comment
Share on other sites

thank you chris z

I've made the changes :-)

but:

when I run lilo he does not add fedora ( no errormessage )

but when I try to mount hda3 I 'm getting this errormessage saying that there is something wrong with this line in fstab

/dev/hda3 /mnt/fedora auto users ext3 defaults 0 0

Link to comment
Share on other sites

ok, instead of editing fstab by hand, try using diskdrake. go to Mandrake Control Center->mount points->partitions. just click "ok" to the back up warning box, you're not going to use it. click on a partition you want to be able to mount (in this case your Fedora partition), name it, mount it. when you're done, allow it to write the changes to fstab. when you name the partition, name it as you have it listed in lilo & put the full path in. IE: /mnt/<name here>.

 

if you want to edit fstab manually, here's an example of mine. i dual boot Mandrake, on for stability, one for testing. here's my stable Mandrake entry in fstab........

 

/dev/hda10 /mnt/mandrake100/boot ext3 defaults 1 2
/dev/hda14 /mnt/mandrake100/home reiserfs defaults 1 2
/dev/hda12 /mnt/mandrake100/root reiserfs defaults 1 2
/dev/hda13 /mnt/mandrake100/usr reiserfs defaults 1 2

 

note, if you have seperate partitions in Fedora for /usr, /home, etc. you'll need to mount & name each one in MCC, not just Fedora, to make them accessible. IE: /mnt/fedora/home, /mnt/fedora/root, etc.

 

Chris

Link to comment
Share on other sites

chris z :-) thank you so much...

I removed the line in fstab and used the graf interface and did what you said...and it worked :-)

[root@localhost etc]# lilo
Added linux *
Added linux-nonfb
Added failsafe
Added fedora

:thanks:

Edited by ADB
Link to comment
Share on other sites

cool! glad you got it worked out & you're welcome! :thumbs:

 

Chris

Edited by chris z
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...