summaryrefslogtreecommitdiff
path: root/grub/README
blob: 97ddcfcac4523dee346de4b939bffb8623237088 (plain)
    1 
    2 REQUIREMENTS
    3 
    4 PRE-INSTALL
    5 	    
    6 POST-INSTALL
    7 
    8 	Automatic setup using grub-install
    9 
   10 	After installation you should create your own boot menu:
   11 
   12 	# # Copy sample file
   13 	# cp /boot/grub/menu.lst.sample /boot/grub/menu.lst
   14 	# # Modify it for your system
   15 	# vi /boot/grub/menu.lst
   16 
   17 	For more information about setting up your own grub boot menu file:
   18 	http://www.gnu.org/software/grub/manual/grub.html#Configuration
   19 
   20 	After making your boot menu you should run grub-install like so:
   21 
   22 	# grub-install /dev/sdX
   23 
   24 	In the example above, X needs to be replaced with your hard drive.
   25 
   26 	Manual setup
   27 
   28 	After installation you need to copy the stage files to /boot/grub/:
   29 
   30 	# cp /usr/share/grub/i386-pc/* /boot/grub/
   31 
   32 	(Of course, you can choose another location as described above but this guide
   33 	assumes that you use /boot/grub. Normally you need only the files stage1 and
   34 	stage2. Please read the grub documentation if you don't know why:
   35 	http://www.uruk.org/orig-grub/ and
   36 	http://www.gnu.org/software/grub/manual/grub.html)
   37 
   38 	Now it's time to create your own "boot menu":
   39 
   40 	# # Copy sample file
   41 	# cp /boot/grub/menu.lst.sample /boot/grub/menu.lst
   42 	# # Modify it for your system 
   43 	# vi /boot/grub/menu.lst
   44 
   45 	For more information about setting up your own grub boot menu file:
   46 	http://www.gnu.org/software/grub/manual/grub.html#Configuration
   47 
   48 	Last but not least, install/enable the boot manager:
   49 
   50 	# # If the boot partition is mounted, you must specify --stage2, like below.
   51 	# # Otherwise, you may remove this.
   52 	# # Run grub
   53 	# grub
   54 	grub> root (hdX,Y)
   55 	grub> setup --stage2=/boot/grub/stage2 (hdX)
   56 	grub> quit
   57 
   58 	Please correct the path and device names according to your configuration. Also
   59 	see http://www.gnu.org/software/grub/manual/grub.html#Installation. In the
   60 	example above, X and Y need to be replaced with your hard drive and grub
   61 	partition.
   62 
   63 	That's all. Good luck ;)	
   64 
   65 PRECAUTION
   66 
   67 	Installing a new boot manager is like modifying the partition table 
   68 	or installing a new system kernel. Please create a rescue disk first :)
   69 	
   70 Brett Goulder	<predatorfreak@dcaf-security.org>

Generated by cgit