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

Re: Setting bootable flag on partition non-interactively.



On Mon, 1 Feb 2010 15:14:55 -0500 (EST), Tim Legg wrote:
> Hello all,
> Any suggestions on how to set a bootable flag non-interactively?

  sfdisk -A 

See the man page for sfdisk for details.
For example,

  sfdisk -A 1 /dev/hda

will mark the first partion on /dev/hda active and mark all other partitions inactive.
sfdisk is part of the util-linux package.


Reply to: