Re: [Redhat-s390-list] /dev/dasdx device files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: "Brad Rogers" <BradR@VSP.com>
> Date: Thu, 7 Mar 2002 14:04:29 -0800

> I am currently working with a RedHat employee to install RedHat Linux 7.2
> (very lastest kernel build) on os/390.

Never say "very lastest kernel build", or even "very latest".
Say "2.4.9-31". It's very easy to find out with "cat /proc/version".

>  I've noticed that no more that 26
> device files (/dev/dasda through /dev/dasdz) will be created in the /dev
> directory even though devices greater than dasdz (dasdaa, dasdab, dasdac,
> etc...) are referenced in /proc/dasd/devices.  

In 7.2, device nodes are stored on disk and have nothing to
do with what kernel does in their origin. For things working
right, they must match what kernel has.

> I have defined the devices to /etc/zilo.conf and run zipl.  I have also
> rebooted several times.

Rebooting sounds extreme, for a small matter of missing
device nodes. Personally I reboot only when the
system is toast. Lots of missing critical stuff, you know :)

I think the mysterious employee who helps you has the authority
to make suggestions. A bystander's advice from me would be to
add needed nodes by hand with mknod, and be happy. You are free
to name them as you wish, using your girlfriends' names, for
instance. The convention is to use a base-26 numbering with
letters instead of digits (you may observe that convention
by looking into /proc/dasd/devices). It may be a good idea
to follow that convention.

To give you an idea, consider the following:

cat /proc/dasd/devices| awk -F: '{ print $1 " " $2 }'| \
  awk '{ print $4 " ("  $5 " " $7}' | \
  (while read maj min name; do min=$(echo $min| bc -q);
    echo "mknod /dev/$name b $maj $min"
  done)

The script needs small fixes: testing for existing devices,
adding partition nodes 1,2,3 (hint: use eval), but basically
it's all there is to it.

Please continue working with that person who you mentioned
and forward this e-mail to him or her.

-- Pete



[Index of Archives]     [Fedora General Discussion]     [LKML]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Linux s390]     [Gimp]     [Yosemite News]

  Powered by Linux