Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-18-2013, 08:20 PM   #1
Registered: Jan 2011
Posts: 66

Rep: Reputation: 0
Setting up lilo during install to a specific partition

hey guys

Ok basically i have 3 hard disks

/dev/sda - windows ( dual boot for gaming )
/dev/sdb - linux hard drive
/dev/sdc - backup data

When i install slackware. i install it to /dev/sdb obviously, i make 2 partitions, 1 for swap, and 1 for the root access with a bootable flag using cfdisk

Now. for some reason when i get to lilo and i select to install to root. the system wont boot, i get a grub error screen

And when i select to install it to MBR, it installs lilo onto the windows sda hard disk

I want to install and run lilo from /dev/sdb, and im wondering how id go about doing that

Last edited by nankura; 03-18-2013 at 08:32 PM.
Old 03-18-2013, 09:02 PM   #2
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 286

Rep: Reputation: 29
Install lilo to the MBR which would be /dev/sda since windows was installed 1st. Configure lilo to boot the / partition from /dev/sdb1 or /dev/sdb2 depending on which is swap and which is / and then add windows to the lilo configuration so you'll have the choice to boot either windows or linux.
Old 03-18-2013, 09:14 PM   #3
Registered: Dec 2008
Location: New York
Distribution: Slack -current, siduction
Posts: 253

Rep: Reputation: 29
Do not install lilo to sdb as this places it to the mbr of you second disk. Rerun liloconfig and install mbr to sda which should recognize your windows install.....assuming sda to be your boot drive.
Old 03-19-2013, 04:22 AM   #4
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
In your lilo.conf file, add this line in the global section:
boot = /dev/sdb
In you wanted to be able to boot from sda or sdc after starting to boot from sdb you could also add:
# Chainloading section
  label = sda
  label = sdc
To boot from the HDD which becomes sdb when Linux has loaded, go into the BIOS setup screens and change the boot device to the HDD which becomes sdb when Linux has loaded.

Repeatedly pressing some key as the computer boots is the usual way to "go into the BIOS setup screens". Exactly which key depends on which BIOS your computer has. Del or Delete are common.

Last edited by catkin; 03-19-2013 at 04:27 AM.


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
[SOLVED] Can't install lilo --> Inconsistent partition table hedron Slackware 10 11-13-2010 11:11 PM
[SOLVED] Install LILO on the root partition shaylocomotive Slackware 16 01-05-2010 08:52 AM
Custom install to specific partition jeth Linux - Newbie 4 07-09-2009 11:21 AM
Install LILO on other partition than root ? Vilius Slackware 3 02-26-2009 02:05 PM
DSL lilo install to partition instead of MBR johngreenwood DamnSmallLinux 2 11-23-2006 10:18 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration