Oh thanks.
El 28/01/16 a les 17:52, Brian C. Lane ha escrit: > On Sat, Jan 16, 2016 at 08:11:26PM +0100, Narcis Garcia wrote: >> Hello, I'm trying to call parted from a ShellScript to get details from >> block devices: >> >> $ parted /dev/OneDevice print >> >> But when I specify a removable device, it expects user interaction: >> Error: Error opening /dev/OneDevice: No medium found >> Retry/Cancel? >> >> Is there any way to avoid this and get only the error message and status? > > Use script mode: > > parted -s /dev/blah print > > Any user interaction will take the 'safe' choice, not changing any data. >
