GRUB Learning Notes

  GRUB rapid deployment of the five parameters of a time :2005-09-21 00:58:38 View: 3023 Published: hxl â–  DAI Lei 
  GRUB is a very good guide for the system, and its function is very strong today, for you about the rapid GRUB configuration of the five parameters.    GRUB configuration file is to use its way to work, it is necessary to configure the GRUB only need to amend / boot / grub / grub.conf or / etc / grub.conf (/ etc / grub.conf is / boot / grub / grub. conf symlink) on it.    In fact GRUB configuration files can be divided into two parts, beginning with "#" to the Notes are, can be disregarded; another part of the role of the parameters is part Below introduced on January 1 for everyone. 

  Default 
  This parameter determines the default GRUB guide the cursor stay at the leading labels.    If default = 0, then GRUB guide, the cursor at the first guide on the label.    If a change will be 0, GRUB guide, the default cursor stay in the second guide on the label.    Timeout 
  This parameter settings GRUB is the waiting time.    When the computer to boot up to guide the page, GRUB will have a default is 10 seconds of waiting time, and if the default time users do not make any choice, GRUB will default parameter settings, automatic guidance system. 

  Timeout 

  Users can also according to their own needs timeout to set parameters.    If timeout = 30, will be set up GRUB default wait time of 30 seconds, and if the timeout parameters will be equal to or deletion of the negative figures to be so that the parameters of failure, GRUB will always remain in the guide pages for users choice. 

  Splashimage 

  When entering GRUB guide interface, we can see that a background picture, and the parameters that provide this function.    In order to enable more personalized GRUB guide, we can prepare you an XPM picture, and then compressed into gz picture format, last modified splashimage parameters in the document path.    If, however, splashimage removed GRUB menu will be the guide and NT Loader, the most common black into white, very ugly. 

  Title 

  In fact title is a guide labels, we can be after the title of the revised text, making it more of our habits.    If the title Red Hat Enterprise Linux AS changed title Red Hat Linux, re-entering the GRUB guide interface, the menu will be guided into Red Hat Linux is not clear?    (The author Note: The following title is part of the information needed to guide the system, not to modify!) 

  Password 

  As we all know, through the editing GRUB boot parameters can easily access single-user mode to modify the root password, which is a multi-user computer or server, will undoubtedly increase the potential safety problems.    You must be like for their own GRUB and a lock bar, we can through the password parameters on the GRUB GRUB a password.    GRUB password settings can be divided into overall menu password and password.    In order to prevent others through GRUB modified root password we need to set up a common password.    Splashimage parameter in the next line can add password = password, preserved to restart your computer, log on to the GRUB menu again when the pages will be found, at this time has no direct orders to use e edit labels start, before the use of p orders, enter the correct password before the commencement of labels can be edited.    Although we set up a global password, but if others get the global password can still be amended to revise labels GRUB boot root password so that we can set menu password, password settings menu is also very simple, we need only title in the next line and the password = password, and then kept out.    Even with this overall input menu password must also be able to guide the system password.    In addition, if carried out directly to the GRUB expressly encryption is very unsafe, so we should use their MD5 encryption.    In the end-of-input grub-md5 crypt Enter, then two will be asked to enter the same password, the system can then output MD5 yards.    It is necessary only to generate the MD5 copy of the text down, and then in accordance with the password - md5 MD5 formatting of the text or the overall menu password from the depositary, restart the computer can be. 
  Well, rapid deployment of the five parameters to the GRUB introduced in detail what we will be using these parameters can be quickly deployed GRUB, everyone refueling ah! 

  Theme: Grub installed three systems 

  Jianqilingren published on 2003-04-18 14:57:57 

  RedHat9 and Mandrake9.1 respectively in the last month released, as the author of Linux enthusiasts, of course, can not let such a good opportunity, download, Kepan ing … but if they live together in peace, is the most used Grub good solution, because it is RedHat default installation, Grub What, in brief is that the system boot, using it to guide the three systems is not the issue, they do not have to find other charges everywhere software. 

  1, Division I in two computer hard drives, the basic idea is for Win 80 G, 10 G put two drives Linux system, a hard drive has been Win2K systems, and if you have only a hard drive, and can be used at PQ an empty zone out, and then in the air from a designated area in exchange Division, format / swap, memory size is generally 1.5 times, if your memory for the more than 512 M or the exchange of regional and memory size on the same trip, separation of the two re-size and the root of about 5 G Division, formatted for EXT3.    This would have the advantage is that when installed Linux system, not because they do not Win Recognition System EXT3 format again become very slow. 

  Second, install Linux system 

  Linux is now very easy to install, as long as the on-screen prompts to the trip, the system installation alphabetical order, but at the time of installation RedHat9 drive hda1 Grub installed in the MBR, the installation Mandrake9.1 when the LILO or install Grub / boot the first sector on OK.    In linux, the district is hda1, and the second hard drive is the main area hdb1, hda5 logical partitions from the beginning, and if there are two hard drives, is probably from hdb5 start, and so on.    If you do not know is how the case, it is necessary to use fdisk-l or df-la to see.    The time to install the system, there will be corresponding to the location you choose to install, or is hdaX like hdbX district, not under Linux Win C and D of the set points. 

  Third, amend grub.conf 

  System installation finished, but now only guide RedHat9 and Win system, must be changed to / boot / grub / grub.conf three systems will be able to operate normally by root users to enter the system by using fdisk-ld terminal Show your points District, the district that the situation will be easy to handle, with any document editor to open / boot / grub / grub.conf, generally speaking, the system will automatically load Win to grub inside, Below is the author of the paper grub.conf , we have to analyze what 
  Default = 0 
  Timeout = 10 
  Splashimage = (hd1, 2) / boot / grub / splash.xpm.gz 
  Title Windows2K 
  Rootnoverify (hd0, 0) 
  Chainloader +1 
  Title RedHat9 
  Root (hd1, 2) 
  Kernel / boot/vmlinuz-2.4.20-8 ro root = LABEL = / 
  Initrd / boot/initrd-2.4.20-8.img 
  Title Mandrake9.1 
  Kernel (hd1, 4) / boot / vmlinuz root = / = dev/hdb5 quiet devfs mount acpi = off vga = 788 
  Initrd (hd1, 4) / boot / initrd.img 

  X = default to the default system activated, 0 in the first row for the system, and so on. 
  X = timeout for the Grub menu at the time, in units of seconds 
  Title XXX, XXX title, that is, you have to guide the name of the operating system can be modified their own 
  Root (hdX, Y) X and Y represents a value of X is the root of linux district in which the hard drive.    If you have only one hard drive.    That is hd0.    If you release a linux is installed in a second hard disk, the X, is one.    Y is installed on your behalf by the district in which the linux.    This figure somewhat different, it is unlikely more can it say clearly.    Let me give an example.    For example, I installed Mandrake second drive of the second district, which is the hdb5.    He's root (hdX, Y), they should write to root (hd1, 4), that is to say hdaZ = Y or Z in the hdbZ minus 1. 
  Kernel (hdX, Y) / boot / vmlinuz root = / dev / hdaZ and initrd (hdX, Y) / boot / initrd.img is to guide the district which drives initrd image and document, we write the correct numerical XY, otherwise unable to guide the system. 
  Quiet devfs mount acpi = = = 788 off vga for the launch of the parameters. 

  Rootnoverify (hdX, Y) could not be activated Win If so, can be root (hdX, Y) to try 
  Chainloader +1 mean this is a designated area on the first track to start 

  Want to join the other operating system to the GRUB in Redhat, it is the case, such as those used in other releases GRUB to guide other releases, principle is the same.    This Win2K and XP and the BOOT.INI almost, it is very simple grub, the will to try. 

  Finally it is, of course, restart the computer archiving and when that happens, we will be able to enjoy the peaceful coexistence of multiple system more fun. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Recommend Articles

Comments

Leave a Reply