shell: Hide the Format button for CD/DVD drive

Hide the "Format" button and "—" text if the device is a CD/DVD drive.

Fixes #919