You are not logged in.

#1 2011-08-09 20:48:37

DarknessAngel
Member
Registered: 2011-08-09
Posts: 9

[SOLVED] grub error 15

So i decided to take the plunge and install arch linux. Please excuse me as i've tried searching and cannot find exactly what i'm looking for. I'm having some issues loading into arch via grub. i'm running 2 seperate hard drives.  On my first drive i installed windows first and made sure it booted fine.  i then unplugged that drive and moved my 2nd drive to my primary sata slot.  I then installed arch on that hard drive. I let it auto setup my drive by wiping it and creating the following:
/boot 1 gig
/swap 8 gig
/  70 gig
/home 400 gig

fstab file i left alone so its setup by UUID's.   basically
devpts                                     /dev/pts  devpts  defaults          0      0
shm                                        /dev/shm  tmpfs   nodev,nosuid  0      0
/boot defaults                      ext2  0 2
swap                                           0 0
/ is  defaults,noatime          ext4   0 1
/home is defaults,noatime  ext4   0 2


Once that was completed and the grub portion came up i left the linux portion as default. (trying to remember this off the top of my head at work)
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/(insert uuid here) ro
initrd /kernel26.img

title       Windows 7
rootnoverify (hd0,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

after grub installs i shut down and attach the windows 7 drive as my secondary drive.
Windows 7 boots fine.
Arch linux does not.  I spent hours last night reading forums trying to figure out why when i load arch linux or the arch linux fallback i get error 15 from grub.
I have attempted from the grub menu to hit E and edit the kernel and initrd lines with /boot/vmlinuz26 and /boot/kernel26 which did no good (didnt think it would work as /boot is its own partition but ifgured i'd try)
i also attempted to change the     
root=/dev/disk/(insert uuid here) ro                    to root=/dev/sda (also tried /sda1 /sda2 /sda3)            all to no avail.  (if i hcange the uuids to label format ex. sda1 must i change the fstab to)?

If someone can tell me how to boot from my arch linux install cd and get to the menu.lst and fstab files i can provide them exactly.  i've been reformating everytime to try and reedit these files as well as using the E function on grub( i know theres an easier way)
I have attempted to log in as root, then go to /boot/grub as well as / then /boot/grub and edit it with nano -w menu.lst and both the /boot and / will load them and let me edit them.  but they are not the correct ones that i setup.  They are the default ones the installer provides for you.  This cant be right as i know i changed them and grub loads them correctly since windows 7 is loading.  They both list the # in front of all the windows entries.

Any help would be greatly appreciated.  Thank you for your time.

Last edited by DarknessAngel (2011-08-13 19:06:36)

Offline

#2 2011-08-09 21:04:15

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED] grub error 15

DarknessAngel wrote:
Once that was completed and the grub portion came up i left the linux portion as default. (trying to remember this off the top of my head at work)
title  Arch Linux 
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/(insert uuid here) ro 
initrd /kernel26.img

title       Windows 7 
rootnoverify (hd0,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

Are you sure the root option on grub is correct? (hd0,0) is the first partition on first hard disk. Is this not the windows one? How have you installed archlinux? at the grub boot type c for a command line and type cat (hd0,0)/<TAB> to see the list of the files, do the same for (hd0,1)/, (hd0,2)/ , etc... until you find the right files and put them correctly in menu.lst.

Offline

#3 2011-08-09 21:05:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] grub error 15

I'm not sure if I get it right, but I doubt auto setup did this

/boot 1 gig
/swap 8 gig

You mean you partitioned the drive, right?

Pick any liveCD, doesn't have to be Arch, you can use one that provides a GUI, if it helps you.

Offline

#4 2011-08-09 23:41:23

DarknessAngel
Member
Registered: 2011-08-09
Posts: 9

Re: [SOLVED] grub error 15

Thanks for the insight on howto get to command line. Going to try it in just a few ill let u know how it goes.
Once i installed windows i took it out of pc.  Moved linux drive to first disk. Installed linux then plugged windows drive in as second hard drive.
And what i meant was i told linux to use whole disk and create what partitions i needed.  All i changed was the size of the partitions.
Appreciate the info also that i can use anylive cd i have a gui based live cd icanboot into to use terminal.

Offline

#5 2011-08-10 07:55:45

DarknessAngel
Member
Registered: 2011-08-09
Posts: 9

Re: [SOLVED] grub error 15

Alright so heres what i got

fstab:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
UUID=13ce9e5d-7b35-4d15-bb5b-972d50e72ed3 /home ext4 noatime,defaults  0 2
UUID=1fff9f18-7212-40ba-9bce-33995386a7a2 /boot ext2 defaults          0 2
UUID=7cfae4d5-68b0-4472-a0f4-f94802efcc3e / ext4 noatime,defaults      0 1
UUID=eff6ac28-d6ff-4e96-a923-cbe7448e5b63 swap swap defaults           0

menu.lst

timeout   5
default   0
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   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/7cfae4d5-68b0-4472-a0f4-f94802efcc3e ro
initrd /kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/7cfae4d5-68b0-4472-a0f4-f94802efcc3e ro
initrd /kernel26-fallback.img

# (2) Windows
title Windows 7
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1


I have attempted to change the UUID from the above (which is /) to UUID of UUID=1fff9f18-7212-40ba-9bce-33995386a7a2 for /boot with the edit command in grub but it didnt do me any good still same error 15.

What am i doing wrong here?  thanks for the help so far!

Offline

#6 2011-08-10 08:03:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] grub error 15

When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and more convenient to scroll through.

Offline

#7 2011-08-10 08:10:50

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED] grub error 15

First I don't think the map command in Windows are necessary. I suggest you to completely reinstall grub. First from a live CD, you must locate your boot partition. From a live CD type grub (as root) and type find /vmlinuz26 (if you still use the old 2.6 kernel) otherwise it is find /vmlinuz-linux. This should give you your boot partition, say (hd0,2) Then, always at the grub prompt:

root (h0,2)   #Replace (hd0,2) by what you have found at the previous step
setup (hd0)

Now edit your menu.lst file, and be sure the root is the one you have found: (hd0,2) in this example. If there are still errors, you must post every step you have done and every message you have had.

Note that (hd0,2) is the 3rd partition of the first disk (grub counts from 0)

Last edited by olive (2011-08-10 08:14:04)

Offline

#8 2011-08-10 16:27:12

DarknessAngel
Member
Registered: 2011-08-09
Posts: 9

Re: [SOLVED] grub error 15

Awesome,

Thanks for the help, its much apprciated.  When i get in from work i'll test it out and post results and any error messages i recieve.  I'll be sure to use code tags.

Offline

#9 2011-08-13 15:33:33

DarknessAngel
Member
Registered: 2011-08-09
Posts: 9

Re: [SOLVED] grub error 15

well thanks olive u solved this for me.  i changed vmlinuz26 to vmlinuz-linux and it fixed my problem!  im assuming since i did a net install it grabbed new kernel and thats.why grub from cd was incorrect. thanks to all that provided input its greatly appreciated.

Offline

Board footer

Powered by FluxBB