Hello, I'm trying to use parted to get details from block devices in a Shell Script, but when I run this for an empty removable device:
parted /dev/mydevice print Returns: Error: Error opening /dev/mydevice: No medium found Retry/Cancel? and doesn't end until user interaction. Is there any way to avoid this, and simple get the message error and status? Thanks.