In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly talks about "the installation and use of grub under LINUX system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "the installation and use of grub under the LINUX system"!
Installation of grub software package
1. Install rpm or source package
2, install into mbr
* write / boot/grub/grub.conf file
* grub-install / dev/hda
Make a grub boot disk (a / boot directory will be created on the floppy disk automatically)
Mke2fs / dev/fd0
Mount / dev/fd0 / mnt/floppy
Grub-install-- root-directory=/mnt/floppy/' (fd0)'
Using grub Boot disk to restore the covered Boot system
Installing windows first can recognize and start windows when installing linux,grub. In this process, grub can not directly load the windows core boot file, but call windows's own bootstrap boot.ini is usually the boot sector of the partition where windows is located, but when you install the windows system again, mbr will be rewritten. As a result, you can only start the newly installed windows, but not the linux, because grub itself is installed in mbr and is overwritten by the boot of the newly installed windows.
Grub > root (see root)
Grub > find / boot/grub/grub.conf (see which partition grub.conf is in)
Grub > root (hd0,0)
Grub > setup (hd0) (reinstall grub into hd0's mbr)
Grub profile description
Default saved specifies that the default startup item is the last saved value
Default 0 starts from the first menu by default
Splashimage (hd0,0) / boot/grub/splash.xpm.gz specifies the grub background picture
Timeout 10 specifies the time of menu delay
Title Red Hat linux specifies the name of the menu
Root (hd0,0) sets the root device root of grub to the partition where the linux kernel resides
Kernel / boot/vmlinuz-2.4.20-8 ro root=LABEL=/ loads linux kernel
Initrd / boot/initrd-2.4.20-8.img uses the initrd command to load the image file
Title winxp defines the windows startup menu
Map (hd0) (hd1) uses the map command to swap disk or partition identifiers in BIOS to start windows on the second hard disk
Map (hd1) (hd0)
Root (hd1,0) sets the root device where the real windows is located as the root device of grub
Makeactive sets the root device to the active partition (cannot boot from the inactive partition for windows)
Chainloader+1 calls the boot loader of the Windows partition to boot the windows system
Savedeafult-- > Save the current startup item as the default startup menu
At this point, I believe you have a deeper understanding of "the installation and use of grub under the LINUX system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.