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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22387 in the body.
You can then email your comments to 22387 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#22387; Package parted. (Sat, 16 Jan 2016 19:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Narcis Garcia <informatica <at> actiu.net>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Sat, 16 Jan 2016 19:13:01 GMT) Full text and rfc822 format available.

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

From: Narcis Garcia <informatica <at> actiu.net>
To: bug-parted <at> gnu.org
Subject: Non-interactive use and errors
Date: Sat, 16 Jan 2016 20:11:26 +0100
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?

Thanks.





Information forwarded to bug-parted <at> gnu.org:
bug#22387; Package parted. (Thu, 28 Jan 2016 16:53:01 GMT) Full text and rfc822 format available.

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)




Information forwarded to bug-parted <at> gnu.org:
bug#22387; Package parted. (Thu, 28 Jan 2016 19:02:02 GMT) Full text and rfc822 format available.

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

From: Narcis Garcia <debianbugs <at> actiu.net>
To: bug-parted <at> gnu.org
Subject: Re: bug#22387: Non-interactive use and errors
Date: Thu, 28 Jan 2016 19:52:50 +0100
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.
> 




Reply sent to Phil Susi <psusi <at> ubuntu.com>:
You have taken responsibility. (Mon, 08 Feb 2016 13:50:02 GMT) Full text and rfc822 format available.

Notification sent to Narcis Garcia <informatica <at> actiu.net>:
bug acknowledged by developer. (Mon, 08 Feb 2016 13:50:03 GMT) Full text and rfc822 format available.

Message #16 received at 22387-done <at> debbugs.gnu.org (full text, mbox):

From: Phil Susi <psusi <at> ubuntu.com>
To: 22387-done <at> debbugs.gnu.org
Subject: Re: bug#22387: Non-interactive use and errors
Date: Mon, 8 Feb 2016 08:49:49 -0500
Asked and answered.




Information forwarded to bug-parted <at> gnu.org:
bug#22387; Package parted. (Mon, 08 Feb 2016 18:13:02 GMT) Full text and rfc822 format available.

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

From: Narcis Garcia <informatica <at> actiu.net>
To: bug-parted <at> gnu.org
Subject: Re: bug#22387: Non-interactive use and errors
Date: Mon, 8 Feb 2016 16:32:34 +0100
I'm receiving answers from many people but neither a subject [prefix]
nor arecipient seems related to the software project they are talking about.

Can you unsubscribe me from this chaotic thread?


On 08/02/16 14:49, Phil Susi wrote:
> Asked and answered.
> 
> 
> 




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Mar 2016 12:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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