[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22387: Non-interactive use and errors

From: Brian C. Lane
Subject: bug#22387: Non-interactive use and errors
Date: Thu, 28 Jan 2016 08:52:33 -0800
User-agent: Mutt/1.5.24 (2015-08-30)

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.

Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]