LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-18-2013, 07:20 PM   #1
nankura
Member
 
Registered: Jan 2011
Posts: 65

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 07:32 PM.
 
Old 03-18-2013, 08:02 PM   #2
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware, Mint, & random selection for VM
Posts: 213

Rep: Reputation: 26
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, 08:14 PM   #3
zbreaker
Member
 
Registered: Dec 2008
Location: New York
Distribution: Slack -current, #!, vsido
Posts: 219

Rep: Reputation: 27
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, 03:22 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,524
Blog Entries: 27

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
In your lilo.conf file, add this line in the global section:
Code:
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:
Code:
# Chainloading section
other=/dev/sda
  label = sda
other=/dev/sdc
  label = sdc
EDIT:
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 03:27 AM.
 
  


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


All times are GMT -5. The time now is 10:26 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