Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-06-2009, 09:50 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2009
Posts: 5
Rep:
|
GRUB error 15, won't load
Hey,
I posted a similar thread on the Arch forums, but haven't got any answers since yesterday, so I figured it couldn't hurt to post here too.
I had Linux Mint dual booting fine with Windows XP, but hadn't used it in a long time and wanted to try Arch. I deleted Mint's partitions and made new ones for Arch, installed it (successfully, as far as I know), rebooted and...
Code:
GRUB Loading stage1.5.
GRUB Loading, please wait...
Error 15
Ugh! I don't see the GRUB menu or anything, it just locks up at this stage. I'm therefore unable to boot into either Arch or XP.
I have two HDs, one IDE and one SATA (where both OSs are installed). The IDE is sda, SATA sdb. sdb is divided in sdb1, which is Windows, sdb2, which is the boot partition, sdb3 - swap, sdb5 - root, and sdb6 - home.
device.map:
Code:
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
blkid:
Code:
/dev/sda1: LABEL="MAGUS" UUID="43DC-06FF" TYPE="vfat"
/dev/sdb1: UUID="8644E64C44E63F15" LABEL="LAVOS" TYPE="ntfs"
/dev/sdb2: UUID="d0ac72c6-5864-428d-bbb9-e3d20d8ddde5" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb3: UUID="7a716785-a76b-4dd4-8353-48d5afa0a306" TYPE="swap"
/dev/sdb5: UUID="48700728-0695-46f1-8f47-ea364800af1a" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb6: UUID="f1769be4-4c81-4e9c-b2c9-51cbc5743d09" SEC_TYPE="ext2" TYPE="ext3"
fdisk:
Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc14bc14b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9728 78140128+ c W95 FAT32 (LBA)
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe2fbe2fb
Device Boot Start End Blocks Id System
/dev/sdb1 1 32059 257513886 7 HPFS/NTFS
/dev/sdb2 * 32060 32071 96390 83 Linux
/dev/sdb3 32072 32195 996030 82 Linux swap / Solaris
/dev/sdb4 32196 38913 53962335 5 Extended
/dev/sdb5 32196 34019 14651248+ 83 Linux
/dev/sdb6 34020 38913 39311023+ 83 Linux
menu.lst:
Code:
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,1)
# /dev/sda3 (hd0,2)
#
# FRAMEBUFFER RESOLUTION SETTINGS
# +-------------------------------------------------+
# | 640x480 800x600 1024x768 1280x1024
# ----+--------------------------------------------
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +-------------------------------------------------+
# for more details and different resolutions see
# http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution
# general configuration:
default 0
timeout 5
fallback 2
#color light-blue/black light-cyan/blue
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# (0) Arch Linux
title Arch Linux
root (hd1,1)
kernel /vmlinuz26 root=/dev/disk/by-uuid/48700728-0695-46f1-8f47-ea364800af1a ro vga=773
initrd /kernel26.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd1,1)
kernel /vmlinuz26 root=/dev/disk/by-uuid/48700728-0695-46f1-8f47-ea364800af1a ro
initrd /kernel26-fallback.img
# (2) Windows
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
I tried all sorts of things in menu.lst - changing the first root to (hd0,x), pointing the second root directly to /dev/sdb5 instead of using uuid... also, curiously, using "find /grub/menu.lst" gives me (hd0,1). I tried "setup (hd0,1)", and that didn't work either.
I'm hesitant to try to install GRUB in the MBR as the Arch dual boot guide explicitly advises to install it in /boot.
What should I do?
I have very little experience with Linux, so any help is appreciated.
Thanks.
Last edited by Kao; 07-06-2009 at 02:21 PM.
|
|
|
|
07-06-2009, 03:24 PM
|
#2
|
|
LQ Newbie
Registered: Jul 2009
Posts: 5
Original Poster
Rep:
|
How weird - it seems my HDs are switching positions. I just ran fdisk and blkid again and the SATA came identified as sda, while it used to be sdb. Perhaps this is related to the GRUB problem?
(I guess it's the reason why it found menu.lst in (hd0,1))
|
|
|
|
07-06-2009, 06:41 PM
|
#3
|
|
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,354
Rep: 
|
If you change by accident the drive order during install sda and sdb does not change .
But what do change is that the drive that where the first drive at install time become hd0
|
|
|
|
07-06-2009, 07:20 PM
|
#4
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
You will have to write the MBR - it looks like the grub from Mint is still there, and can't find its stage files (because you deleted them  ).
This looks like a better entry to follow - I've used similar on Arch for years.
|
|
|
|
07-07-2009, 01:06 PM
|
#5
|
|
LQ Newbie
Registered: Jul 2009
Posts: 5
Original Poster
Rep:
|
Okay, some progress
I ran fixmbr with WinXP's Recovery Console. The first time I rebooted, GRUB seemed to be working just fine! I logged in to Windows XP (had to do some stuff on the Internet, didn't have time to set Arch up), and later shut the computer down and went to bed. Today I woke up and, to my disappointment, GRUB is now just skipped and Windows boots up automatically. I tried reinstalling GRUB with setup (hd0,1), but that did no good. Then I reinstalled Arch, still no luck. Tried this, but failed at the second umount -a because it said /mnt was busy or something to this effect.
Should I install GRUB in the MBR, despite what the Arch wiki advises? Or what should I do?
Thanks.
|
|
|
|
07-07-2009, 01:15 PM
|
#6
|
|
Member
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906
Rep:
|
Re-install grub.
Yea, fixmbr deletes grub so you will have to re-install it.
|
|
|
|
07-07-2009, 03:01 PM
|
#7
|
|
LQ Newbie
Registered: Jul 2009
Posts: 5
Original Poster
Rep:
|
Well, I'm confused. What purpose does the boot partition serve, then, if GRUB is on the MBR?
|
|
|
|
07-07-2009, 03:39 PM
|
#8
|
|
Member
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906
Rep:
|
Booting.
Same as when windows is installed, only windows does not easily boot linux.
|
|
|
|
07-07-2009, 04:30 PM
|
#9
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
The MBR contains a small amount (a few hundred bytes) of code (stage1) that the BIOS executes on power-on. Its job is to find the code that does the real work - in grub that is located in /boot, which may (but doesn't need to) be a separate partition. In windows (prior to vista) ntldr does the work of finding boot.ini and doing the actual boot function.
The stage1 code is very limited due to its size constraints - grub and lilo are somewhat more flexible than the windows code, but constrained none-the-less.
On modern equipment the requirement for a separate /boot partition has all but disappeared.
|
|
|
|
07-07-2009, 04:42 PM
|
#10
|
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
syg00 won't there need to be something for bios to point to (mbr to operating system). I guess if everyone ran virtual machine it might make it easier.
|
|
|
|
07-07-2009, 04:53 PM
|
#11
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
The BIOS just cycles through the disks it knows about until it finds a sector zero with code in it - then it just loads the code and executes it. If all the disks have no code it gives up and complains. That's why you can have XP code on one disk and grub/lilo on another and flip-flop the BIOS entries to boot either if you want.
Can lead to unexpected errors if the first disk MBR has been blank for a while and gets re-written at some later stage - or a new disk changes the order in the BIOS.
|
|
|
|
07-11-2009, 07:16 PM
|
#12
|
|
LQ Newbie
Registered: Jul 2009
Posts: 5
Original Poster
Rep:
|
I found what was wrong - every time I boot into Windows, it resets my boot partition from sdb2 to sdb1, so if I want to go back to Linux (or just use GRUB) I have to run cfdisk from a LiveCD... it's quite annoying. What could be causing this and how can I fix it?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:45 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|