LinuxQuestions.org
Visit Jeremy's Blog.
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 06-22-2014, 08:54 PM   #1
wufo
Member
 
Registered: Oct 2004
Posts: 209

Rep: Reputation: 15
Dual boot slack & win 7 on different disks


I have a Slack 14.1 system and want to add Win 7 on a second drive. I installed WIn 7 on the drive alone in the system. I want to leave Slack on sda and Win 7 on sdb. How is the best way to setup lilo to do this?

tj
 
Old 06-22-2014, 10:05 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,449

Rep: Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788
Should be as simple as adding this stanza to /etc/lilo.conf and rerunning lilo.
Code:
# Windows bootable partition config begins
other = /dev/sdb1
  label = Windows7
  table = /dev/sdb
  boot-as = 0x80
# Windows bootable partition config ends
 
Old 06-23-2014, 04:50 PM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,172
Blog Entries: 5

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
I'm not sure it's possible to boot Windows 7 with LILO as the primary boot loader.

But you can do it the other way around (boot Linux with windows 7 boot loader). Refer to this blog entry by Alien BOB: adding-linux-to-the-windows7-boot-menu

Personally I have a dual-boot Windows Vista/Slackware that I configured using these instructions: dual-boot-linux-and-windows-vista-windows-bootloader (similar to the above blog entry).
 
Old 06-23-2014, 05:16 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,183

Rep: Reputation: Disabled
Quote:
Originally Posted by gegechris99 View Post
I'm not sure it's possible to boot Windows 7 with LILO as the primary boot loader.
It is. I have this in /etc/lilo.conf:
Code:
boot = /dev/sda
[...]
image = /boot/vmlinuz
  root = /dev/sda3
  label = Linux
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
[...]
# Windows bootable partition config begins
other = /dev/sda1
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
 
Old 06-23-2014, 11:20 PM   #5
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
Didier, does that work with UEFI and Windows on a GPT partition?
 
Old 06-23-2014, 11:40 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,183

Rep: Reputation: Disabled
Quote:
Originally Posted by Z038 View Post
Didier, does that work with UEFI and Windows on a GPT partition?
Lilo can't be used with UEFI. Use grub instead.

I don't think that using a GPT instead of MBR partition table matters for Lilo, but am not completely sure about that.

Last edited by Didier Spaier; 06-23-2014 at 11:42 PM.
 
1 members found this post helpful.
Old 06-23-2014, 11:58 PM   #7
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
Ok, thanks, Didier. GRUB it is, then. A little more bother to set up than LILO, but not too bad.

I have a new HP ZBook 15 that I want to try this on. I plan to install Slackware to a 500GB Samsung Evo drive that I will add to the mSata expansion bay. Win 7 is on a 500GB HDD. I'm really kind of lost with Windows, so I may eventually just wipe it out and use the HDD for additional storage. But first I want to see if I can get the dual boot working. If I can, I'll probably keep Windows, since it might come in handy for certain things.
 
Old 06-24-2014, 05:16 AM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
You could also use the UEFI/BIOS disk selection menu as well. Grub can still chain load without overwriting the NTLDR in this method and you can use multiple format styles between disks such as MBR and GPT equally.
 
1 members found this post helpful.
  


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
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 06:04 PM
Dual Boot - Win/SUSE But I've 2 disks...how do I configure Grub? ZingSter SUSE / openSUSE 2 04-07-2006 10:01 AM
Dual boot Win XP and Slack 10.1 rc51geo Slackware 12 08-20-2005 01:27 PM
Slack 10 + Win Xp Dual Boot Help roel81 Linux - Laptop and Netbook 1 09-06-2004 10:37 PM
Slack 10 + Win Xp Dual Boot Help roel81 Linux - Newbie 2 09-06-2004 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration