On Tuesday, 05/17/2016 at 06:55 GMT, "Pavelka, Tomas" <[email protected]> wrote: > I am assuming you want to do this from Linux and not from CMS. If I remember it right, the DASD > driver does not show you the entire device, only the data portion of CKD and also not record 0. > This means that if dasd has been once formatted, Linux will try to access it as formatted drive. > > There is a way to access raw tracks from Linux, look in Device Drivers, Features and Commands and > search for "Accessing full ECKD tracks". Unfortunately, the last time I tried this (a couple of > years ago) not all kernels supported this and also even on newer kernels, some non-IBM devices did > not support raw track mode from Linux.
In case it's ever needed, if you want to remove ALL formatting from a disk you have to *delete* the records, not just overwrite them. To do that, run ICKDSF TRKFMT UNIT(dev) ERASEDATA CYLRANGE(0,200000) NOVERIFY. I have seen no other formatting program that will actually delete the records. In many cases CYLRANGE(0,0) is sufficient to make an OS think the disk is brand new. Alan Altmark Senior Managing z/VM and Linux Consultant Lab Services System z Delivery Practice IBM Systems & Technology Group ibm.com/systems/services/labservices office: 607.429.3323 mobile; 607.321.7556 [email protected] IBM Endicott ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
