| title: | Re Redhat s390 list dev dasdx device file |
|
This is a variation of the short script in the
Linux for S/390 Device Drivers and Installation commands IBM Redbook
page 13 (l390dd.pdf):
cat /proc/dasd/devices | sed /unknown/D;s/^.*[(]([ 0-9]*)[:]([ 0-9]*)[)].*(dasd[a-z]*)[: ].*$/1 2 3/g | awk $1 { printf "mknod /dev/%s b %d %d 2 /dev/null; mknod /dev/%s1 b %d %d 2 /dev/null; mknod /dev/%s2 b %d %d 2 /dev/null; mknod /dev/%s3 b %d %d 2 /dev/null; ",$3,$1,$2,$3,$1,$2+1,$3,$1,$2+2,$3,$1,$2+3; }
Be careful that your mail client doesnt add some characters for linebreaks
when you cut&paste this !
Regards
Karsten Hopp
Hello all.
I am currently working with a RedHat employee to install RedHat Linux 7.2
(very lastest kernel build) on os/390. Ive 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.
I have defined the devices to /etc/zilo.conf and run zipl. I have also
rebooted several times.
Can you assist?
--
Karsten Hopp | Mail: karsten@redhat.de
Red Hat Deutschland | Tel: +49-711-96437-0
Hauptstaetterstr.58 | Fax: +49-711-96437-111
D-70178 Stuttgart | |