[TriLUG] kickstart clearpart command

Janyne Kizer janyne_kizer at ncsu.edu
Tue Apr 20 08:33:29 EDT 2004


Thanks!  I was more or less coming to the same conclusion.  This is 
really helpful!

On 4/19/2004 4:10 PM, Timothy A. Chagnon wrote:
> I don't think clearpart has the ability to just clear off single
> partitions.  I think it will just clear an entire drive.  If you wanted
> to keep sda1 but replace sda2 and sda3, your only option would be to use
> sda2 and sda3 as is, using the part keyword in the kickstart file.
> 
> For example:
> 
> part /other --onpart=/dev/sda1 --noformat
> part swap --onpart=/dev/sda2
> part / --onpart=/dev/sda3
> 
> In this case you would want to leave clearpart out.
> 
> For more detailed information on kickstart
> Google: kickstart-docs
> That'll give you the docs from anaconda.
> 
> Be wary though.  kickstart is notoriously finicky.
> 
> -Tim
> 
> On Mon, 2004-04-19 at 14:51, Janyne Kizer wrote:
> 
>>I was wondering if any of you have used the kickstart option clearpart 
>>to drop specific partitions?  I want to drop sda2 and sda3 but keep the 
>>rest.  From what I can tell, this should have worked but I get a fatal 
>>anaconda error when I try it.
>>
>>clearpart --linux --drives=sda
>>

-- 

Janyne Kizer
Systems Programmer Administrator
NC State University, College of Agriculture & Life Sciences
Extension Information Technology



More information about the TriLUG mailing list