Syndicate content

GRUB error 16

[vtoc title=Boot Sector; minlevel=1; maxlevel=4;]

Error 16

Today I got an error 16 with GRUB on one of my machines. This had happened before so I did not worry too much. It is just quite annoying.

Ubuntu CD

A Ubuntu boot CD has a cool feature one can use to rescue such a system (i.e. re-install GRUB properly.) More or less, boot the CD, select the rescue mode, let it do its things for a moment (after you select options like keyboard, etc.)

Drive Selection

At the time it tells you to select your drive, choose your boot drive (/dev/sda1 maybe? In my case, it was /dev/hda5.) The system says something like Which disk do you want to select as root? (i.e. / in your file system.) Just for fixing GRUB you should not need anything more than that.

The drive you select should include the /boot folder from your Linux installation. If /boot is on a separate partition, then go to the root partition and use mount to get access to /boot.

Enter Shell

Once the drive was selected, choose to enter a shell. After you hit enter it starts and the selected partition becomes / (with a chroot that is done automatically for you!)

Note that the chroot on / is important for the GRUB command to work. If you're not in that folder, the booting to your Linux partition won't work correctly.

Re-install grub

Now you are ready to run: grub-install /dev/hda This will give you some warnings, ignore them and try to reboot (i.e. Ctrl-D and then select reboot system.)

Source of the Problem?

What had happened? Frankly I have no idea, but in general what happens is that MS-Windows overwrites some boot sectors. This makes GRUB not know what to do next. Obviously.

I have also heard of some people who reformatted a Linux partition for Windows but kept GRUB as their boot system. This is fine until you overwrite the files that GRUB needs to startup your computer (stage1 and/or stage2.) At that time you will have to replace GRUB with the standard MS-Windows MBR (Master Boot Record.) The MS-Windows CD let you fix the MBR.

What about Error 17 or 18?

But for me, GRUB says error 17 or 18... These are different errors. You can attempt to fix things as described here, but error 18 is usually because the hard drive cannot be read. Also this is likely your hardware, it could also come from your BIOS that cannot load data at such large sector numbers. In this case, try to put your root partition on /dev/hda1 at the very beginning of the hard drive. If that still fails... get a new drive or a new computer altogether! Well... first try with LILO or some other boot loader! It could be cheaper.

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165


Terms of Site Index

Find the page/content you are looking for with our index.

  • EDLL
    Enhanced Dynamic Link Library--an enhanced dynamic linker that simulates the behavior of the Linux and other Unix linkers by offering a way for libraries to link back inside the main executable. See the EDLL website for more information.
  • associate
  • development
  • key

    There are several ways to use the term key in software development. You may have heard it a lot in regard to public and private keys. Those are used to encrypt and decrypt data sent over the wire. Another way is when you want to sort a large number of entries in a database. In that case, you most likely will need a unique key. For example, a page on the Internet is defined with a URI. You may define a canonical version of that URI making it unique. That canonical version is called a key for that page.

  • list