You are not logged in.

#1 2012-11-07 22:37:28

Wesman26
Member
Registered: 2009-04-18
Posts: 70

[Solved] Grub Error 15 at boot on new install.

So I was trying to avoid asking for help, but I honestly can't see what's wrong with my new install of arch.  I followed the beginner's guide all the way up to the part where you reboot and remove the liveCD.  It all went swimmingly until I rebooted and got:

GRUB Loading stage1.5.


GRUB Loading, please wait...
Error 15

I don't know what's going on.  Error 15 is supposedly "file not found," but I don't know what file it's looking for since I have a grub.cfg that I created from the steps posted on the guide.  Any help is greatly appreciated.


--Wes

EDIT:
Just to be clear I followed the BIOS motherboard steps for GRUB.

Last edited by Wesman26 (2012-11-09 01:25:38)

Offline

#2 2012-11-07 22:59:21

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Grub Error 15 at boot on new install.

Google it. It's more common than you know. It's been asked about this on the forums at least fifteen times already.



Hint: Chroot into your install, and follow the instructions from the Beginners' Guide. Don't install GRUB to a partition (i.e. /dev/sda instead of /dev/sdaX), because you want to install to the MBR in this case. And don't forget to generate a grub.cfg.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-11-08 00:06:18

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: [Solved] Grub Error 15 at boot on new install.

Sorry for sounding so incompetent, but I've been looking around the internet for hours now, and most problems I've found seem to stem from users upgrading from legacy, which I'm not.  I've followed the instructions from the beginner's guide and reinstalled grub 8 times now.  I don't know what's wrong and it's really getting on my nerves, so I apologize if I sound crass, but I wouldn't be asking for help here unless I truly had run out of options.

EDIT:
Frustrated to no end, I decided to do a full-blown, from-scratch reinstallation (again), and I also came across this post that didn't seem like it was that pertinent, but I decided to throw the --force onto my grub-install as well as the --debug since I was getting similar warnings on my installation of grub-bios.  Lo and behold, I still get error 15.  Help is still greatly appreciated.

Livid,
--Wes

Last edited by Wesman26 (2012-11-08 01:40:29)

Offline

#4 2012-11-08 06:01:44

Xacky
Member
Registered: 2011-08-26
Posts: 27

Re: [Solved] Grub Error 15 at boot on new install.

Wesman26 wrote:

Sorry for sounding so incompetent, but I've been looking around the internet for hours now, and most problems I've found seem to stem from users upgrading from legacy, which I'm not.  I've followed the instructions from the beginner's guide and reinstalled grub 8 times now.  I don't know what's wrong and it's really getting on my nerves, so I apologize if I sound crass, but I wouldn't be asking for help here unless I truly had run out of options.

EDIT:
Frustrated to no end, I decided to do a full-blown, from-scratch reinstallation (again), and I also came across this post that didn't seem like it was that pertinent, but I decided to throw the --force onto my grub-install as well as the --debug since I was getting similar warnings on my installation of grub-bios.  Lo and behold, I still get error 15.  Help is still greatly appreciated.

Livid,
--Wes

Which instructions did you follow? This would normaly do it when chrooted (during install).

# grub-install /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg

Wat your disk en partition lay-out?
-One or more harddisks?
-Partitions? Everything on / or separate /home /boot (/var)?

Last edited by Xacky (2012-11-08 06:02:32)

Offline

#5 2012-11-08 10:08:30

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Grub Error 15 at boot on new install.

Lol... a full reinstall wasn't needed. This mentality is typical to a Windows user.


Maybe you have a different GRUB install on another HDD, and you don't have the BIOS settings to boot from your equivalent of "Removable Dev." first, "CD-ROM" second, "Internal Storage" third; then you need to change the boot priority to match whatever HDD has Arch on.

If you have a separate boot partition, make sure it's not "/boot/boot/grub/". This is mentioned in the GRUB wiki page. Your separate boot partition should only have a "grub" folder inside, along with the kernel and two initramfs images (no "boot" folder). Then you mount it from fstab under "/boot", so that the full path is "/boot/grub".

Last edited by DSpider (2012-11-08 10:10:04)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-11-08 20:50:56

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: [Solved] Grub Error 15 at boot on new install.

Xacky wrote:

Which instructions did you follow? This would normaly do it when chrooted (during install).
...
Wat your disk en partition lay-out?
-One or more harddisks?
-Partitions? Everything on / or separate /home /boot (/var)?

I'm following the beginner's guide instructions for a BIOS install.  After chroot I used the following:

# pacman -S grub-bios
# grub-install --target=i386-pc --recheck  --force --debug /dev/sdb
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg

Aside from the warnings (that I think most people ignored) of a few files not existing during the installation of grub-bios, it all went fine.  The harddrive is definitely sdb (fdisk -l shows sda as my windows drive, not to mention I just formatted and partitioned sdb).  My partitions are laid out exactly as the guide tells me to (/ on /dev/sdb1 and /home on /dev/sdb2).  They are the only partitions on sdb.

DSpider wrote:

Lol... a full reinstall wasn't needed. This mentality is typical to a Windows user.

I don't appreciate your condescension.  These forums have (up to this point) always been really helpful and friendly to me; just because I'm posting in the newbie corner doesn't mean I'm not familiar with linux, and even if I were unfamiliar with linux I would hope that you could show more respect and compassion for someone who needs help than to ostracize them and laugh about their problem.  I posted here because I figured I didn't need to waste the time of the mods and users who offer help in the installation subforum with something that I assumed would be a trivial fix.  I expected courteous, thoughtful responses.  I was apparently wrong to assume.

I reinstalled because I didn't know what else to do, and figured that there might have been a chance that I made a mistake.  Since your previous advice was literally getting me nowhere I figured the 10 minutes of my time reinstalling took up would be worth the potential of fixing my problem. 
To answer your questions that are actually helpful:
I don't have grub installed on another drive and my drive and partition layout is detailed above.  As for boot priority, it hasn't changed since I first installed linux in 2006 and it's worked ever since; I'm performing this operation to clear what was once a drive cluttered with a few other distros that I've abandoned since 2007 when I found Arch (yes I am actually that lazy).

Is it possible that my old installation of grub might have stayed on the drive even after I rid it of the old partitions (since it's stored in MBR)?  If so does the installation of grub2 I'm performing not get rid of it?

Hope this helps,
--Wes

Last edited by Wesman26 (2012-11-08 20:53:27)

Offline

#7 2012-11-08 21:10:25

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Grub Error 15 at boot on new install.

The bootloader is a package, and reinstalling the entire operating system just because one package wasn't configured properly is just bad practice, IMO.

You won't learn anything if you do this every time there's a problem.


Post the output of:

# fdisk -l

"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-11-08 21:19:37

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: [Solved] Grub Error 15 at boot on new install.

Oh, it's absolutely bad practice, but I just wanted to be sure the problem wasn't caused by some other mistake. 
Here's fdisk -l:

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x969059f0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   976768064   488384001    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000df48a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63    29993354    14996646   83  Linux
/dev/sdb2        29993355   976773167   473389906+  83  Linux

Disk /dev/mapper/arch_root-image: 809 MB, 809500672 bytes, 1581056 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/arch_usr-lib-modules: 100 MB, 100663296 bytes, 196608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/arch_usr-share: 511 MB, 511705088 bytes, 999424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdc: 8036 MB, 8036285952 bytes, 15695871 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000839a6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048    15693823     7845888    b  W95 FAT32

You can ignore sdc since it's just a flashdrive (not a liveusb) that I used to transfer the output of fdisk from my broken install to this computer.

Last edited by Wesman26 (2012-11-08 21:20:27)

Offline

#9 2012-11-08 21:57:13

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Grub Error 15 at boot on new install.

So you still have not answered the question of what disk are you actually booting from.  You mention you are lazy, and apparently you are too lazy to actually check and provide the information requested.  This is especially improtant since you have two disks.  Disregarding sdc, do you have a bootloader isntalled on both disks?  And ideally, which drive are you trying to boot from?

I think that DSpider is being remarkably patient with you.  It would seem to me that you should appreciate his help, and not fly off the hinges when he makes one snarky remark.  I mean, you choice of reinstallation was certainly unnecessary and something that is seen far too often in these forums as a way to "fix" the problem.  DSpider is here heling you as a courtesy and for free.  Keep that in mind when you ask for help around here.

Offline

#10 2012-11-08 22:15:30

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: [Solved] Grub Error 15 at boot on new install.

WonderWoofy wrote:

So you still have not answered the question of what disk are you actually booting from.  You mention you are lazy, and apparently you are too lazy to actually check and provide the information requested.  This is especially improtant since you have two disks.  Disregarding sdc, do you have a bootloader isntalled on both disks?  And ideally, which drive are you trying to boot from?

I think that DSpider is being remarkably patient with you.  It would seem to me that you should appreciate his help, and not fly off the hinges when he makes one snarky remark.  I mean, you choice of reinstallation was certainly unnecessary and something that is seen far too often in these forums as a way to "fix" the problem.  DSpider is here heling you as a courtesy and for free.  Keep that in mind when you ask for help around here.

You are right; I apologize for my rudeness in letting out my frustrations on DSpider.  It's been a rough few days here and my computer troubles in addition to my being sick has really taken a tole on my nerves. 

So to reiterate:  I am sorry for being overly sensitive with your remark DSpider, I'm pretty on edge right now, and it wasn't fair of me to take such offense where none was intended.   I'd also like to thank you, WonderWoofy, for calling me out.  At the end of the day, I'm just trying to fix my computer and since I can't do it myself I should be more respectful to the people trying to help me.  I'm sorry for losing my head guys.

As for which disk I'm trying to boot from, I thought I had mentioned that I'm booting from sdb, as sda is my windows drive.  I have also never installed a bootloader onto sda, so there shouldn't be one there.  Prior to clearing sdb I had a couple distros on it that I used and my BIOS boot priority hasn't been changed, so it should try to boot from sdb first (and it appears to be since I'm not booting into windows).

Hope this helps,
--Wes

Offline

#11 2012-11-08 22:30:58

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Grub Error 15 at boot on new install.

Thanks for the clarification Wesman26.  Typically the Grub Error 15 is thrown at you when it cannot find the grub.cfg.  This can be from a couple different things.  You may not have actually generated the grub.cfg, you may have done the /boot/boot thing that DSpider mentioned, or it may still be trying to boot from grub that has been installed from a previous installation/parititon.  Maybe you should make sure that there actually is a /boot/grub/grub.cfg, as well as maybe post those error messages you are ignoring.

If you are willing to try new things, I found the simplicity and ease to use syslinux a joy.  I used grub2 for about three weeks before I decided it was rather rediculous to ask your bootloader to do so damn much.  The only thing I can think of that I might want grub2 for is if I were to put my /boot in the LVM.  But then I also use UEFI, and the ESP is my /boot, so I have to have it separate.

Offline

#12 2012-11-08 22:44:47

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: [Solved] Grub Error 15 at boot on new install.

I know that grub.cfg is definitely being generated, and it's stored in /boot/grub/grub.cfg.  The error messages are the same as those found in this post that I pointed to earlier.  They appear during the installation of grub-bios.

At this point I'm seriously considering syslinux, since it looks much simpler, but I suspect my troubles may be coming from my previous installation of GRUB (legacy) on this drive.  If that is the case, would installing syslinux rid my MBR of this previous install?  If not, is there a way to clear my MBR that I might have overlooked?

EDIT:
So after looking at this I decided to

dd if=/dev/zero of=/dev/sdb bs=446 count=1

But to no avail.  The error 15 persists even after rebuilding grub.

Last edited by Wesman26 (2012-11-08 22:59:20)

Offline

#13 2012-11-08 22:56:41

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Grub Error 15 at boot on new install.

You could simply dd the first 440 bytes.  Do this with extreme caution, as this command is super low level and you could destroy all your data with a typo here.

# dd if=/dev/zero of=/dev/sdb bs=446 count=1 

The MBR partitoning system uses the master boot record, which is the first 512 bytes.  The first 446 are the bootloader and tehn remaining is the partition table.  I hav also read sometimes that it is 440, so that is what I have used in the past (I figure an extra 6 bytes of unusable binary couldn't hurt anything if I plan on overwriting it).  Again, if you choose to do this (and I am pretty certain it is not necessary), proceed with caution.

But if you simply install syslinux, yes it will overwrite your grub installation.  Syslinux can also be installed with a dd command if all else fails.

Offline

#14 2012-11-08 22:59:54

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: [Solved] Grub Error 15 at boot on new install.

WonderWoofy wrote:

You could simply dd the first 440 bytes.  Do this with extreme caution, as this command is super low level and you could destroy all your data with a typo here.

# dd if=/dev/zero of=/dev/sdb bs=446 count=1 

The MBR partitoning system uses the master boot record, which is the first 512 bytes.  The first 446 are the bootloader and tehn remaining is the partition table.  I hav also read sometimes that it is 440, so that is what I have used in the past (I figure an extra 6 bytes of unusable binary couldn't hurt anything if I plan on overwriting it).  Again, if you choose to do this (and I am pretty certain it is not necessary), proceed with caution.

But if you simply install syslinux, yes it will overwrite your grub installation.  Syslinux can also be installed with a dd command if all else fails.

Haha, just saw this after my edit :X.

I'm officially giving up and switching to syslinux.  I'll post results shortly.

Last edited by Wesman26 (2012-11-08 23:09:56)

Offline

#15 2012-11-09 00:18:56

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Grub Error 15 at boot on new install.

Amazing idea.  I think you will be pleasantly suprised at how much awesomer it is.  For a bunch of people who use a distribution that promotes beauty through simplicity, we have a awful lot of everything but the kitchen sink grub users around these parts.

Offline

#16 2012-11-09 01:25:09

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: [Solved] Grub Error 15 at boot on new install.

Yup, syslinux has been successfully installed and it's much nicer.  Thanks everyone who helped!  Sorry for being an ornery son of a bitch.

--Wes

Offline

#17 2012-11-09 02:33:47

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Grub Error 15 at boot on new install.

Glad to hear it Wes.  I think we all get there some times.  Respect, for taking a step back and evaluating the situation with a cool head.  Enjoy syslinux and your Arch Linux installation!

Offline

Board footer

Powered by FluxBB