GNU bug report logs - #22387
Non-interactive use and errors

Previous Next

Package: parted;

Reported by: Narcis Garcia <informatica <at> actiu.net>

Date: Sat, 16 Jan 2016 19:13:01 UTC

Severity: normal

Done: Phil Susi <psusi <at> ubuntu.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: bug-parted <at> gnu.org
Subject: Re: bug#22387: Non-interactive use and errors
Date: Thu, 28 Jan 2016 08:52:33 -0800
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)




This bug report was last modified 9 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.