[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)

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)

Similar Messages

  • [Solved] Grub error when booting...

    Today I decided to try out Archlinux everything worked fine until the reboot.. Grub doesn't seem to work as intended, grub just kept posting:
    GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB
    nothing but "GRUB" came up.
    My menu.lst:
    default 0
    timeout 3
    color light-blue/black light-cyan/blue
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sda3 ro vga=773
    initrd /kernel26.img
    Title Arch Linux Fallback
    root (hd0,0)
    kernel /vmlinuz root=/dev/sda3 ro vga=773
    initrd /kernel26-fallback.img
    version: 0.8beta2
    I haven't found any threads about it, if there's any i'm sorry for bringing up a new one.
    any suggests?
    Last edited by Neko-san (2007-03-12 19:16:41)

    SleepingGiant08 wrote:see this http://www.gentoo.org/doc/en/grub-error-guide.xml
    scroll down to Error 7...
    oohh.. there it is, I guess I didn't look enough thanks tho :)
    vacant wrote:
    GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB
    Maybe you should start a poll "Vote for the most useless linux error message" ;)
    True, not that good error message ^^
    This is how I did it:
    boot: arch root=/dev/sda3
    grub
    root (hd0,0)
    setup (hd0)
    quit
    reboot
    Last edited by Neko-san (2007-03-12 20:33:30)

  • [solved] Cannot complete install, grub fails to boot the new install

    I'm using the 2009.08 USB image.
    I've tried this 2 weeks ago, tried it again today, same result. (I'm on Win7 meanwhile).
    I'm installing arch, everything goes fine.
    I've tried 2 setups:
    a)
    100GB ext4 /
    12GB swap
    (no separate /boot, should work)
    b)
    100MB ext3 /boot
    100GB ext4 /
    12GB swap
    Neither a) or b) will boot.
    When the newly installed grub boots, I get a error saying:
    filesystem type unknown, partition type 0x7
    I get this for the ext3, ext4, and windows partitions.
    I get it for both a) and b) setups.
    I have doublechecked the menu.lst file. I've even created another entry setting root=/dev/sdb1 (as opposed to the default /dev/disks/by-uuid/..).
    I should mention, I have two disks, the first (sda) is currently with a Win7 installation, the 2nd (sdb) is the one I'm trying to install Arch again (and failing).
    After the reboot, I've tried booting into the livecd again and manually trying to mount /dev/sdb1 /mnt, it works.
    Why isn't my grub boothing from ext{3,4}?
    Last edited by Frantic (2009-11-05 18:35:15)

    Rede wrote:
    I was getting that error but after re-installing grub and making some changes to the menu.lst file it was fixed.
    I was able to at one stage boot into arch but it gave problems with the root. Now it just seems to freeze while trying to load grub.
    I am currently trying yet another install of grub. I have been noticing though that my menu.lst file has been rolling back or not updating when I chroot back into my install after changing it earlier.
    Try mounting your /boot partition under /mnt/boot.

  • [SOLVED] Grub error 18 - cannot boot to Windows

    Earlier today I tried to install Arch 64bit (I had 32bit earlier) with kdemod to test new KDE4.2. However, after installation I could not boot neither Arch nor Windows. Grub appeared, but every single option gave me an error. I can't remember anymore which error it was, but It doesn't matter anymore. I thought I had made a really stupid and basic mistake while installing, I just didn't know what.
    I wanted to test KDE4.2 so much so I installed Kubuntu (yeah, this topic is not related to Arch Linux, I hope that somebody can help me though, move this topic to somewhere else if it doesn't belong here ). Installation was fine, booting to Kubuntu was fine (and upgrading to KDE4.2 was fine), but booting to Windows was not. It gave me a following error:
    Error 18: Selected cylinder exceeds maximum supported by BIOS
    I googled a bit and found this: http://wiki.linuxquestions.org/wiki/GRUB#Error_18 I reinstalled Kubuntu using /dev/sdb1 as /boot and /dev/sdb2 as / (/dev/sdb3 is windows and /dev/sdb4 is my game partition, ntfs). Before this I had /dev/sdb1 as / and /dev/sdb2 as swap (now I have no swap at all, my 4GB RAM should be enough). The only difference was that at first grub gave me error 15 (I fixed it with Kubuntu LiveCD). After that - no difference.
    I need Windows for playing. That's why it's very important that I can use it. [SOLVED] In addition, I should say that /dev/sda is a separated hard drive which is encrypted with Truecrypt. (I said this because I think that Kubuntu tried to install grub on (hd0)...) When I tried to mount this hard drive with Kubuntu, it couldn't do it. I wanted to test mounting on Windows to check if it is just Kubuntu's problem. If not, I'm fucked because this hard drive contains VERY VERY VERY IMPORTANT files. [/SOLVED]
    I really need help, please. If somebody can help me, (s)he is my hero.
    Last edited by Exitium (2009-01-29 14:42:32)

    Oops, I forgot:
    menu.lst:
    (Yup, a lot of comments, Ubuntu style)
    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default 0
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu
    # Pretty colours
    #color cyan/blue white/blue
    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret
    # examples
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below
    ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=504fab5b-7bb6-4b20-af58-83677386de37
    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true
    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false
    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single
    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    ## ## End Default Options ##
    title Ubuntu 8.10, kernel 2.6.27-11-generic
    uuid 504fab5b-7bb6-4b20-af58-83677386de37
    kernel /vmlinuz-2.6.27-11-generic root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro quiet splash
    initrd /initrd.img-2.6.27-11-generic
    quiet
    title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
    uuid 504fab5b-7bb6-4b20-af58-83677386de37
    kernel /vmlinuz-2.6.27-11-generic root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro single
    initrd /initrd.img-2.6.27-11-generic
    title Ubuntu 8.10, memtest86+
    uuid 504fab5b-7bb6-4b20-af58-83677386de37
    kernel /memtest86+.bin
    quiet
    title Wintoosa
    root (hd1,2)
    savedefault
    makeactive
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1
    fdisk -l
    (Note: These results are mainly in Finnish. It could be hard to you to read it... But whatever... I'll translate these only if necessary)
    Levy /dev/sda: 640.1 Gt, 640135028736 tavua
    255 päätä, 63 sektoria/ura, 77825 sylinteriä
    Yksiköt = 16065 * 512 = 8225280 -tavuiset sylinterit
    Levyn tunniste: 0xcc5d88e2
    Laite Käynn Alku Loppu Lohkot Id Järjestelmä
    /dev/sda1 * 244091 485122 1936074870+ b8 BSDI sivutus
    Osion 1 loppu ei ole sylinterin rajalla.
    /dev/sda2 176430 394864 1754572509+ 43 Tuntematon
    Osion 2 loppu ei ole sylinterin rajalla.
    /dev/sda3 177329 413105 1893868925 29 Tuntematon
    Osion 3 loppu ei ole sylinterin rajalla.
    /dev/sda4 57435 309703 2026342066 5c Priam Edisk
    Osion 4 loppu ei ole sylinterin rajalla.
    Osiotaulumerkinnät eivät ole levyjärjestyksessä
    Levy /dev/sdb: 500.1 Gt, 500107862016 tavua
    255 päätä, 63 sektoria/ura, 60801 sylinteriä
    Yksiköt = 16065 * 512 = 8225280 -tavuiset sylinterit
    Levyn tunniste: 0x0007a52a
    Laite Käynn Alku Loppu Lohkot Id Järjestelmä
    /dev/sdb1 1 128 1028128+ 83 Linux
    /dev/sdb2 129 13185 104880352+ 83 Linux
    /dev/sdb3 13186 26239 104856255 7 HPFS/NTFS
    /dev/sdb4 26240 60801 277619265 7 HPFS/NTFS
    Last edited by Exitium (2009-01-28 21:05:33)

  • [SOLVED] - Grub Error 15 on Fresh Install

    I've created a Boot CD from the archlinux-2011.08.19-core-i686.iso and booted from the CD.
    I've used both Autoconfig and Manual to set up my 4 Gig USB Flash Drive - /dev/sdb
    BOOT - /dev/sdb1: UUID="467fc66a-6c36-48ab-a7f3-69f449407927" TYPE="ext2"   Size=1003.53 Meg
    SWAP - /dev/sdb2: UUID="f83191f6-cdf3-4647-80e2-86ac73063725" TYPE="swap"  Size=259.75 Meg
    /dev/sdb3: UUID="fc7e8565-6668-4370-bb32-33d2d89ee28e" TYPE="ext2" Size=2.02 Gig
    /dev/sdb4: UUID="00055f18-3e0a-48b8-a9c5-5593aacc2bee" TYPE="ext2"  Size=676.91 Meg
    unallocated 1.68 Meg
    Disk /dev/sdb: 4206 MB, 4206886912 bytes
    130 heads, 62 sectors/track, 1019 cylinders
    Units = cylinders of 8060 * 512 = 4126720 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00002773
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1         255     1027619   83  Linux
    /dev/sdb2             256         321      265980   82  Linux swap / Solaris
    /dev/sdb3             322         847     2119780   83  Linux
    /dev/sdb4             848        1019      693160   83  Linux
    No matter how I prepare the USB Flash Drive I get the Grub Error message as follows:
    Booting Arch Linux
    Root (HD1,0)
    Filesystem type is ext2fs, Partition Type 0x83
    Kernel /vmlinux-linux root-/dev/disk/by-uuid/xxx-xxxx-xxx-xxx ro
    ERROR 15: File not Found
    In Grub I've tried:
    root (HD
    and HD0, HD1 are the Options.  HD1 is my USB Flash Drive (sdb)
    find /boot/grub/stage1    finds nothing.............
    I'd think that stage1 would be found if Grub was installed properly.
    I've tried EXT2, EXT3, and the following sizes....Boot as 100 Meg, Root as 1800 Meg, Swap as 256 Meg, and Home = Remainder (~1800).
    I've searched this Forum and haven't found any answer that makes my USB Flash Drive Boot.  At this point I'm stuck.
    Is there something I'm overlooking? 
    Thanks.
    Larry
    Last edited by lkraemer (2012-02-21 15:17:21)

    Thanks, DSpyder I already had it as hd0,0.  I found the clue here to get my USB Booting.
    https://wiki.archlinux.org/index.php/In … _a_USB_key
    I used /dev/sdbx versus the UUID, and edited the /etc/mkinitcpio.conf, add the usb hook to the hooks array right after udev.
    Larry

  • [SOLVED] Grub Error "Read or write outside of disk hd0"

    Trying to install Arch Linux (as per client request) on an old Seagate Mirra Personal Server. I reflashed the bios to get rid of the Seagate modified ROM and put the standard, stock, VIA bios image on there. Everything boots fine, it boots windows fine. But when I install Arch Linux on the drive and try to boot, it errors out with
    Booting...
    GRUB Loading.
    Welcome to GRUB!
    error: attempt to read or write outside of disk 'hd0'.
    Entering rescue mode...
    grub rescue>
    When I ran grub-install and grub-mkconfig during installation neither reported errors or warnings. I'm open to ideas but I need to fix this sooner rather later as this is for a client. A forum thread I found in regards to Ubuntu and grub error 18 said to run:
    apt-get remove linux-server
    apt-get install linux-386
    under Ubuntu and then it would boot. I know Arch removed i386 support a few months ago but im finding it hard to believe that the error above is because of an architecture mismatch. Also I didnt think the CPU in this thing was that old. Hardware Info from the arch live cd says
    CPU Vendor: Centaur
    CPU Model: VIA Nehemiah
    1 core, 64k L2 Cache, 32bit
    the Mirra is from 2007 or so, so I expected i686 Arch to be just fine for it.
    Ideas???
    EDIT:
    Wikipedia's Article: https://en.wikipedia.org/wiki/VIA_C3
    States: "Additionally, it implemented the cmov instruction, making it a 686-class processor"
    So it shouldn't be an issue of i386 vs i686, right?
    Last edited by FathisAeril (2013-04-26 21:46:11)

    Good morning to all of You.
    Sorry for posting in a [SOLVED] thread but I find the info that I am about to add relevant and I am betting my vital organs that someone else might find it interesting too.
    I did an upgrade last night on my Thinkpad 600E. I was not upgrading it for several days (2 weeks tops) as I lost my USB wifi card and had no internet access on this particular machine. So...
    As always before upgrade I checked my rss reader for news and sure enough there was a very informative post from Allan (thanks Dude btw.) in there:
    https://www.archlinux.org/news/binaries … ervention/
    I did as I was told and upgraded in the indicated way. All was peachy till I rebooted to get new kernel to load. I was met with the mentioned error:
    error: attempt to read or write outside of disk 'hd0'.
    but the second part was slightly different.
    Error: You need to load kernel first
    SO since the error was different why am I posting here? Because even after Googling the whole error message this post was the first to come up in my search results so I am betting others will get here as well.
    Solution? After an hour or so of fighting (I tried booting up from the Arch CD and fscking partitions, reinstalling / reconfiguring grub, downgrading grub-bios and grub-common packages and many many other things) I finally rebooted to the Arch cd, chrooted (for all those that do not know what that means I would like to recommend this link as chrooting is explained in it https://wiki.archlinux.org/index.php/Be … %27_Guide) to the installation and I have reinstalled the linux (kernel) package and redid the image with the:
    mkinitcpio -p linux
    and rebooted. Turns out that did the trick. Apparently something went wrong during the kernel upgrade. Possibly due to the changes explained in Allan's article. Reinstalling kernel / recreating image did the trick for me.
    So if You are still wondering what am I doing here and why am I replying in this thread - the answer is - 99% search results from Google suggests that this error means incompatibility between bios and the hard drive AND there is nothing really out there that I found helpful in this case. I mean it could not be a bios / hdd incompatibility. This drive has been used in this machine for few years and it was running Arch since November 2012... so this just could not be the case. I am just giving a shout to all those that will get this error that there is another option too.
    Kind regards. Thanks for reading. My apologies again for sticking my nose in.
    Andrzej
    Edit: Few months later the same error - fix does not work... Trying to figure it out...
    Last edited by AndrzejL (2013-10-19 02:43:15)

  • [SOLVED] [GRUB error] "no such device" "vmlinuz-linux not found"

    SOLUTION AT POST #11
    I just completed the install process onto a new machine.  Grub starts but then returns these error messages.
    Booting 'Arch GNU/Linux, with Linux core repo kernel'
    error: no such device: ad4103fa-d940-47ca-8506-301d8071d467.
    Loading Linux core repo kernel ...
    error: file '/boot/vmlinuz-linux' not found.
    Loading initial ramdisk ...
    error: you need to load the kernel first.
    Press any key to continue...
    I installed Arch via a flashdrive (sdb), onto SATA port 1 (sda).  SDA has a fresh MBR.  Unfortunately, I have no way to post my grub config files.  What files must I modify to get GRUB to work properly?
    fstab: http://sprunge.us/SVMi
    grub.cfg: http://sprunge.us/hQCB
    Edit: Thread solved.
    Last edited by qKUqm3wtY4 (2013-01-31 03:36:43)

    SOLUTION
    by: jynnantonix
    Step 1: Start Arch via boot disc.
    Step 2: Connect to internet.
    Step 3: Mount partitions.
    # swapon dev/sdX
    # mount /dev/sdX /mnt
    # mount /dev/sdX /mnt/home
    # mount /dev/sdX /mnt/boot
    Step 4: Chroot
    # arch-chroot /mnt
    Step 5: Remake grub.conf
    # grub-mkconfig -o /boot/grub/grub.cfg
    Another Notable Tip by: jynnantonix
    If you need to post information from terminal to the internet, use the following:
    [insert command here] | curl -F 'sprunge=<-' http://sprunge.us
    example: ls -l /dev/disk/by-uuid/ | curl -F 'sprunge=<-' http://sprunge.us
    example: cat /boot/grub/grub.cfg | curl -F 'sprunge=<-' http://sprunge.us
    Last edited by qKUqm3wtY4 (2013-01-31 04:04:49)

  • [SOLVED] GRUB: Error 15: File not found

    I've used the beginners guide to install Arch on my laptop and everything went smooth untill I rebooted and ended up with GRUB error 15. I've seen some other people having trouble with this one but neither of the solutions that worked (or didn't work) for them have worked out for me. I will try to provide you with as much information as possible:
    I get to the GRUB menu and get the error after choosing 'Arch Linux' from it.
    menu.lst
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/0b899428... ro vga=773
    initrd /kernel26.img
    The only thing I've changed in menu.lst is that I've added vga=773. I left out the rest of the UUID because I'm writing it of my laptop beside me.
    fdisk -l
    Device Boot Start End Blocks ID System
    /dev/sda1 * 1 13 104422 83 Linux
    /dev/sda2 14 144 1052257+ 82 Linux swap / Solaris
    /dev/sda3 145 1101 7687102+ 83 Linux
    /dev/sda4 1102 9729 69304410 83 Linux
    blkid
    /dev/sda1: UUID="1afac34a-..." TYPE="ext2"
    /dev/sda2: TYPE="swap" UUID="abd14101-..."
    /dev/sda3: UUID="0b899428-..." TYPE="jfs"
    /dev/sda4: UUID="3b33ca9f-..." TYPE="jfs"
    I've also tried poking around in the GRUB console:
    grub> root (hd0,0)
    Filesystem type is ext2fs, partition type 0x83
    grub> setup (hd0)
    Checking if "/boot/grub/stage1" exists... no
    Checking if "/grub/stage1" exists... yes
    Checking if "/grub/stage2" exists... yes
    Checking if "/grub/e2fs_stage1_5" exists... yes
    Running "embed /grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
    Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
    Running "install /grub/stage1 (hd0) grub/stage2 p /grub/menu.lst "... succeeded
    Done.
    Any help would be much appreciated and I'll gladly provide you guys with any other information if necessary.
    EDIT: Solved through re-installing.
    Last edited by zulustar (2009-09-13 20:20:57)

    I moved the boot parition to hdd sda, but doing so I had to reinstall everything, and it seemed to fix it. I also found that one of the sata cables had been knocked out, but I don't think that was the orginal fault.
    ibendiben wrote:
    fumbles wrote:
    timeout 5
    default 1
    color light-blue/black light-cyan/blue
    #(0) Arch
    title Arch Linux
    root (hd2,0)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/blah(aka sda1) ro vga=795
    initrd /kernel26.img
    I wonder why you have "default 1". If you want to boot Archlinux (above) as default you should use "default 0", or has something changed lately?
    Also:
    root=/dev/disk/by-uuid/blah(aka sda1)
    that doesn't seem to be very valid. You need to fill it in.
    /edit
    Ofcourse you used blah(aka sda1) just here, not in the real file... sorry for the unhelpfull post
    The default was a typo, as I could not boot into anything except the Arch CD I had to type it in manually. Although thanks for the reply anyways.
    kgas wrote:
    Hello fumbles, As you have a separate /boot partition, the grub entry is not correct, I believe. if  should be /boot/vmlinuz For more help this link may also help you.
    http://www.experts-exchange.com/Operati … 72531.html
    This is simply not true. The reverse however is. I did NOT have a seperate boot parition, ie boot was just in the root partition   then yes I would have to add /boot to the kernel and initrd lines.
    Last edited by fumbles (2009-01-08 04:32:07)

  • [SOLVED] Grub Problems Can boot Arch w/ grub edits only

    I had 3 Linux OS's installed on this computer, Arch and 2 versions of Ubuntu on one hard drive.
    The MBR belonged to Ubuntu, using grub2. I decided to get rid of the older Ubuntu (sda8 and 9) and add it's HDD space to my Arch home (sda12). Used the current Gparted live to modify the partitions and all went well, but of course, the numbers changed getting rid of 2 partitions.
    No boot upon restart so I decided to get Arch's grub back to the MBR with the new partition numbering scheme.
    Using a live CD, I used the grub shell, find /boot/grub/stage1.....etc, etc. and after a bit of fumbling, grub indicated success in the shell. When I was through though, a reboot was not successful, although the current stable grub was now written to the MBR.  I edited the lines using grub edit option, and got Arch to boot, and figured out the correct partition numbers. Next I edited the menu.lst to reflect the new sda numbers.
    Now rebooting results in a long delay when grub should be on the screen, and the numbers on the Arch entries reflect the old numbers still!! I double checked thinking I forgot to save the edits to the menu.lst file, but they are correct. I can boot Arch, but have to edit the lines each time.
    The current partitions are as follows. I edited the terminal output to show details.
    [jeff@Arch2009p2 ~]$ sudo fdisk -l
    Password:
    Disk /dev/sda: 750.2 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000383e7
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 91201 732572001 5 Extended
    /dev/sda5 1 255 2048224+ 82 Linux swap / Solaris
    /dev/sda6 (ubuntu /) 256 1471 9767488+ 83 Linux
    /dev/sda7 (ubuntu /home) 1472 22321 167477593+ 83 Linux
    /dev/sda8 (arch boot) 22322 22325 32098+ 83 Linux
    /dev/sda9 (arch /) 22326 23627 10458283+ 83 Linux
    /dev/sda10 (arch /home) 23628 91201 542788123+ 83 Linux
    I have a few questions regarding a separate boot partition for Arch.
    Should the grub> root (hd0.0) command be directed to the root or boot partition.
    My handy printed emergency guide says: Set grubs root device to the partition containing the boot directory.
    OK.....Writing it out now, it seems clear, so I'll try reinstalling grub from a live CD.
    Why does grub have incorrect partition numbers even though the menu.lst is correct?
    There are only 2 OS's on this box now, and one contains grub2.
    Is current grub able to interact with grub 2 if I screwed something up on the install?
    Last edited by jeff story (2010-05-24 20:05:06)

    OK
    I managed to fix the problem of grub not reading/using the menu.lst file. Not sure WTF it was reading and where that file was located!
    The problem seems to have been the most insignificant detail.
    When using the grub terminal, I did not execute the quit command when I was through. I just closed the terminal and rebooted.
    After repeating the following code via live CD a few times:
    $ sudo grub
    grub> find /grub/stage1
    grub> root (hd0,7)
    grub> setup (hd0)
    Grub still didn't read the current menu.lst.
    This morning I got things to work correctly and grub to read the current menu.lst by adding a quit command and returning to the linux shell prior to rebooting.
    I used the following commands:
    $ sudo grub
    grub> find /grub/stage1
    grub> root (hd0,7)
    grub> setup (hd0)
    grub> quit

  • [SOLVED] Grub Error 17 and other not so fun stuff

    Booted today and greeted by grub error 17.
    I booted from Arch Live CD
    fdisk -l
    looks ok
    fdisk /dev/sdb
    x,f,w   nothing done, proper order
    ok, let's chroot my install and install grub
    mount /dev/sdb1 /mnt
    unknown filesystem type, doh
    mount -t ext4 /dev/sdb1 /mnt
    nope
    mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
    missing codepage or helper program, or other error
    (aren't you trying to mount an extended partition,
    instead of some logical partition inside?)
    In some cases useful info is found in syslog - try
    dmesg | tail
    dmesg | tail
    attempt to access beyond end of device
    sdb1: rw=0, want=4, limit=2
    EXT4-fs: unable to read superblock
    attempt to access beyond end of device
    sdb1: rw=0, want=4, limit=2
    EXT4-fs: unable to read superblock
    time to fsck ?
    Last edited by bloodniece (2009-10-04 15:11:12)

    bloodniece wrote:
    I fixed it thanks to testdisk.
    When I initially set this install of Arch up I used a whole disk in 2 partitions: / and swap. A grub error 17 led me to believe the partition table was fuxored.  Fdisk did not fix the partition table but it was reporting the root partition as extended, which would not boot and is NOT how I set the system up.  If had been up for about 10 months and working fine.  I was able to use testdisk in a livecd session to both backup my home and etc directories and fix the partition table.
    I'm marking this issue fixed.  But I'm still confused as to what the hell happened.  Unclean shutdown?
    I'm getting contantly ERROR 17...
    I dunno how to fix, I simply reboot some times and it desapears..
    If someone could give me a clue..
    Thx guyz!

  • [SOLVED] Grub won't boot into Arch...

    So, this all started when I got this wacky idea of trying Debian on a separate drive.
    Installs great, boots up and get a blank screen with blinky cursor..not in the mood to mess with it since I can't find
    a reasonable answer for what is wrong with it sooo I boot back into Arch but now I get Error device not found with a "Grub Rescue>" prompt.
    Not sure what to do now. I installed grub to the drive I was installing Debian on but it seemed to screw with my precious Arch too
    I looked around the forums for help but couldn't find anything.
    Also, it goes from post directly to the Grub Rescue prompt
    Last edited by PumpkinJack (2011-08-26 07:59:37)

    edit:
    ok here it is:
    # 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
    # https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution
    # general configuration:
    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 /vmlinuz-linux root=/dev/disk/by-uuid/6ab6f3ca-2c64-4264-97aa-10819e4561ed ro
    initrd /initramfs-linux.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,0)
    kernel /vmlinuz-linux root=/dev/disk/by-uuid/6ab6f3ca-2c64-4264-97aa-10819e4561ed ro
    initrd /initramfs-linux-fallback.img
    # (2) Windows
    #title Windows
    #rootnoverify (hd0,0)
    #makeactive
    #chainloader +1
    Last edited by PumpkinJack (2011-08-26 02:42:08)

  • [Solved] grub-mkconfig not picking up new kernel

    Hi,
    I compiled the linux-lts kernel from source today, woohoo! First time compiling from source.  Fun!
    I followed the Kernels/Compilation/Traditional - Archwiki.  No problems at all in the Build Configuration and Compilation & Installation steps.  The issue is that when I try to add the new kernel to grub.cfg
    # grub-mkconfig -o /boot/grub.d/grub.cfg
    it does not pick up my new kernel.  Here's the contents of /boot:
    % ll /boot ~
    total 27444
    drwxr-xr-x 3 root root 4096 Aug 31 17:13 .
    drwxr-xr-x 18 root root 4096 Jul 18 16:09 ..
    lrwxrwxrwx 1 root root 26 Aug 31 17:13 System.map -> /boot/System.map-linux-lts
    -rw-r--r-- 1 root root 2455967 Aug 31 17:13 System.map-linux-lts
    drwxr-xr-x 2 root root 4096 Aug 31 17:26 grub
    -rw-r--r-- 1 root root 11152827 Aug 30 18:10 initramfs-linux-fallback.img
    -rw-r--r-- 1 root root 3332339 Aug 31 17:10 initramfs-linux-lts.img
    -rw-r--r-- 1 root root 3364808 Aug 15 11:37 initramfs-linux.img
    -rw-r--r-- 1 root root 3792336 Aug 31 17:04 vmlinux-linux-lts
    -rw-r--r-- 1 root root 3982880 Aug 13 22:43 vmlinuz-linux
    Here's the output of grub-mkconfig:
    # grub-mkconfig -o /boot/grub/grub.cfg ~
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-linux
    Found initrd image: /boot/initramfs-linux.img
    Found fallback initramfs image: /boot/initramfs-linux-fallback.img
    done
    I've tried a bit of googling, checking journalctl, but haven't come up with anything, I've also retraced my steps in the wiki process about 3-4 times.  I'm hoping someones bumped into this before, maybe I'm missing something obvious?
    Thanks for your time!
    Last edited by oktorok (2014-09-01 07:19:04)

    lullllzlzl.  Oh man, I'm not even going to deprecate myself here, or make excuses. To be perfectly honest, I'm glad it was a typo and not a real issue.  I can't thank you enough for pointing this out.  Gladly marked solved.

  • Grub error - but booting just fine

    I recently got an SSD.  I moved my Arch setup to it, turned on "discard" in fstab, wiped my grub config (I might've even wiped my entire /boot folder but I don't remember - I've been dealing with this problem for about a month), reinstalled grub from pacman, and used os-prober to assist in re-building grub.cfg.
    For some strange reason though, just before grub loads I seem to get 3 errors all saying the same thing - "File not found".  It doesn't tell me anything other than that.  When Arch is then selected from the boot menu, it re-states those 3 errors and says "Press any key to continue".  Pressing any key doesn't seem to do anything, it just sits there for about 5 seconds, and then proceeds to boot normally as though nothing happened.
    I would love to give more in-depth details as to what's wrong, but this is all I can provide.  Currently I am not using grub to boot anything else - just Arch.

    I get these three alerts on another box which dont run arch, id hazard a guess its grub not erroring but merely alerting you, IDK what the 3 missing files are, but i do know its not errors. I think its grub looking for certain files  (maybe hardware specific files) and if they arent found grub continues to boot.  This wont cause you any ill effects.

  • [Solved] Grub errors 18 and 22 when booting from SSD

    Hello community,
    recently I purchased an SSD drive and am now having trouble doing an Arch install on it. Before that a 2TB HDD was in use. After building in the SSD I partitioned it (msdos partition table) creating partitions for swap, / and /home. Then I copied the files from the old /home partition on the freshly created one and installed Arch on the new / partition. Here's the partition setup:
    $ LANG=C sudo fdisk -l
    Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x0003a234
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 3907028991 1953513472 5 Extended
    /dev/sda5 16065 4192964 2088450 82 Linux swap / Solaris
    /dev/sda6 4196352 65720319 30761984 83 Linux # old /
    /dev/sda7 65722368 577720319 255998976 83 Linux # old /home
    /dev/sda8 577722368 3907028991 1664653312 83 Linux
    Disk /dev/sdb: 128.0 GB, 128035676160 bytes
    255 heads, 63 sectors/track, 15566 cylinders, total 250069680 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: 0x000a9841
    Device Boot Start End Blocks Id System
    /dev/sdb1 51863552 241582079 94859264 83 Linux # new /home
    /dev/sdb2 241582080 250068991 4243456 82 Linux swap / Solaris
    /dev/sdb3 2048 51863551 25930752 83 Linux # new /
    Partition table entries are not in disk order
    The problem is: booting from the SSD fails as follows: On the first try to select some Grub entry I get an error 22 "No such partition.". On any further try I get error 18 "Selected cylinder exceeds maximum supported by bios".
    What works is  to boot up the new system from the Grub residing on the HDD. So the problem is just the new Grub install in the SSD's MBR. Also it's not a thing of Grub's configuration, since copying the working menu.lst from the HDD install and reinstalling grub via grub-install /dev/sdb gives the correct Grub entries but selecting them results in the same errors.
    So currently I'm booting from the HDD and selecting the boot entry for the freshly installed SSD system there, which works fine. But of course I'd like the SSD to be able to boot without "help" on the part of the HDD.
    I tried to activate AHCI in the Bios but it didn't make any difference. The SSD is a Crucial M4 128GB.
    Thanks for any hints,
    PhotonX
    Last edited by PhotonX (2012-07-26 06:04:53)

    I created a /boot partition now:
    $ LANG=C sudo fdisk -l
    Disk /dev/sdb: 128.0 GB, 128035676160 bytes
    255 heads, 63 sectors/track, 15566 cylinders, total 250069680 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: 0x000a9841
    Device Boot Start End Blocks Id System
    /dev/sdb1 51863552 241582079 94859264 83 Linux # /home
    /dev/sdb2 241582080 249831423 4124672 82 Linux swap / Solaris
    /dev/sdb3 2048 51863551 25930752 83 Linux # /
    /dev/sdb4 * 249831424 250068991 118784 83 Linux # /boot
    Partition table entries are not in disk order
    Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x0003a234
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 3907028991 1953513472 5 Extended
    /dev/sda5 16065 4192964 2088450 82 Linux swap / Solaris
    /dev/sda6 4196352 65720319 30761984 83 Linux
    /dev/sda7 65722368 577720319 255998976 83 Linux
    /dev/sda8 577722368 3907028991 1664653312 83 Linux
    Then installed Grub on this partition: "grub-install /dev/sdb4". Then placed the SSD on the first position in the Bios, booted but got the same errors in Grub. So it doesn't matter where exactly Grub is installed, if it's somewhere on the SSD, it fails...
    edit: Concerning using UUIDs: I couldn't find any howto regarding Grub (legacy) configuration with UUID's. Could you point me to some example config?
    edit2: I now put the SSD on the first place in the boot list and started PartedMagic. But fdisk still recognizes the SSD as sdb and the HDD as sda. I think, the sdX identifier can be changed only by plugging the SSD in the first SATA port and the HDD in the second (while now it is the other way around).
    edit3: I tried to install Grub from the HDD installation on the SSD (executed "grub-install /dev/sdb4" from the HDD system) and found out that, though I created a /boot partition on the SSD, the Grub files installed directly on /dev/sdb are used. So I tried to install Grub from the HDD system onto /dev/sdb (executed "grub-install /dev/sdb" from the HDD system) and got error 22 even before Grub's boot list was shown. But maybe it's really a bad idea to install Grub on another drive than the system it belongs to is located.
    Last edited by PhotonX (2012-05-18 21:54:56)

  • [Solved] Grub Error 13, ext4 and 2.6.28.1

    Hi guys!!!
    I have formatted my laptop disk in new ext4 format, following wiki instructions:
    http://wiki.archlinux.org/index.php/Cre … _Partition
    and all wok fine.
    But after today update (pacman -Syu), my arch don't boot.
    Grub messages (lastest grub version, normal grub no grub2):
    Filesystem type is ext2fs, partition type 0x83
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/.............
    Error 13: invalid or unsupported executable format
    No Normal image nor Fallback image boot.
    Any suggestion?
    P.D. Sorry for my englis xD
    Check wiki solution:
    http://wiki.archlinux.org/index.php/Cre … B_Error_13
    Last edited by superchango (2009-01-23 02:19:19)

    from grub's web site:
    13 : Invalid or unsupported executable format
        This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).
    I think your vmlinuz26 file is wrong in some ways, or grub can't read ext4 correctly (I have done a fresh install with ext4, but I have made a separate partition for /boot in ext2)
    superchango wrote:following wiki instructions:
    http://wiki.archlinux.org/index.php/Cre … _Partition
    did you create from scratch or did you convert from ext3 ?

Maybe you are looking for