[SOLVED] i want to understand grub-install command
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im studying for lpic-1. I'm confused on what scenario would I use grub-install command.
As a test, I deleted the file /boot/grub/menu.lst on a vm machine and booted centos 6.2 to rescue it. I ran grub-install /dev/sda but still my system would not boot
Will I only use it if its corrupted? How do I corrupt my system for me to test grub-install?
Which physical disk will I choose for grub-install if I have two physical disk namely sda and sdb?
you may find the need to reinstall grub after attempting (and failing) to set up a multi-boot system or experimenting with alternate boot loaders.
as far as which device you choose to install to.. it will be sd* or hd* depending on which kind of hard drive you use NOT something like sda1 or hda2 which refer to partitions on a hard drive. the boot loader is a part of the MBR which is stored on the first sector of the hard drive.
Thank you all, I finally understand it but the reputation point goes to Linux_420. Reading the manual is not enough as I'm having troubles understanding some of the manpages of commands, I just keep on reading tutorials and articles then test and that works best for me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.