LinuxQuestions.org
Visit Jeremy's Blog.
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 10-27-2012, 01:31 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Booting from an slave device.


Hi:

In the case of two hards disks on the same machine, one as master the other as slave, both in, say, ide 1, any special provision to make an O.S. (slackware) lying on the slave to boot? By special provision I refer to /etc/lilo.conf.
 
Old 10-27-2012, 03:39 PM   #2
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Here is a short clip from my /etc/liloconfig which shows 2 bootable partitions on /dev/sda and two on /dev/sdb. partitions can be on any drive as long as lilo is run from master

Code:
# Start LILO global section
boot = /dev/sda
lba32
.......
# Linux bootable partition config begins
image = /boot/vmlinuz-3.6.3
  root = /dev/sda5
  label = Linux
  read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-3.6.2
  root = /dev/sda5
  label = Last
  read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /mnt/rescue/boot/vmlinuz
  root = /dev/sdb2
  label = Rescue
  read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /mnt/current/boot/vmlinuz
  root = /dev/sdb3
  label = Current
  read-only
# Linux bootable partition config ends
Both rescue and current are on sdb but before executing 'lilo' the /mnt/rescue/ /mnt/current partitions must be mounted

There is probably a more elegant solution, but this one has worked for many years
Hope this helps
john
[EDIT] My response describes an sata system, but I am sure that I have used this method on an ide system with hda and cdrom on master and 2 ide drives on slave in the past.[/EDIT]

Last edited by AlleyTrotter; 10-27-2012 at 03:57 PM.
 
2 members found this post helpful.
Old 10-27-2012, 04:28 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by AlleyTrotter View Post
Here is a short clip from my /etc/liloconfig which shows 2 bootable partitions on /dev/sda and two on /dev/sdb. partitions can be on any drive as long as lilo is run from master
Then I have made things irreversibly wrong. I had slack 12.0 in the master hard and, when installing slack 14.0, I did so in the slave. But the Slackware-HOWTO says "run lilo under 14.0" (by the way I chose extN, N > 3 for 14.0 whereas in the 12.0 partition I have ext2. But lilo does not care about filesystems, I think). OK.

Then, according to the HOWTO, I should run lilo under 14.0. But, as you have just pointed out, I will have to run it under 12.0, because its on the master drive. A helpless situation.
 
Old 10-27-2012, 05:04 PM   #4
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
If I understand your problem you should be able to boot your 12.0 system from the install media. At the install media boot prompt follow the instructions to enter the path to your 12.0 vmlinuz. When done with the bootup edit your lilo.config file as I have shown above and execute lilo, which will install to master drive. Then all should be back to normal. When you boot up you should have the option to boot 12.0 or 14.0.
Hope that helps
john
 
Old 10-27-2012, 11:49 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I think I have misunderstood you, John, and beg your pardon for that. When you said, in post #2, that
Quote:
Originally Posted by AlleyTrotter View Post
Here is a short clip from my /etc/liloconfig which shows 2 bootable partitions on /dev/sda and two on /dev/sdb. partitions can be on any drive as long as lilo is run from master
I took lilo as meaning /sbin/lilo. I now see it can also mean just the lilo boot loader. To be honest, I do not know in which one of the two meanings I must take the word. Could you explain? Regards,

Enrique.

Last edited by stf92; 10-27-2012 at 11:51 PM.
 
Old 10-28-2012, 02:17 AM   #6
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
You can execute /sbin/lilo from either.

But you must tell it to install itself in the primary disks MBR

What is important is that the lilo.conf file that is read in has all the right info and you need both kernels accessible in the filesystem tree when you run it.

My method usually revolves around having both systems set up so I can run lilo from either.

So :-

1. Have each system mount the others filesystem somewhere so you get the other kernel image
2. Have a lilo.conf for each that has the same basic setup but has different paths for the kernel images
 
Old 10-28-2012, 10:37 AM   #7
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
My method has /etc/lilo.conf on the master disk (12.0) and executes /sbin/lilo from master. The boot loader is installed to the master disk MBR. This once installed should allow you to select either 12.0 or 14.0 from the lilo prompt.
Hope that clears things up
John
 
  


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
Emulating a usb slave device perelstein Linux - Software 0 11-20-2007 11:02 AM
Vmware booting an OS from the slave drive discala Linux - Software 1 02-14-2007 04:07 PM
booting from secondary slave sharad durgawad Linux - Enterprise 2 03-18-2006 12:47 PM
Booting harddrive moved to slave position can564 Linux - Hardware 32 03-18-2006 12:27 PM
Booting from a slave disk alone karthik1024 Linux - Newbie 1 08-30-2003 05:04 PM

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

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