LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-25-2013, 01:44 PM   #1
wufo
Member
 
Registered: Oct 2004
Posts: 209

Rep: Reputation: 15
dual booting Slack 14 and Windows 8


How is the best way to dual boot Slack 14 and windows 8? It's been a while since I set ap a dual boot system.

wufo
 
Old 06-25-2013, 02:06 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
UEFI put aside, that's pretty easy.

For instance I have this setup on Slackware 14.0 alongside Windows 7:

/dev/sda1 Windows (reserved, rescue etc.)
/dev/sda2 Windows (data)
/dev/sda3 / (Linux)
/dev/sda4 swap

(1) make room for Linux: defrag your HDD fro Windows, the with 'gparted' on CD or USB downsize /dev/sda2 (takes a while) then create new partitions in freed space
(2) install Slackware but do not yet install lilo
(3) use the DVD or an USB key to boot Slackware, then install lilo. You can use liloconfig for that or edit /etc/lilo.conf by hand. Make /dev/sda3 bootable and have in /etc/lilo.conf /dev/sda3 (root Linux partition) as boot device:
Code:
boot=/dev/sda3
This way you won't touch the MBR.
(4) run 'lilo -t -v' then if all goes well 'lilo'
(5) remove the Slackware DVD and reboot.

Last edited by Didier Spaier; 06-25-2013 at 02:08 PM.
 
Old 06-25-2013, 08:08 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
^ LILO doesn't work on UEFI/GPT systems.

You have to use eLILO from the Slackware-current tree.

I would also highly recommend disabling "secure-boot" in the BIOS/Setup, and using something like rEFInd (http://www.rodsbooks.com/refind/) to manage the dual boot.
 
Old 06-25-2013, 09:25 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Other than eLILO, you can use SysLinux which is already pre-installed on Slackware, or grab the SlackBuilds through a recovery boot and download, build, and install GRUB2 which all support GPT partitioning.
 
Old 08-19-2013, 03:15 PM   #5
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
Apologies for reopening an old thread but I've got a couple of concepts not clear yet and I got no feedback from my own thread:

Quote:
Originally Posted by rkelsen View Post
^ LILO doesn't work on UEFI/GPT systems.
Is this statement still valid even if the PC supports legacy BIOS? Or in other words, would Elilo work in legacy Bios mode?

Quote:
Originally Posted by ReaperX7 View Post
Other than eLILO, you can use SysLinux which is already pre-installed on Slackware,
This is how I plan to boot my system, from a USB stick with Syslinux.
 
Old 08-19-2013, 04:30 PM   #6
SwiftTimber-Z80
LQ Newbie
 
Registered: Mar 2013
Posts: 20

Rep: Reputation: Disabled
LILO works on all the EFI systems I have tried, just need a mbr.
 
Old 08-20-2013, 01:09 AM   #7
atomix600
LQ Newbie
 
Registered: May 2011
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by wufo View Post
How is the best way to dual boot Slack 14 and windows 8? It's been a while since I set ap a dual boot system.

wufo
I guess the best way would be install Slackware64 14.0 with elilo and a boot manager like refind to manage dual-boot.

You also should install efibootmgr to handle the EFI boot entries.

Unfortunately, neither Slackware64 14.0 (due the old version of Linux) nor Slackware64 -current support the EFISTUB technology, so you cannot boot Linux directly with refind (and without elilo), unless you rebuild the kernel with "CONFIG_EFI_STUB=y" in config file.
 
Old 08-20-2013, 01:22 AM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
LILO 24 which comes in Slackware-Current now works better with GPT
 
Old 08-20-2013, 05:47 AM   #9
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Rep: Reputation: Disabled
afaik windows 8 does not boot without secureboot enabled.. correct me if im wrong there.

so.. if win8 needs secure boot and slack does not boot with it the idea of dualboot is impossible.. just some logic.
 
Old 08-20-2013, 09:47 AM   #10
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 127

Rep: Reputation: Disabled
Quote:
Originally Posted by Stuferus View Post
afaik windows 8 does not boot without secureboot enabled.. correct me if im wrong there.
I think you are mis-interpreting information. For a computer to be pre-installed with Windows 8 it must have secure boot enabled. You can turn it off though.

I dual boot Slackware and Windows 8 on my laptop. No extra packages were needed. But my laptop has 2 hard drives which make this easier. My partition layout is:

/dev/sda1 Windows 8 (reserved, rescue etc.)
/dev/sda2 Windows 8 (data)
/dev/sdb1 /boot (Linux)
/dev/sdb2 swap
/dev/sdb3 / (Linux)
/dev/sdb4 /home (Linux)

lilo installed in sda's mbr and both OSs boot and run fine.

Last edited by yilez; 08-20-2013 at 09:51 AM.
 
Old 08-20-2013, 02:26 PM   #11
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
Quote:
Originally Posted by Stuferus View Post
afaik windows 8 does not boot without secureboot enabled.. correct me if im wrong there.

so.. if win8 needs secure boot and slack does not boot with it the idea of dualboot is impossible.. just some logic.
If it's a PC/laptop secure boot can be turned off, but if you do so you also turn UEFI mode off and continue in legacy BIOS mode (at least my laptop).

If it's an ARM device with Windows 8, you're stuck with Windows.
 
Old 08-20-2013, 02:59 PM   #12
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by atomix600 View Post
Unfortunately, neither Slackware64 14.0 (due the old version of Linux) nor Slackware64 -current support the EFISTUB technology, so you cannot boot Linux directly with refind (and without elilo), unless you rebuild the kernel with "CONFIG_EFI_STUB=y" in config file.
CONFIG_EFI_STUB doesn't work unless the root partition is hardcoded into the kernel, which makes it rather useless for distribution kernels.
 
Old 08-20-2013, 03:29 PM   #13
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by volkerdi View Post
CONFIG_EFI_STUB doesn't work unless the root partition is hardcoded into the kernel, which makes it rather useless for distribution kernels.
I am not understanding something. How does one hard code the root partition into the kernel. I understand that UEFI will use a stub kernel if its on the efi partition, but I don't know how it uses a hard coded root partition. Are you talking about
CONFIG_CMDLINE_BOOL=yes
CONFIG_CMDLINE=[the root partition goes here]?????

Thanks for your patience
john
 
Old 08-20-2013, 03:39 PM   #14
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by AlleyTrotter View Post
I am not understanding something. How does one hard code the root partition into the kernel. I understand that UEFI will use a stub kernel if its on the efi partition, but I don't know how it uses a hard coded root partition. Are you talking about
CONFIG_CMDLINE_BOOL=yes
CONFIG_CMDLINE=[the root partition goes here]?????

Thanks for your patience
john
Yes. If you don't have something like CONFIG_CMDLINE="root=/dev/sda1" in your .config, the kernel isn't going to be able to find the root partition. Also, you won't be able to use an initrd, which reduces your boot options considerably. Setting up eLILO is easy, and avoids these problems.
 
1 members found this post helpful.
Old 08-20-2013, 03:46 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If I'm not mistaken in my reading of this method, you basically have to boot a system in recovery mode, then configure and build a custom kernel with the /(root) partition path of your system hard-coded into it.

Because not everyone will have the same device and partition labels of their bootable /(root) or /boot drive, distributing it would be impossible.

Example:

One person may boot from /dev/sda1, while someone else might be using /dev/sdb3, /dev/sda2, etc.
 
  


Reply



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
dual booting Slack 13.0 and 13.37 wufo Slackware 13 12-16-2011 09:55 PM
dual boot system booting in Redhat linux but not booting in Windows XP sumitra Linux - Newbie 3 03-24-2011 09:42 AM
Dual booting XP/Slack 10.2 on laptop alphisb0t Linux - Laptop and Netbook 8 03-17-2006 12:40 AM
Dual booting Slack 10/Win XP k4ution Slackware 14 11-20-2004 08:34 AM
Re: Dual booting Redhat 9 and Slack 9.1 MunCH Slackware 11 06-13-2004 04:23 AM

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

All times are GMT -5. The time now is 06:21 AM.

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