On 10.08.2011 21:40, Patrick Spinler wrote:
Okay, please accept an 'I'm stupid' retraction, as Bob N. across the
wall got me. Running 'lsdasd' as root returns the full information
about the device in a nicely parsable format. (Curious it doesn't as
non-root, but there you go).
newer versions
I'm pretty sure /proc/dasd/devices is deprecated too.. need to do some
fancy reading of things out of /sys now. I actually preferred
/proc/dasd/devices over lsdasd - because lsdasd output is different
depending on the distro/release.. /proc was the same no matter where you
were.. still use it
Okay, please accept an 'I'm stupid' retraction, as Bob N. across the
wall got me. Running 'lsdasd' as root returns the full information
about the device in a nicely parsable format. (Curious it doesn't as
non-root, but there you go).
I'll only wish a salmon on the tools authors in the form of a
Okay, so this just reached an annoyance point with me, so please forgive
me kvetching a bit. BTW -- this is specific to RHEL 5, s390utils 1.8,
so all you more modern folks or SuSE users can just laugh at me.
The contents of /proc/dasd/devices is very complete, but a PITA to
parse. You can't pars