LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk
User Name
Password
Zenwalk This forum is for the discussion of Zenwalk Linux.

Notices

Reply
 
Search this Thread
Old 05-10-2007, 09:54 PM   #1
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Dual boot with Debian


Having trouble getting a dual boot linux system with zenwalker. have 4 partitions on the hard drive:

hda1=zenwalk xfs
hda2=debian xfs
hda3=slackware xfs
hda4=swap

I can boot Debian and Slackware together with Lilo, but not Zenwalk with anything.

Lilo with Zenwalk

lba32 # Allow booting past 1024th cylinder with a recent BIOS
append="resume2=swap:/dev/sda4 splash=silent "
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,
vga = 791
image = /boot/vmlinuz
root = /dev/sda1
label = Zenwalk
initrd = /boot/initrd.splash
read-only

Lilo to boot Debian:

boot=/dev/hda
delay=20
vga = 791
default=Debian
image=/vmlinuz
root=/dev/hda2
label=Debian
read-only
initrd=/initrd.img


Any advice would be greatly appreciated. If i can get these two to work then Slackware should be easy.

Last edited by Hern_28; 05-13-2007 at 09:01 AM.
 
Old 05-11-2007, 06:57 AM   #2
tinksmartbstupi
Member
 
Registered: Dec 2004
Location: Coram, NY
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
What's /dev/hda4? and I believe there is a limit to 4 primary partitions on one drive. if you can do it, you're better off with a boot drive and then each of the different Linux OS's on extended or virtual partitions (limitations due to partition table size, at least that's what it was when I started working on computers). If you say there is no /dev/hda4, then there's a problem because you shouldn't have a hda5 without an hda4
 
Old 05-11-2007, 10:14 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Edit: Explanation of apparent non sequitur:

This & post #2 no longer make sense -- OP originally referred to "hda5" & not to any "hda4". Post #4 explains that "hda5" was a typo & the edit history shows (implicitly) that OP fixed the mistake.


hda4 is probably his extended part. & he thought it's unnecessary to list it. If he had showed that output as a result of fdisk -l in a "Code" block, then I would worry.

Last edited by archtoad6; 05-12-2007 at 06:15 AM. Reason: Add explanation of apparent non sequitur
 
Old 05-11-2007, 11:59 AM   #4
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Original Poster
Rep: Reputation: 38
oops

hda4 is swap sorry for the typo.
 
Old 05-11-2007, 01:51 PM   #5
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
is lilo configured from ZW or slack/debian (-> from kernel < 2.6.19 or kernel >= 2.6.19) ?

in any case : you'll have to "play" with sdX / hdX (for boot= and root=)


you can have a look of grub config here:
http://support.zenwalk.org/index.php/topic,7973.0.html
it might help
 
Old 05-11-2007, 04:41 PM   #6
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Original Poster
Rep: Reputation: 38
Lilo

Lilo can be configured from either. i can boot either system with super grub. currently booting with lilo 22.7.3 from Zenwalker 2.6.20. Debian is 2.6.18.

in grub, to boot hda2 i have to enter "root (hd0,0)" to boot the the hda1 (Zenwalker) partition and "root (hd0,1) to boot hda2 (Debian). Just need to know how to make the drive switch with lilo and boot from one lilo menu.

Last edited by Hern_28; 05-11-2007 at 04:42 PM.
 
Old 05-12-2007, 03:16 AM   #7
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
i asked from which kernel you are configuring, because hda become sda in new kernels.

As lilo must know the disk when installing, i've to know from where it's run to find the good config.

i didn't test but i guess it's something like:
Code:
# Start LILO global section
append="resume2=swap:/dev/sda4 "
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,
prompt
timeout = 50
default=Debian
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
vga = 791
####################
image = /boot/vmlinuz
  root = /dev/sda1
  label = Zenwalk
  initrd = /boot/initrd.splash
  append = " splash=silent "
  read-only

image = /vmlinuz
  root = /dev/hda2
  label = Debian
  initrd = /initrd.img
## if you don't have any splash of debian
## (if you hav on just add the splash=silent to the main append):
  append = " splash=verbose "

  read-only

##dunno if it's usefull or not
#map=/boot/map
take care to have a way to mount and change lilo.conf with a boot CD in case it breaks boot
(zenwalk cd is able to do that)


BTW: it's zenwalk, not zenwalker (zenwalkers are people that run zenalk )
 
Old 05-12-2007, 07:17 AM   #8
tinksmartbstupi
Member
 
Registered: Dec 2004
Location: Coram, NY
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
Can you post your whole Lilo.conf file, because you said that zenwalker is on /dev/hda1 but you're trying to boot it via /dev/sda1 (at least I think that's what you're doing in your first post). I'm a little lost.
 
Old 05-12-2007, 12:49 PM   #9
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
zenwalk use new naming scheme, with new kernel there isn't any hd* they became sd* for hard drives and sr* for CD/DVD drives.

So:
- that's why i asked if lilo was configured from a < 2.6.19 kernel.
- that's why some parts of lilo.conf must refer to sda* (the one for Zenwalk at least, and any other distrib with a recent kernel) and some other parts must refer to hda*
 
Old 05-13-2007, 08:32 AM   #10
bliztar
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 0
I prefer to use grub instead of lilo,
it's more configurable and i can boot
to every OS installed on my disk,
even not listed on my grub's menu
 
Old 05-13-2007, 08:50 AM   #11
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Original Poster
Rep: Reputation: 38
Thanks.

To get debian to boot by creating a temporary workaround. I like grub better too but would like to be able to fully use both, can boot easily to all installed os's with grub and switch the partition locations for it to boot too. That is basically what I was doing before, just wanted to figure out lilo too .

The workaround atm is to have a copy of debian's vmlinuz (copied and renamed vmlinuz.debian), the map file (.debian again) and initrd (.debian) to the zenwalkers boot dir. have to append the location of root, because zenwalker uses sda for drives and debian uses hda, and the initrd.debian and map.debian calls. I don't like passing that much info and that is why i wanted to see if there was a command to switch what partition lilo boots too like grubs root (hd*,*). Here is the current working dual boot configuration.

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32
# append="resume2=swap:/dev/sda4 splash=silent "
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,
#compact # faster, but won't work on all systems.
#prompt
#timeout = 5
# 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
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins

image = /boot/vmlinuz
append="resume2=swap:/dev/sda4 splash=silent"
root = /dev/sda1
label = Zenwalk
initrd = /boot/initrd.splash
read-only

image = /boot/vmlinuz.debian
append="root=/dev/hda2 map=/dev/hda2/map.debian"
root=/dev/sda2
label=Debian
initrd = /boot/initrd.img.debian
read-only

Sorry for the confusion. Would still be interested in a way to change the current default boot partition in lilo from within lilo.config. I can change it from the prompt with the lilo commands (lilo --help for commands) and boot to either without the large append section, just not from within the lilo.config file.

P.S. I also corrected the initial cut and paste error in my first post ( sorry just noticed.)

Last edited by Hern_28; 05-13-2007 at 09:08 AM.
 
Old 05-13-2007, 09:35 AM   #12
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
Quote:
Originally Posted by Hern_28
image = /boot/vmlinuz
append="resume2=swap:/dev/sda4 splash=silent"
root = /dev/sda1
label = Zenwalk
initrd = /boot/initrd.splash
read-only

image = /boot/vmlinuz.debian
append="root=/dev/hda2 map=/dev/hda2/map.debian"
root=/dev/sda2
label=Debian
initrd = /boot/initrd.img.debian
read-only
i actually never had to specify which map to use, so i'm not sure it's required too. So i think: no append is neededif root is set to /dev/hda2 (instead of root=/dev/sda2) for debian, i guess you just defined twice this value and the one in append is kept.
so you might try:
Code:
image = /boot/vmlinuz.debian
  root=/dev/hda2
  label=Debian
  initrd = /boot/initrd.img.debian
  read-only
and (never tested that thing):
Code:
image = /dev/hda2/boot/vmlinuz
  root=/dev/hda2
  label=Debian
  initrd = /dev/hda2/boot/initrd.img
  read-only
i guess you get the idea
 
Old 05-13-2007, 09:42 AM   #13
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Original Poster
Rep: Reputation: 38
Problem

The zenwalk lilo refuses to accept root = /dev/hda2. When i use the root = /dev/sda lilo updates, but debian hangs searching for root on boot so i appended root = /dev/hda2. I tried that exact lilo config, no luck with it . Problem seems to lie in lilo's default partition boot. possible due to the map differences (sda vs hda). The current boot setup works, just doesn't seem like the best or most appropriate way. all ideas are appreciated though.

Last edited by Hern_28; 05-13-2007 at 09:49 AM.
 
Old 05-13-2007, 10:20 AM   #14
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
did you try lilo with "-P ignore" ?
 
Old 05-13-2007, 10:45 AM   #15
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Original Poster
Rep: Reputation: 38
Just tried it.

still gave invalid root specification. You were right on the map though...it wasn't needed .
 
  


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
grub issues: dual boot Debian i386 & Debian amd64 ErrorBound Debian 1 03-09-2007 07:41 PM
Dual boot Debian Etch and XP with GRUB - Debian installed First - one HDD bence8810 Debian 11 01-07-2007 10:45 AM
Dual Boot OS/2 and Debian cddesjar Debian 1 12-12-2005 10:06 AM
FC 2 and Debian and XP dual boot? JediMasterTux Linux - General 2 06-16-2004 11:26 PM
Debian dual boot from floppy? mstrick Linux - Newbie 2 02-04-2004 07:08 AM


All times are GMT -5. The time now is 07:40 AM.

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