If format is what you want to use, an old hack is piping null as an input. "echo | format" or "format < /dev/null" if you're planning on using it in a script, you may look at devinfo, in particular the -i and -p arguments. The data contained there (block size + blocks) should give you what you need to calculate disk size. However, I'm not certain it works with EFI labeled disks. In that case the only tool I know to use is prtvtoc. On Jul 28, 2014, at 3:26 PM, Seth Miller <sethmiller.sm@xxxxxxxxx> wrote: > I'm trying to list the available disk devices in Solaris 11.2. Using the > format command gives me the device name and some attributes but I can't > include it in a script since, the command by itself prompts to select a > device. There must be an easier way to do this. > > My requirements are: > List the device name of the available disk devices > Include the approximate size or some other attribute that allows me to easily > differentiate one device from another > Do not prompt for input so that the information can be used in a script > > > Seth Miller >