Differences between version 26 and predecessor to the previous major change of GrubNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 26 | Last edited on Monday, March 16, 2009 8:27:42 pm | by LawrenceDoliveiro | Revert |
Older page: | version 25 | Last edited on Sunday, March 8, 2009 12:40:30 pm | by RossHamblin | Revert |
@@ -1,9 +1,9 @@
!! I need to reinstall grub in my master boot record
Boot off a liveCD, and [chroot(8)] into your main root partition.
-__Remember that grub numbering starts at :__ __/dev/hda1__ becomes __(hd0,)__, etc.
+__Remember that grub numbering starts at :__ __/dev/hda1__ becomes __(hd0,)__, etc. However, note that GRUB’s disk ordering is determined by the BIOS, while the Linux kernel’s ordering is not. For instance, on an Asus Eee 701, if you change the BIOS boot order to put the SD-card slot ahead of the internal SSD, GRUB will swap their names around so the internal SSD becomes “hd1” and the SD-card becomes “hd0”. However, the kernel will still call them “sda” and “sdb” respectively
.
Run 'grub'. Issue =root (hdx,x)= if you know where your __/boot__ directory is, or use =find /boot/grub/stage1= to find it if you don't. Then issue =setup (hdx)= to install GRUB in the master boot record of drive hdx, or =setup (hdx,x)= to setup inside a partition.
Alternatively on many modern distros you can use [grub-install(8)] to do this e.g.