Frank Steiner wrote:
Samuel Flory wrote:
Actually I was thinking you could make the adjustmnet for all systems.
The above code should find the 1st ide or scsi disk in the system, and
mount the 1st partition on it to /foo. I use sed, sort, uniq to find
drives in my custom nfs installer. In any case it's just a thought.
Well, that would indeed make a general solution for all our clients,
some having raids some not, and be indepedent of kernel bugs with
on/offboad. So I think I will integrate your method into the server
so that all clients use it.
Be aware some raid controllers use their own wierd device names. The
example code doesn't work on for example the mylex controller. (The
DAC960 driver uses /dev/rd/c0d0p1 for the 1st logical drive, first
partition.) It not very hard to work around usch issues.