Hashes (#) in /boot/grub/menu.lst

/boot/grub/menu.lst is used to customize the grub bootloader. Similar to every configuration file, a hash # at the beginning of a line means it is a comment, for humans to read only. The application will ignore it. Well not quite. A special section in /boot/grub/menu.lst defaults the rule: the automagic kernel list.

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

##DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
<snip>
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all
<snip>
## ## End Default Options ##

2 hashes mean the line is a comment, 1 hash is a default option, no hash is a kernel entry. grub is special, it names drives and uses hashes its own way :)

References

UF Thread
hermanzone pages

About these ads
Tags: ,

One Comment to “Hashes (#) in /boot/grub/menu.lst”

  1. Hi Isabelle,

    While working with menu.lst, this may be handy:

    http://goukihq.org/hostsecurity/bootloader.txt

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 91 other followers

%d bloggers like this: