My Beloved Arch Died this Morning
SOLVED. SEE BOTTOM.
Hey fellow Arch lovers. Thanks for all the help the first time around.
I've been blissfully using Arch for over a month now. I'm dual-booting on a Macbook Pro. However this morning, upon waking as usual, booting up my Arch install yielded the dreaded:
GRUB _
...much to my horror. Most of the battle with the Arch install the first time around was from GRUB, and not arch itself. Eventually through some perfect sequence of events the GRUB menu would load, and from there I had my Arch. As of this morning it seems GRUB finally had enough of me.
I've been across all edges of the internet to try and find a solution. No amount of reinstalling GRUB has worked. I suspected my device.map file was funny, but upon another grub-install it restored to the same thing (which does not show my partitions. I couldn't determine what a device.map file is "supposed" to look like.)
I love Arch way too much to give it up, and I've done too much setting up, etc, in this install to wipe it and start over from scratch. What could the problem be? Could an update have messed something up? Is my MBR shot? I just have no idea.
Please and thank you for any help you can offer.
EDIT: Can someone who dual-boots satisfy my curiosity and post their device.map?
EDIT 2: On a Macbook Pro booting with REFIT. I then choose Linux, and get the GRUB _
EDIT 3: In my REFIT menu I've always had THREE choices:
-
Boot MAC OS X from Macintosh HD
-
Boot Linux from HD
-
Boot Linux from Partition 3
The second option is the one I always used with Arch. I think it's a leftover (somehow) of my Mint install (which I no longer have), but it always worked so I used it. NOW the second option stops at the Tux logo about half the time, the other half making it to the GRUB _ state. The third option which I had never before tried makes it to GRUB _ every time. What's going on here? Partition 3 is incidentally where Arch, and GRUB, are installed.
EDIT 4: I tried booting with both a USB plugged in AND the Arch live CD in. When I selected the third boot option (boot from partition 3), the Live CD loaded which it would not do normally. Is my internal device map / partition table f-ed?
SOLVED FINALLY. Turned out the MBR was fucked. Had to poke around on my OSX side. Using:
sudo fdisk -u /dev/disk0
cleared up the MBR. Reinstalling GRUB one last time fixed everything up. Thanks for all your patience!
About this post
- Posted
- Archived
- Score
- 23 · 100% up
- Kind
- Text
- ID
- mbjll
35 comments
Not sure how to help...
Can you boot from the arch install media and see if you can mount your boot partition? Everything grub touches shouldn't change unless something went very wrong. e.g. corrupt partition table, major filesystem error, disc controller failures, or even disc detection order.
I suppose the first question to ask is where is grub installed that makes it a problem to re-install?
I can boot from the install media. The arch install itself is intact and I can mount it and access as my files.
Grub itself is installed in /boot/grub as per normal, and reinstalling isn't a problem. It's just that reinstalling doesn't fix anything.
What happens now if you try to boot?
Don't use GRUB. Use syslinux.
Why the downvotes? Syslinux is a great alternative. I've been using it for some time now and I think it is simpler than grub. Why not give it a try?
Syslinux does not have EFI support, yet. Therefore syslinux will not work with a macbook pro.
Besides being simpler, it doesn't just stop working for no apparent reason, like GRUB does.
Syslinux may be simpler but it's also much worse feature-wise. It's really designed with floppies, cds, etc in mind.
If you can boot OSX, then grub must be doing something right.
Does it give any error messages or anything when it drops you to a prompt? Did you change anything recently, like update the kernel or something?
I just booted up an old comp in the corner with windows xp and arch and some other rubbish. It doesn't seem to have a device.map file!
My laptop has only arch, and it has device.map, (fd0) /dev/fd0 (hd0) /dev/sda
If OSX and arch are on the same drive, would this be an issue? Not to mention stage 1.5, and stage 2, though I could be wrong there.
Maybe post up your menu.lst? Think this should be the latest version: $grub --version grub (GNU GRUB 0.97)
That is the grub version I have, and that's what my device map looks like.
The problem is that it's not even dropping to the prompt. GRUB is just stopping without telling me anything.
At what point does it stop?
You can't type or anything, it just freezes as soon as you pick Arch?
But it works fine for OSX?
I would say look at /boot/grub/menu.lst, as that's what tells it what to do when you pick an option from the menu.
Here's what mine looks like on the PC with dualboot.
Here's it on my laptop with just arch.
Just also noticed there's also a pacnew file there, which is like this.
Deleted before we saved it.
I am not sure about your specific problem but the Super Grub Disk is a tool used to fix grub issues.
This is a long shot but is your grub.cfg intact? Assuming you are on grub2.
Nah, not on GRUB2. The setup looks really convoluted.
Obvious question, but did you sync your partition tables with Refit?
Yeah. I'm going to try some gparted magic and see if forcing a re-sync by Refit will fix the problem.
How did you clear up the MBR?
Using the command I put at the bottom of the OP in my OSX terminal. I was given warnings about the possibility of the moon crashing into the earth or plagues laying waste to Europe, but I went through with it anyway and everything was fine.
I think my old Mint install put its GRUB right into the MBR, which is why my refit menu always gave three choices. After a month I guess that setup just gave out. Using that command to fix the MBR got rid of that extra icon, so now I only have "Boot OSX from Macintosh HD" and "Boot Linux from Parition 3". Everything works as expected. I should probably make a blog post about my adventures for anyone else this may happen to...
In REFIT find the partitioning tool, should be second icon on the bottom row, use it and let it sync your GPT to MBR. That might fix the issue. If it doesn't boot using the CD, chroot into your Arch install, and do the grub setup dance on whatever partition you use for /boot, not /dev/sda or the like.
Edit: This is what I get for not looking at the date when this was posted.
Haha I appreciate the effort, at least. Thank you. And no, just trying to sync from within REFIT wasn't doing anything. It's all long fixed by now though. Again, thank you.
Deleted before we saved it.
Have you tried LILO? Never tried it myself but I've heard that it may work when grub doesn't. Scrolling down through the wiki-page I encounter "elilo" which apparently should work on mac-computers.
Step 1: reinstall OS X
Step 2: Do not try and duel boot a with linux.
Why do people insist on putting linux on apple products. Oh yea they originally wanted a laptop with outstanding battery life and a great OS. There are great products like virtualbox maybe try that. Second save your money and purchase a cheap pc for a linux box.
Arch ggggeeeeezzz us
How much time have you wasted getting your hardware to work with linux lol...fool
Not that much, pretty much everything works out of the box. It was just a matter of getting GRUB going, which had more to do with my previous Linux install than it did with any Apple hardware.