Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Tweeted twitter.com/#!/StackUnix/status/278439544708296704
added 213 characters in body
Source Link
enzo1959
  • 383
  • 2
  • 4
  • 12

I have an industrial PC mounting Linux.

These PC is delivered in two version, each with slightly different internal board and depending on the board type the disk inside the PC is see as hda or hdc.

Until now, to select between the two type of disk boot I simply put two entry inside the grub menu.lst like show below, so at the first start of the PC the maintenance people will select the correct device which will be memorize for future reboot.

default = 0
timeout = 9

title Linux 2.4.34 ( hda )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off

title Linux 2.4.34 ( hdc )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hdc1 console=ttyS0,9600 console=tty0 apm=off

But in most cases this type of PC are delivered without screen and keyboard and the maintenance people are not able to select the boot option so I'm looking for a way that allow the PC to check for the correct boot device before loading the kernel.

In pratical term I need that the boot procedure check if the disk is see as /dev/hdc or as /dev/hda in order to call the boot option with the right value for root device ( ie root=/dev/hda1 or root=/dev/hdc1 )

The problem is that I have no idea if that is possible and how to do that.

Someone have some suggestion about this topic ?

I have an industrial PC mounting Linux.

These PC is delivered in two version, each with slightly different internal board and depending on the board type the disk inside the PC is see as hda or hdc.

Until now, to select between the two type of disk boot I simply put two entry inside the grub menu.lst like show below, so at the first start of the PC the maintenance people will select the correct device which will be memorize for future reboot.

default = 0
timeout = 9

title Linux 2.4.34 ( hda )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off

title Linux 2.4.34 ( hdc )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hdc1 console=ttyS0,9600 console=tty0 apm=off

But in most cases this type of PC are delivered without screen and keyboard and the maintenance people are not able to select the boot option so I'm looking for a way that allow the PC to check for the correct boot device before loading the kernel.

The problem is that I have no idea if that is possible and how to do that.

Someone have some suggestion about this topic ?

I have an industrial PC mounting Linux.

These PC is delivered in two version, each with slightly different internal board and depending on the board type the disk inside the PC is see as hda or hdc.

Until now, to select between the two type of disk boot I simply put two entry inside the grub menu.lst like show below, so at the first start of the PC the maintenance people will select the correct device which will be memorize for future reboot.

default = 0
timeout = 9

title Linux 2.4.34 ( hda )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off

title Linux 2.4.34 ( hdc )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hdc1 console=ttyS0,9600 console=tty0 apm=off

But in most cases this type of PC are delivered without screen and keyboard and the maintenance people are not able to select the boot option so I'm looking for a way that allow the PC to check for the correct boot device before loading the kernel.

In pratical term I need that the boot procedure check if the disk is see as /dev/hdc or as /dev/hda in order to call the boot option with the right value for root device ( ie root=/dev/hda1 or root=/dev/hdc1 )

The problem is that I have no idea if that is possible and how to do that.

Someone have some suggestion about this topic ?

added 38 characters in body
Source Link
enzo1959
  • 383
  • 2
  • 4
  • 12

I have an industrial PC mounting Linux. The

These PC is delivered in two version, each with slightly different internal board.

Depending and depending on the board revisiontype the disk dominside the PC is see as hda or hdc.

Until now, to select between thesethe two optiontype of disk boot I simply put two entry inside the grub menu.lst like show below, so at the first start of the PC the maintenance people will select the correct device which will be memorize for future reboot.

default = 0
timeout = 9

title Linux 2.4.34 ( hda )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off

title Linux 2.4.34 ( hdc )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hdc1 console=ttyS0,9600 console=tty0 apm=off

But seldomin most cases this type of PC are delivered without screen and keyboard and the maintenance people are not able to select the boot option so I'm looking for a way that allow the PC to check for the correct boot device before loading the kernel.

The problem is that I have no idea if that is possible and how to do that.

Someone have some suggestion about this topic ?

I have an industrial PC mounting Linux. The PC is delivered in two version each with slightly different internal board.

Depending on the board revision the disk dom is see as hda or hdc.

Until now to select between these two option I simply put two entry inside the grub menu.lst like show below, so at the first start the maintenance people will select the correct device which will be memorize for future reboot.

default = 0
timeout = 9

title Linux 2.4.34 ( hda )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off

title Linux 2.4.34 ( hdc )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hdc1 console=ttyS0,9600 console=tty0 apm=off

But seldom this type of PC are delivered without screen and keyboard and the maintenance people are not able to select the boot option so I'm looking for a way that allow the PC to check for the correct boot device before loading the kernel.

The problem is that I have no idea if that is possible and how to do that.

Someone have some suggestion about this topic ?

I have an industrial PC mounting Linux.

These PC is delivered in two version, each with slightly different internal board and depending on the board type the disk inside the PC is see as hda or hdc.

Until now, to select between the two type of disk boot I simply put two entry inside the grub menu.lst like show below, so at the first start of the PC the maintenance people will select the correct device which will be memorize for future reboot.

default = 0
timeout = 9

title Linux 2.4.34 ( hda )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off

title Linux 2.4.34 ( hdc )
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.34 ro root=/dev/hdc1 console=ttyS0,9600 console=tty0 apm=off

But in most cases this type of PC are delivered without screen and keyboard and the maintenance people are not able to select the boot option so I'm looking for a way that allow the PC to check for the correct boot device before loading the kernel.

The problem is that I have no idea if that is possible and how to do that.

Someone have some suggestion about this topic ?

deleted 33 characters in body; edited title
Source Link
manatwork
  • 32k
  • 8
  • 104
  • 93
Loading
added 50 characters in body
Source Link
enzo1959
  • 383
  • 2
  • 4
  • 12
Loading
Source Link
enzo1959
  • 383
  • 2
  • 4
  • 12
Loading