LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2012, 04:08 AM   #1
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Lilo install mbr to other disk as root disk.


Is it possible to install lilo to the mbr of /dev/sdc my bootdrive and specify /dev/sde as root. Because I can't boot directly from /dev/sde.
Specifying /dev/sdc as boot and /dev/sde as root in lilo.conf seems to install ok but doesn't work. Lilo oopses with L 010101 etc.
Code:
 LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append="raid=noautodetect vt.default_utf8=1"
boot = /dev/sdc

  bitmap = /boot/slack.bmp
  bmp-colors = 255,0,255,0,255,0
  bmp-table = 60,6,1,16
  bmp-timer = 65,27,0,255
prompt
timeout = 1200
change-rules
  reset
vga = normal
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sde2
  label = Linux
  read-only
# Linux bootable partition config ends
Code:
bash-4.2# lilo -t -v3
LILO version 23.2 (test mode)
  * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
  * Copyright (C) 1999-2007 John Coffman  (until v22)
  * Copyright (C) 2009-2011 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software 
distributed under the BSD License (3-clause). Details can be found in 
the file COPYING, which is distributed with this software.
Compiled at 19:24:22 on Aug 11 2011
Running Linux kernel 3.2.13 on x86_64

Warning: LBA32 addressing assumed
device-mapper major = 253
raid_setup returns offset = 00000000  ndisk = 0
 BIOS   VolumeID   Device
Reading boot sector from /dev/sdc
pf_hard_disk_scan: ndevs=5
  0800  5C237869  /dev/sda
  0810  01F3A422  /dev/sdb
  0820  EE109927  /dev/sdc
  0830  088E6203  /dev/sdd
  0840  43A5EC73  /dev/sde
Resolve invalid VolumeIDs
Resolve duplicate VolumeIDs
  0800  5C237869  /dev/sda
  0810  01F3A422  /dev/sdb
  0820  EE109927  /dev/sdc
  0830  088E6203  /dev/sdd
  0840  43A5EC73  /dev/sde
device codes (user assigned pf) = 0
device codes (user assigned) = 0
device codes (BIOS assigned) = F
Filling in '/dev/sde' = 0x84
device codes (canonical) = 1F
Device 0x0820: BIOS drive 0x80, 255 heads, 46593 cylinders,
               63 sectors. Partition offset: 0 sectors.
Using Volume ID EE109927 on bios 80
Device 0x0842: BIOS drive 0x84, 255 heads, 9726 cylinders,
               63 sectors. Partition offset: 8390656 sectors.
Using Volume ID 43A5EC73 on bios 84
mode = 0x03,  columns = 80,  rows = 25,  page = 0
Using BITMAP secondary loader
Calling map_insert_data
Secondary loader: 19 sectors (0x3800 dataend).
Warning: The boot sector and map file are on different disks.
bios_boot = 0x80  bios_map = 0x84  map==boot = 0  map S/N: 43A5EC73
Mapping bitmap file /boot/slack.bmp
Device 0x0842: BIOS drive 0x84, 255 heads, 9726 cylinders,
               63 sectors. Partition offset: 8390656 sectors.
Using Volume ID 43A5EC73 on bios 84
width=640 height=480 planes=1 bits/plane=8
Calling map_insert_file
Bitmap: 31 sectors.
BIOS data check was okay on the last boot
image_menu_space = 16

Boot image: /boot/vmlinuz -> vmlinuz-huge-3.2.13
Device 0x0842: BIOS drive 0x84, 255 heads, 9726 cylinders,
               63 sectors. Partition offset: 8390656 sectors.
Using Volume ID 43A5EC73 on bios 84
Setup length is 32 sectors.
Mapped 12256 sectors.
Added Linux  *
    <dev=0xe4,hd=253,cyl=200,sct=123>
    "ro root=842 raid=noautodetect vt.default_utf8=1"

 BIOS   VolumeID   Device
  80    EE109927    0820
  81    5C237869    0800
  82    01F3A422    0810
  83    088E6203    0830
  84    43A5EC73    0840
The boot sector and the map file have *NOT* been altered.
2 warnings were issued.
 
Old 06-05-2012, 01:06 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I think you mixed two things: the MBR is the first thing loaded from the disk, it comes before any OS, any filesystem. It is generally located on the first disk. Putting it onto another disk has no any meaning. (when you say the OS is located on sde or whatever it means the MBR will direct the boot process to continue loading the OS from that partition). So moving MBR has no meaning, but maybe you can explain what is on sde and why it cannot boot (probably MBR cannot handle it?)
 
Old 06-06-2012, 03:47 AM   #3
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Original Poster
Rep: Reputation: 141Reputation: 141
Sde is the fifth disk with my root partition on sde2 the pc can only boot the first four drives. Momentarely the pc boots from the third disk hdc. Installing a temporaly system on hdc2 with the same kernel enables the system to boot from hde2, but specifying the kernel by mounting it on /mnt and in lilo.conf setting image=/mnt/boot/vmlinuz fails. Also other = /dev/hde2 and installing the mbr in the root partition sde2 fails. I would like to be able to run lilo from sde2 without to be depended of changing settings on other drives. Except setting up a initial bootloader/menu.
 
Old 06-07-2012, 08:16 AM   #4
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Original Poster
Rep: Reputation: 141Reputation: 141
I have created a bootpartition on /dev/sdc2 that solves the problem, everybody thanks for thinking along.
 
  


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
Choosing which disk to install MBR to? Nick_C Debian 16 03-13-2012 01:44 PM
[SOLVED] How do I specify root disk in lilo darrin2520 Slackware 10 06-15-2010 04:18 PM
root disk with LILO sheky Slackware 1 11-10-2005 03:44 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
Lilo and MBR of the second hard disk petarsabev Slackware 9 09-30-2003 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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