Penguin

Differences between version 24 and predecessor to the previous major change of GrubNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 24 Last edited on Saturday, October 20, 2007 9:28:01 pm by BruceKingsbury Revert
Older page: version 22 Last edited on Tuesday, September 11, 2007 2:16:34 pm by IanMcDonald Revert
@@ -7,8 +7,17 @@
 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. 
  grub-install /dev/hda 
+  
+!! I get "The file /boot/grub/stage1 not read correctly" when running <tt>grub-install</tt>  
+Even if you can see the file /boot/grub/stage1 on your filesystem, this error message means that grub can't find it when it is running. Grub consults your /etc/fstab and /etc/mtab files to determine which partition/drive the '''/boot''' directory is actually on, so check those files are correct. (See the next section for more details about this.)  
+  
+There are also lots of other obscure reasons why it can't be found, and unfortunately the GRUB developers don't believe in giving users better error messages. In my case, I got this because I was trying to install an MBR to boot of a drive that had linux installed on a partition that used to have windows xp. In this case, the partition type was set to "NTFS" despite containing an ext3 partition. Using ''cfdisk'' to change the partition type to be "83 (linux)" meant that when I next ran __grub-update__, it worked.  
+  
+!! I get "Error 15" on boot even after reinstalling GRUB from a rescue CD  
+  
+This one had us stumped for a while, until I noticed that the boot order in BIOS was CDROM -> IDE-1 -> Floppy. The correct device should have been IDE-0. IDE-1 is the Primary SLAVE drive which in this case happened to exist, and also happened to have an old copy of GRUB on the MBR. Sometimes the problem isn't where you expect it to be!  
  
 !! I get a grub> prompt on boot 
  
 This means [GRUB] can't find your config file. You can still boot into the system by issuing appropriate commands.