[ale] Windows restore partitions

Brian MacLeod nym.bnm at gmail.com
Fri Jul 31 16:01:04 EDT 2009


I'll assume grub as that is the usual default boot loader:

Get a md5 hash of the password you would like.  One way to get it is to ask
grub on its command line to give it to you:

grub> md5crypt

Not that useful unless you write it down from here.

Or from the linux command line (as root on NON-Ubuntu systems, or as regular
user on Ubuntu):

$ grub-md5-crypt

Which you can redirect to wherever you need to make it easy for you to put
into the configuration file (usually /boot/grub/menu.lst)

For accessing grub command line, editing options, and any entry protected by
keyword "lock" (in the boot entry) specify the following line BEFORE any and
all TITLE lines:

password --md5 MD%ENCRYPTEDLINE

If you wish to have a specific password for an entry, outside of the above,
put a similar line with a different md5 hash IN a boot entry (after a TITLE
line).

Brian


On Fri, Jul 31, 2009 at 3:37 PM, Thompson Freeman <
tfreeman at intel.digichem.net> wrote:

> On 07/31/2009 02:22:05 PM, john anderson wrote:
> > Awhile back I installed Ubuntu as a dual boot on a windows
> > box. I ran
> > into an issue where the 'restore partition' for windows
> > showed up in the
> > boot loader selections as a boot choice. The problem is
> > that this makes
> > it a little too easy to wipe and reset the the windows
> > partition.
> >
> > Now, admittedly its the windows partition we are talking
> > about, but I
> > would like to avoid this as a potential problem when I
> > talk people into
> > trying Linux.
> >
> > I am planning on installing Ubuntu 9.04 on my niece's
> > computer but I am
> > afraid that a poor keystroke by her or her little brother
> > could cause
> > havoc. I figure I could maybe comment out that line in the
> > grub file.
> > Would this solve the issue and how would you then run the
> > restore
> > partition when you actually wanted to. (Or rather how
> > would I explain
> > this over the phone.)
>
> Before taking this at face value, check with the
> documentation first. However, if memory serves, you can set
> a password requirement for any line in the boot menu.
>
> Of course, since I've never done this, please don't ask
> _how_. In fact, if my memory proves to be correct, would
> you be so kind as to document it to the list please??
> Locking up the restore partition and the single user boot
> option strikes me as a "good idea"...
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20090731/479e94df/attachment.html 


More information about the Ale mailing list