LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you mark a partition active? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-mark-a-partition-active-510174/)

Thaidog 12-13-2006 04:41 PM

How do you mark a partition active?
 
I got the following error when installing lilo:

Warning partition /dev/hda2 not marked active.

How do I mark a partition as active?

homey 12-13-2006 05:10 PM

From man sfdisk
Code:

      -N number
              Change only the single partition indicated. For example:
                  % sfdisk /dev/hdb -N5
                  ,,,*
                  %
              will  make  the  fifth  partition  on  /dev/hdb  bootable
              (‘active’) and change nothing else.  (Probably  this  fifth
              partition  is called /dev/hdb5, but you are free to call it
              something else, like ‘/my_equipment/disks/2/5’ or so).

So, in your case, it would look like this...
Code:

sfdisk /dev/hda -N2
,,,*


Thaidog 12-15-2006 05:44 PM

Is there any way to do it with regular fdisk?


All times are GMT -5. The time now is 02:34 AM.