It is currently Sat May 25, 2013 8:30 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Dual booting not possible using LILO [SOLVED]
PostPosted: Wed Jun 20, 2012 3:26 am 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 5:36 pm
Posts: 1244
Hello,

I am trying to enable dual booting of Zenwalk Snapshot and Ubuntu using LILO. This is my fstab:

/dev/sda5 swap swap defaults 0 0
/dev/sda6 / ext4 defaults,noatime 1 1
/dev/sda7 /home ext4 defaults,noatime 1 2
/dev/sda1 /ubuntu ext4 defaults,noatime 1 2
/dev/sda2 /ubuntu/home ext4 defaults,noatime 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs nodev,nosuid,noexec,rw 0 0

This shows that my root directory of Ubuntu which is on /dev/sda1 is mounted as /ubuntu and my home partition of Ubuntu which is on /dev/sda2 is mounted as /ubuntu/home

I edited lilo.conf as shown below:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append=" resume=/dev/sda5 splash quiet rootfstype=ext4"
boot = /dev/sda
bitmap=/boot/splash.bmp
bmp-table=234p,348p,1,4
bmp-colors=220,0,,255,220,
bmp-timer=539p,396p,220,0,
lba32
prompt
timeout = 750
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda6
label = Zenwalk
# initrd = /boot/initrd.img
read-only
# Linux bootable partition config ends

# Linux bootable partition config begins
image = /ubuntu/boot/vmlinuz
root = /dev/sda1
label = Ubuntu
# initrd = /boot/initrd.img
read-only
# Linux bootable partition config ends

After this, if I run lilo only Zenwalk is showing in the LILO boot menu. I am unable to find the mistake. Can anybody help?

Anand


Last edited by rsamurti on Sat Jun 23, 2012 1:55 am, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: Dual booting not possible using LILO.
PostPosted: Wed Jun 20, 2012 4:46 am 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Tue Mar 11, 2008 11:46 pm
Posts: 31
HI.
Ubuntu uses UUID to identify partitions.
Try in terminal :

ls -l /dev/disk/by-uuid


Afther then replace root = /dev/sda1 with the new value.

root = /dev/disk/by-uuid/XXXXXXXXXXXX

_________________
Zenwalk User


 Profile Send private message  
 
 Post subject: Re: Dual booting not possible using LILO.
PostPosted: Wed Jun 20, 2012 2:17 pm 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 5:36 pm
Posts: 1244
Hi sk-skuba,

I tried your solution. But it does not work.

Anand


 Profile Send private message  
 
 Post subject: Re: Dual booting not possible using LILO.
PostPosted: Wed Jun 20, 2012 3:37 pm 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Tue Mar 11, 2008 11:46 pm
Posts: 31
You try
/sbin/lilo -C /etc/lilo.conf

Because lilo make a lilo.conf in /boot/tmp/ and use this file.If you take a look there, it is only zenwalk listed there.

_________________
Zenwalk User


 Profile Send private message  
 
 Post subject: Re: Dual booting not possible using LILO.
PostPosted: Wed Jun 20, 2012 5:07 pm 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 5:36 pm
Posts: 1244
Hi sk-skuba,

I tried this. It does not work. I tried rewriting grub in Ubuntu to include Zenwalk in the boot menu. But this listed only Ubuntu in the boot menu.

Anand


 Profile Send private message  
 
 Post subject: Re: Dual booting not possible using LILO.
PostPosted: Wed Jun 20, 2012 5:28 pm 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Tue Mar 11, 2008 11:46 pm
Posts: 31
Try
update-grub
If not work, you have to create a file in /etc/grub.d/
make it 11_zenwalk, and make it executable.
mine is like this :

#!/bin/sh -e
#echo "Adding Zenwalk 7 to grub menu"

cat << EOF
menuentry "Zenwalk 7.0" {
insmod reiserfs
insmod raid
set root=(md1)
linux /boot/boot4/vmlinuz root=/dev/md1
initrd /boot/boot4/initrd.splash
}
EOF

Of course write youre system values.
Then run update-gub.

_________________
Zenwalk User


 Profile Send private message  
 
 Post subject: Re: Dual booting not possible using LILO [SOLVED]
PostPosted: Sat Jun 23, 2012 1:56 am 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 5:36 pm
Posts: 1244
Hi,

After applying updates in Ubuntu I did update-grub in Ubuntu. This detectd Zenwalk. I did not do any thing. But why I cannot add Ubuntu to LILO boot menu is still a mystery.

Anand


 Profile Send private message  
 
 Post subject: Re: Dual booting not possible using LILO [SOLVED]
PostPosted: Sat Jun 23, 2012 3:29 pm 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Tue Mar 11, 2008 11:46 pm
Posts: 31
It is not.
You have to look at /etc/fstab from Ubuntu to see how it identify the partitions.After that you have to set the zenwalk lilo.conf.I made it with Cent OS and FreeBSD too.
Finnaly I edited the /sbin/lilo to exclude lilotemp from there.

_________________
Zenwalk User


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
 
cron