Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-13-2006, 05:41 PM   #1
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
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?
Old 12-13-2006, 06:10 PM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
From man sfdisk
      -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...
sfdisk /dev/hda -N2
Old 12-15-2006, 06:44 PM   #3
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
Is there any way to do it with regular fdisk?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error - No Active Partition OldManRiver Linux - Software 4 11-29-2006 11:32 AM
Active/Bootable partition question linda Linux - Newbie 11 11-13-2005 08:24 PM
BIOS resetting active partition Snyke Linux - General 5 12-06-2004 10:51 AM
active partition? JediDrunk Linux - Newbie 9 09-01-2003 02:58 PM
Resize an Active Partition deesto Linux - General 1 02-04-2003 03:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration