tech-userlevel archive

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

Re: fdisk behavior on a gpt partitioned disks



On Fri, 29 May 2009 06:05:55 -0700 (PDT) Paul Goyette wrote:
> On Fri, 29 May 2009, Mike M. Volokhov wrote:
> 
> > The patch implements the following logic:
> >
> > - always warn if disk have GPT
> >
> > - in interactive mode: explicitly warn that any change to MBR will
> >  result in GPT removal, ask for confirmation, and remove GPT
> >
> > - in non-interactive mode: remove GPT and explicitly note this fact
> 
> Wouldn't it be more reasonable to have a new command-line option to 
> remove the GPT? In non-interactive mode without the new option, if the 

Probably no. To be fair, operator should use "gpt destroy" instead.

> GPT exists the command should fail with a non-zero exit status (and an 
> appropriate error message).

You're right. I'm going to implement it via "double force" option (-ff).

Thanks!

--
M.


Home | Main Index | Thread Index | Old Index