Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Confused by MILO
@ 1998-07-29  4:00 DMC
  1998-08-16  4:00 ` cekim
  0 siblings, 1 reply; 3+ messages in thread
From: DMC @ 1998-07-29  4:00 UTC (permalink / raw)


I am running an alpha 164LX with 2 scsi disk controllers.  

My external drive was recognised as drive sda and the internal
drive as sdb by linux so I have swapped the PCI bus positions of 
the interface cards so that the internal hard disk is now found first 
and identified as sda and the external drive is identified as 
sdb by linux.

NT does not care about this change but MILO continues to identify the 
internal drive as sdb until the kernel is booted and then it identifies 
it as sda.

To boot the system I now have to use the MILO command

boot sdb4:vmlinux.gz root=/dev/sda4

This is going to get confusing if I do not always have the same number of 
external drives connected.  

What am I missing, do I need to recompile MILO ?

(I have 2 scsi ontrollers because the internal drive uses a scsi3 bus 
and the external drive is on a scsi2 bus)
--
Dave.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Confused by MILO
  1998-07-29  4:00 Confused by MILO DMC
@ 1998-08-16  4:00 ` cekim
  1998-08-17  4:00   ` D.Cattermole
  0 siblings, 1 reply; 3+ messages in thread
From: cekim @ 1998-08-16  4:00 UTC (permalink / raw)


hmmm...

I think you will find at some point NT does care about swapping things around
(at least it did on my system).  It did not seem to matter after a fresh
install (ie: no changes from the default setup to be lost when the NT root
drive moves ).	This behavior is the same for IDE drives on an x86 system.

It (NT) will happily boot with the root partition anywahere so long as the
bootloader code is on the first partition (c:\ in dos world), but you will
find that the registry settings are lost and it boots the "default" settings
when this path(to the root dir assuming it is not on c:\) changes.

Now back to the linux/milo problem:
Milo uses the same driver set that linux uses.  That is it compiles in the
drivers from /usr/src/linux/drivers/scsi when it is compiled.

The behavior your are describing (the order in which controller cards are
detected/configured/named is controlled by this code.  So you could recompile
milo from a running system to always call various types of controllers
/dev/sdx, but i would seem to me there is an easier solution:

Place the controller cards/drives such that it detects the added drives after
than the permanent ones.  You should be able to configure the controllers and
SCSI IDS such that (for example):

/dev/sda1 - NT/ARC boot (must be FAT for ARC)
/dev/sdax - added drives to this controller

/dev/sdb1 - Linux partition 1 (SCSI ID 0)
/dev/sdaX - additional partitions on second controller (SCSI ID X > 0)

Perhaps I am missing the point here, why is it that you cannot place the linux
partition as the first SCSI ID on the sdb controller and leave it there?

/Mike


In article <6pmvfp$3re$1@pegasus.csx.cam.ac.uk>,
  dmc@... wrote:
> I am running an alpha 164LX with 2 scsi disk controllers.
>
> My external drive was recognised as drive sda and the internal
> drive as sdb by linux so I have swapped the PCI bus positions of
> the interface cards so that the internal hard disk is now found first
> and identified as sda and the external drive is identified as
> sdb by linux.
>
> NT does not care about this change but MILO continues to identify the
> internal drive as sdb until the kernel is booted and then it identifies
> it as sda.
>
> To boot the system I now have to use the MILO command
>
> boot sdb4:vmlinux.gz root=/dev/sda4
>
> This is going to get confusing if I do not always have the same number of
> external drives connected.
>
> What am I missing, do I need to recompile MILO ?
>
> (I have 2 scsi ontrollers because the internal drive uses a scsi3 bus
> and the external drive is on a scsi2 bus)
> --
> Dave.
>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Confused by MILO
  1998-08-16  4:00 ` cekim
@ 1998-08-17  4:00   ` D.Cattermole
  0 siblings, 0 replies; 3+ messages in thread
From: D.Cattermole @ 1998-08-17  4:00 UTC (permalink / raw)


cekim@ix.netcom.com wrote:

: I think you will find at some point NT does care about swapping things around
: (at least it did on my system).  It did not seem to matter after a fresh
: install (ie: no changes from the default setup to be lost when the NT root
: drive moves ).	This behavior is the same for IDE drives on an x86 system.

: It (NT) will happily boot with the root partition anywahere so long as the
: bootloader code is on the first partition (c:\ in dos world), but you will
: find that the registry settings are lost and it boots the "default" settings
: when this path(to the root dir assuming it is not on c:\) changes.

My tests with NT were minimal, I booted the machine and it appeared to start ok.  
I then rebooted with linux and have not used NT  since then.

: Now back to the linux/milo problem:
: Milo uses the same driver set that linux uses.  That is it compiles in the
: drivers from /usr/src/linux/drivers/scsi when it is compiled.

This is what I guessed and why I am confused, MILO labels the disks in a different 
order from linux.  I can only assume that MILO was compiled with a different version 
of the kernel?    

: The behavior your are describing (the order in which controller cards are
: detected/configured/named is controlled by this code.  So you could recompile
: milo from a running system to always call various types of controllers
: /dev/sdx, but i would seem to me there is an easier solution:

: Place the controller cards/drives such that it detects the added drives after
: than the permanent ones.  You should be able to configure the controllers and
: SCSI IDS such that (for example):

: /dev/sda1 - NT/ARC boot (must be FAT for ARC)
: /dev/sdax - added drives to this controller

: /dev/sdb1 - Linux partition 1 (SCSI ID 0)
: /dev/sdaX - additional partitions on second controller (SCSI ID X > 0)

: Perhaps I am missing the point here, why is it that you cannot place the linux
: partition as the first SCSI ID on the sdb controller and leave it there?

: /Mike

Let me describe my machine more carefully:-
It started as an NT machine with an internal hard drive on a scsiIII controller 
containing 2 partitions with NTFS and 1 DOS partition to boot the machine and
a scsiII controller with a CD drive.

I then deleted one of the NTFS partitions and installed linux and a swap partition.
/dev/sda1 is NTFS 
/dev/sda2 is DOS contains MILO ...  to boot machine
/dev/sda3 is swap
/dev/sda4 is linux /
/dev/scd0 is CDROM
This was fine without any external  drives connected.  

When I connected an external drive to the scsiII controller, linux was confused because 
the external drive was identified as /dev/sda and the internal drive became /dev/sdb

After swapping the scsi controller pci slot positions, the internal drive is recognised
by linux as /dev/sda and the external drive as /dev/sdb but MILO still sees them the other 
way round with sdb as the internal and sda as the external.  

I have not tried recompiling MILO yet, when I have time I will try if there is no other 
explanation.   

(My external drive also contains a complete bootable linux system so that I can experiment 
with upgrades and still go back to an unaltered working system on the internal drive)
 

Dave.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-08-17  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-29  4:00 Confused by MILO DMC
1998-08-16  4:00 ` cekim
1998-08-17  4:00   ` D.Cattermole

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox