[PARTIALLY SOLVED] Arch on MacBook4: can't install GRUB
I've been running Arch on my MacBook4 (4 years old now) for quite some time in dualboot mode and have already set up GRUB sucessfully several times. I therefore feel kinda bad that I have to open a new thread this time, but after wasting the whole morning on Google, I don't see another solution.
What has happened is that I had to resize my Linux partitions because there was no space left on my system partition. I have the following partitions:
sda1 - fat32 EFI partition
sda2 - hfs+ Mac partition
sda3 - ext4 Arch system partition
sda4 - ext4 Arch home partition
As mentioned, when I first organized my Arch partitions this way, I could successfully set up GRUB, but it was GRUB1 which I had to set up via grub shell. Now, as it looks to me, GRUB1 is not available anymore but only GRUB2 which doesn't use the grub shell anymore. I've not been able to install GRUB2 the last time (that's why I ended up using GRUB1) and I'm still not able to install it this time!
When I start the MacBook and choose the Linux partition in rEFIt, I get to a black screen displaying GRUB_ and doing nothing more (because I don't have GRUB set up). That's how far I am right now.
Now can anyone help me with setting up GRUB(2)? Thanks in advance for any help!
Last edited by cryptkeeper (2012-09-05 06:13:14)
I've succeeded in working around the problem of installing GRUB2 after I found out that grub-legary is nothing else but GRUB1. So all I had to do to get back a running system was:
- removing the GRUB2 installation
- installing grub-legacy
- copying my old menu.lst to /boot/grub/
- grub shell: root (hd0,2); setup (hd0); quit
Now it works like a charm again.
Still I only consider this thread half solved because I still don't know how to install GRUB2 on my system. It's not of vital interest to me anymore (I don't care too much why, that is, due to which boot loader, my system boots, as long as it boots), but a solution would nonetheless be nice since this thread is opened anyway.
So: How can GRUB2 be installed on a MacBook dualboot system with rEFIt such as mine?
Similar Messages
-
[SOLVED] Arch won't boot after install - "GRUB" on black screen
I've installed arch on my 1000H from usb stick using zeneee kernel as described in wiki. Right after install everything was fine - wireless and ethernet were working normally, so i've done reboot.
Now it shows me black screen with "GRUB" text (sic! not "grub>", no error messages) on it. keyboard is not working.
I've tried reinstalling completely again - with full repartitioning of HDD and this time without installing eee kernel - just stock kernel26. Everithing went ok, i've checked grub settings and partitions - ok, but after reboot - again "GRUB" and non-working keyboard.
I'm completely out of ideas.
EDIT: turns out i misplaced GRUB or something. reinstalled placing GRUB on /dev/sda. works fine now.
Last edited by glas01 (2008-11-29 12:46:15)Have you moved everything from /var to /new_var (i named it for learning purpose)? You shoud copy content from /var but not on the fly but booting from arch iso cd, and than you shoud mount your / into arch-chroot environement, mount all of your mount points and than copy content from default /var to new /var. The copying should be done with this
cp -rax
and you can add -v switch to verbose output. I have my own /var moved the same way.
The simples way is:
-boot the arch iso cd
-mount all of your mount point (i created here in this step /new_var to move /var to a new place, and this /new_var i put in /etc/fstab as /var later)
-copy /var to /new_var with -rax or -vrax (recursive, archive, this filesystem or verbose, recursive, archive, this filesystem switches)
-umount all of it
-reboot.
Last edited by firekage (2015-05-02 07:49:20) -
[RAID Install] Can't install Grub - SOLVED
Me & a friend are building a local serveur on Arch (32-bit) for ~10 PCs in our association (half of them allready having AL Wink )
This server will basically have 2 main fonctions :
- NFS/YP server for a few PCs we've built under Arch for young people here
- backing up a few PCs we're using for the association.
Machine is HP with a PIV 1.7GHz, 512Mb SDRAM for now, & a single HDD IDE controller.
We got two UDMA 160GB HDD (Hitachi ) as we planned right from the start to improve on data security (& speed when possible).
I've set up partition as following :
- hda1 & hdb1, 100 Mb both, raid-1 for /boot
- hda2 & hdb2, 2 Gb both, raid-1 for swap
- hda3 & hdb3, 10 Gb both, raid-1 for /
- hda4 & hdb4, 150 Gb both, raid-1 + LVM2
Now I'm setting up Arch 0.7.2-20061104 (latest ISO from tpowa Smile ) , & everything went allright up to the point I wanna install the bootloader (might be the 10th time I set up AL this year)
To do so I'm following "Install Grub on the Primary Hard Drive (and save the RAID config)" (wich I may edit if I succeed this raid setup) with a look on "Reinstalling GRUB" both on the wiki.
1st I'm not 100% sure about mkinitcpio.conf config when it comes to raid; I've added 'raid' to HOOKS + a line just like on "Configuring mkinitpcio" :
Code:
md=2,/dev/hda3,/dev/hdb3
Edited grub/menu.lst, installed the kernel... but I want to chroot in order to install Grub I can't mount /dev :
Code:
# mount -o bind /dev /mnt/dev
keeps complaining about wrong fs type.
I chrooted anyway and launched grub :
grub> root (hd0,<TAB>
Error 21: Selected disk does not exist
I'm purely stuck here with no idea about what went wrong
If someone has spare time & knowledge, it'd be very nice indeed (our schedule says we begin to play with the network services 2morrow
EDIT : corrected the mkinitpcio.conf "md=2" line.About install gub, I got it thanks to warnaud :
/dev/mdN was unexistent until I launched
# makedevs
Thereafter grub found the disk :
# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
"save the RAID config" was allready done at this point.
Guess I misconfigured something in mkinitcpio.conf / menu.lst, 'cause when I boot it says :
:: Running Hook [raid]
:: Running Hook [filesystems]
:: Loading root filesystem module...-e
Attempting to create root device '/dev/md2'
ERROR: Failed to parse bloc device name for '/dev/md2'
unknown
ERROR: root fs cannot be detected.
Kernel panic...
mkinitcpio misconfiguration maybe.
From wiki :
First add the raid hook to the HOOKS list in /etc/mkinitcpio.conf
OK :
HOOKS="base udev autodetect ide raid filesystems"
Add some Kernel Parameters is less clear, or it maybe after reading "Installing_with_Software_RAID_or_LVM" that says to list the devices in the ROOT array ?
Kernel Parameters: Specify all your md arrays with md= parameter: (only adding the raid array you're booting from is enough)
add the following to the kernel line in grub/menu.lst:
Example: md=0,/dev/sda3,/dev/sda4 md=1,/dev/hda1,/dev/hdb1
working example: kernel /vmlinuz26beyond root=/dev/md0 ro md=0,/dev/sda1,/dev/sdb1
So should one list its / or its /boot array ? -
hi..
i'm installing arch linux.. but when i want to install grub appears this message
Error 22: No such partition
i've try to use grub :
find /boot/grub/stage1
(hd0,5)
root (hd0,5)
setup (hd0)
but after appears:
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embeb /boot/grub/e2fs_stage1_5 (hd0)" ... 16 sectors are embedded. succeeded
Running "install /boot/grub/stage1 (hd0) (hdo)1+16 p (hd0,5)/boot/grub/stage2 /boot/grub/menu.lst" ... failed
Error 22: No such partition
Ok.. this is it... someone can help me with this?ok.. i had install again and appears that the problem was that the disk has some free space between partition..
i have no idea if this is the motive for the impossibility tha i had to install grub...
thanks any way...
i i'm sorry for my english... is very bad -
Can't install grub for some unknown reason!
I just tried to install Arch using a bootstrap on a desktop with two HDs. I put Arch on the second part of the second HD. That all went fine till it came to installing grub! What an infuriating nightmare. I've wasted about 2 1/2 hours on it and I am so angry I'm positively raging.
I still have no idea what went wrong. Chrooting into the install was out because the devs aren't mounted so I used a livecd to boot into the part - running grub-install /dev/hda or /dev/hdb resulted in the same errors about "the second sector of stage 2 is unknown"
I only actually discovered there was an error cos I ran sh -x grub-install - without that this little gem:
grep 'Error [0-9]*: ' /temp/grub-install.img.865
It would have totally passed me by and I never would have know grub was stuck in an infinite loop!
So, any suggestions please?
Basically the set up is:
/dev/hda1 - WinXp
/dev/hdb1 - swp
/dev/hdb2 - /
That's it, nothing complexi havent had to do this but what if you booted from install cd as if to install but go directly to
edit config files type in the info you nedd then run install grub ? just a far fetched thought
or boot from install cd to the root ie vmlinuz root=/dev/discs/discX/partY then mount /boot if its on seperate partition and any other
partitions you may have made /tmp /usr /sbin whatever if you installed lilo run it then boot up machine then run grub-install ,but before you run lilo though check lilo.conf that it installs to /dev/hdb
when booting up hopefully you can hit F8 or in my case hit esc then hit Ctrl to pull up boot menu
to tell machine where to boot to tell it whatever is /dev/hdb if you want to leave whatever boot loader is on /dev/hda alone
chrooting can be a pain /dev/null no permissions or cant chroot no /bin/bash or whatever
chroot is a neat tool but can be a pain at times
also check /boot/grub/device.map heres mine
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/sda
(hd2) /dev/sdb
(hd3) /dev/sdc
you may be missing something there i have had this problem of drives missing in this file -
[SOLVED]Arch is sluggish after fresh install :s
Zero-fill format: check!
XFS partitions for / and /home and /home/mariachi/stuff: check!
ext2 partitions for /boot and /var: check!
installation: check!
XFCE: check!
be happy: no check.
I don't understand why my computer almost freezes to death (as in "it's so slow that I though it was dead" kind of death) when I copy a file from one disk to another. I simply cannot do anything else when there's something being actively written to the disk.
This is really troublesome, as an action that used to take a few seconds, now takes minutes and won't let me use any other apps. As soon as the writing is over, everything is fast and joyful again.
The cpu is not being used 100%, neither memory is being "eaten".
Any idea as to what may be causing this? Disk problems?
Thanks fellas
SOLVED:it was a problem with my disk, which I was able to solve
Last edited by el mariachi (2008-08-12 20:52:17)el mariachi wrote:
Zero-fill format: check!
XFS partitions for / and /home and /home/mariachi/stuff: check!
ext2 partitions for /boot and /var: check!
installation: check!
XFCE: check!
be happy: no check.
I don't understand why my computer almost freezes to death (as in "it's so slow that I though it was dead" kind of death) when I copy a file from one disk to another. I simply cannot do anything else when there's something being actively written to the disk.
This is really troublesome, as an action that used to take a few seconds, now takes minutes and won't let me use any other apps. As soon as the writing is over, everything is fast and joyful again.
The cpu is not being used 100%, neither memory is being "eaten".
Any idea as to what may be causing this? Disk problems?
Thanks fellas
I see this also with heavy disk usage and I'm using ext3 on my both of my drives.
Somewhere here in the forums there was talk about some kernel config that can help fix this. I believe that it was being looked at for the third release of the 2.6.26 kernel. I don't remember where I read it and a quick search turned up nothing. If anyone else remembers this conversation, please jump in. -
Can't install grub on Hardware RAID
I am having trouble finding the Grub root device for /dev/cciss/c0d0, any help would be appreciated
Gcool wrote:Don't necrobump old threads.
I don't have a new problem. I don't need a new solution. I simply thought that a more detailed explanation in this thread would not only help me, but would make this thread more useful for the next person. Apparently, the installation media has a problem with my RAID controller. In my mind, that means that anyone who tries to install Arch on an HP server is going to run into this problem. There are a lot of HP servers in the world. When I searched for my server in the forum, I only got 3 hits. That means anyone who has this problem will probably read this thread (1,278 views so far). I was trying to help the next person. One definitive thread that clearly lays out a solution in the simplest possible terms seems much more likely to be helpful then a whole bunch of threads talking about the same thing.
But ok, I'll start another. Sorry.
Last edited by Robert Finley (2012-06-04 12:12:01) -
Hello. I have a problem with grub...
# grub-install /dev/hda
The file /boot/grub/stage1 not read correctly.Arch Wiki: Reinstalling Grub Errors
-
[SOLVED] Dual boot with ubuntu w/o installing GRUB? (YES)
Hi all -
This is my first shot at arch, tho I've installed a few other linux distros.
So far I really appreciate the excellent documentation, especially compared to other linuxes!
But I can't find a good answer to this question:
I already have ubuntu installed and would like to dual-boot with arch. (I also have Win7 but boot it from a separate disk selected via BIOS, and usually leave this disk disconnected anyway, so it's not an issue; grub doesn't know it exists).
Q: Before installing, can I make a new LOGICAL ext4 partition (say /dev/sda7),
- then install arch on that **w/o installing grub** and **without messing with the MBR**,
- then edit ubuntu's existing menu.lst to add arch to the boot options?
Current $ fdisk -l
/dev/sda1 ext4 primary/boot (/ for ubuntu)
/dev/sda2 extended
--/dev/sda6 linux-swap
--/dev/sda5 NTFS (data - mp3s, etc)
unallocated 480GB --> Create new ext4 partition /dev/sda7, (logical or primary? Prefer logical)
Current menu.lst entry that I normally boot:
title Ubuntu 12.04 LTS, kernel 3.2.0-24-generic REGULAR
uuid UUIDforSDA1 (file has actual UUID number...)
kernel /boot/vmlinuz-3.2.0-24-generic root=UUID=UUIDforSDA1 ro
initrd /boot/initrd.img-3.2.0-24-generic
and add something like this to menu.lst:
title Arch Linux
uuid UUIDforSDA7
kernel /boot/vmlinuz-linux root=/dev/sda7/ARCH ro (??? - from example in arch docs)
initrd /boot/initramfs-linux.img
or
kernel /boot/vmlinuz-linux root=UUID=UUIDforSDA7 ro (??? - like the ubuntu entry)
I'd really like to NOT mess up booting ubuntu! (Another option might be install arch to a separate disk with the ubuntu disk disconnected, then copy the whole install over via a USB adapter...I've done worse!)
TIA for any help!
Edit: so I guess there's three questions:
1 - Can I install arch w/o installing grub & MBR messing-wth?
2 - What's the correct syntax for menu.lst to access and boot arch?
3 - Will this work?
Last edited by Flemur (2012-05-25 15:24:18)Well, it worked and booted up first time - no grub install.
The main hassle was merely creating a new ext4 partitions because "Partition Wizard" boot CD screwed up and I kept getting "Unable to update kernel until reboot" messages until I deleted and rebuilt all the partitions in the extended partition with puppy linux & gparted instead of Partition Wizard.
In case others stumble upon this trhread, here's some info:
The entry in the ubuntu (original) menu.lst was this:
title Arch Linux
uuid af7...etc...9f3c
kernel /boot/vmlinuz-linux root=UUID=af7...etc.f3c ro
initrd /boot/initramfs-linux.img
I'm even posting this from arch/fluxbox/Firefox, although getting X set up with nvidia (PITA!) apparently required using a different pacman source:
File "mirrorlist" now points to
Server = http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch
which wasn't in the original file.
Then
$ pacman -Su --> "/etc/mtab exists" --> delete it and something else broke,
so
$ pacman -Su --force --> worked fine (against official advice)
Also: needed to install nvidia-utils and xorg-xinit
Thanks again! -
Craptastic, cannot install Grub, [Updated]
I can't remember the voodoo I had to cast last time on this machine, but there is something weird about it. The other machine I did recently is very straightforward. It just works. This one I can't install grub on, and I'm thinking possibly it's partition erroring or it expects some type of special thing to be done in a special order. I just can't remember, and I've tried searching, and as always, liberally reading the documention.
Here's the thing: Arch in this case is going on a SCSI hard disk, alongside an IDE hard-drive with Windows XP on it, which has four partitions. I tried both manually and automatically partitioning the SCSI disk. It partitions fine, I go down the list like a good little boy performing normal operations, but then when Grub install time comes, it just craps out, with "Cannot install grub..blah...blah...check /dev/ttsy5" and because I have the partitions if I make any changes to them, the partitioning program gets posessed and throws partitions all over the drive, and then I have to zero-fill it, which is a 30-min wait per pop.
It actually took me probably weeks to figure this out last time (a year after my first attempt with arch, I got lucky and it worked). If nothing else, I would be grateful if somebody could advise me in great detail of an alternative method to install arch, since it appears my stupidity and my system has trouble with the install disk.
Thanks!!!!Seriously need some help. First off, chroot from another Live CD doesn't work either. Knoppix is all I tried, but I personally don't want to sit around burning disks until I find one that works. So, I need a critique of what specifically I'm doing.
I've established thus far, that Noodle install works. It's also somewhat of a pain to install such old software with lit candles, a bag of wiccan-enscribed bleached chicken bones, and a satanic pentagram just to play standards crossover with. And I mean that in fun. But I don't really want to do it, because it's both hard at first, but the "easy" way out.
Where I want my drives=
SCSI: Arch Linux. Specifically proper udev root=sda1, swap=sda5, that's all there is to it. I don't know why swap wants to be sda5, but I am unable to change that.
IDE: Windows. It has four partitions C:Windows Root, F:Swap, G:Storage, E:Storage
What I have established as well, though is previously not divulged:
From within Wombat's install shell
$mount /dev/discs/disc1/part1 /mnt
$mount -t devfs none /mnt/dev
$mount -t proc none /mnt/proc
$chroot /mnt /bin/bash
$install-grub /dev/discs/disc0/disc /dev/discs/disc1/part1
$exit
^^^Seems to install, but I don't know if it will boot becuase I had Noodle's kernel installed at the time. So I think that's why it wouldn't boot.
From within both Noodle and Knoppix shells
$mount /dev/sda1 /mnt
$mount -o bind /dev /mnt/dev
$mount -t proc none /mnt/proc
$mount -t sysfs none /mnt/sys
$chroot /mnt /bin/bash
$install-grub /dev/hda /dev/sda1
error
When I could get a file to write?...ha, ha.
Gonna try to remember the menu.lst file:
title Arch Linux
root (hd1,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/initrd26.img
And I have tried variations such as this:
title Arch Linux
root (hd0,0)<---this is wrong according to boot errors
kernel /boot/vmlinuz26 root=/dev/hdb1 ro
initrd /initrd26.img #initrd /initrd26-full.img #initrd /boot/initrd-full.img
Ha, ha. Yeah, I think I found out that using another's install disk for the other's kernel doesn't really work, probably if they are very different kernels. But I am still stuck on this.
[/b] -
Where to install grub?on another partition?or in the / ?
hi
i'm tring to install arch
where i need to install grub?on the root partition(/)?
because after i finished the instaltion and rebooted, windows load up normally:/
Last edited by dids22 (2007-02-06 22:30:22)jwbirdsong wrote:
Instaling it to the MBR is the most common method....although either CAN work...
to install to MBR, as root
grub-install /dev/h(s)da
More good info on WIKI
so why windows boot up normally and not grub?? -
[SOLVED] Can not install Arch on a VirtualBox
Dear all,
I would like to get familiar with Arch and have tried to install in on a Virtual Machine created with VirtualBox.
Unfortunately I can't even start the installation,
whenever I select Install Arch_64bit I just see a white cursor and nothing else happens.
I have found three logs file in my Virtual Machine folders, you can find them here:
http://pastebin.com/699gGph3
http://pastebin.com/0ryWVmaW
http://pastebin.com/2u9siij5
Can you please help me understanding what is wrong and how to fix it and install VirtualBox?
Thanks a lot in advance for the help,
Luca
Last edited by lucacerone (2014-01-06 14:41:18)lucacerone wrote:The ISO thing seems more likely to me, because I never had troubles installing guest OS in my host machine (and yes it is Ubuntu)
I'll try that and let you know how it goes!
If the md5 checksout, you probably have a bad setting in your vm within virtualbox. Check it or delete and re-create. -
Can I install arche in "safe" way from other worki
Can I install arche in "safe" way from other working distro?
Like Debootstrap for example.
I don't like regular install that I don't have control of the installation procees and It work as root alone so It's need very careful in the partition level.
It is possible?Lone_Wolf wrote:Check Install_Arch_from_within_another_distro
I want to install again arch but now there isn't pacman.static.
What should I do?
Solved:
I install pacman and libdownload and now I can install with normal pacman
Last edited by nadavvin (2008-08-19 17:12:16) -
[SOLVED] ARCH install on EFI computer with GPT
Hello everyone. I'm having a problem with installation of arch. When i boot with pendrive "made" with dd i get some "Install override security policy" (or something like that) anyway i can't "edit" pendrive after dd so i create MSDOS partition table and format as FAT32 and copy content of the iso to the pendrive. Boots the same so i googled that i have to overwrite grubx64.efi with loader.efi so i done that and it boots fine. But pendrive doesn't install grub it says that my system doesn't support efi, so i followed this and and from google i read about i have to activate efivars with modprobe but it doesn't work either. I tried EFI install with VirtualBox but error still is the same. Anybody installs arch on UEFI machine ?? Ubuntu (and Xubuntu, Lubuntu...) & Fedora works fine with UEFI install. I don't want to move disk to MBR because of MBR limitations (for example only four primary partitions) and i have important data on the disk so i can't do that.
I tried Arch based distros and there are also problems with install. Manjaro after install shows that UEFI variables wasn't detect properly ( or something like that). Antergos doesn't boot because there is not necessary files (who even release that? this doesn't even work in virtual box) after adding these files i've get 30 seconds Arch problem because label is incorrect antergos says that label have to be ANTERGOS201311 and i can't give that label because FAT32 has 11 characters limitation and if i tried work it out with ext4 it doesn't work at all (there is no prefix UEFI in boot options). I can't also solve that with dd because i have to paste missing files to the pendrive and dd make pendrive unwritable.
Doesn't matter, issue solved. All i have to do is to
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
Last edited by maslascher (2013-12-01 11:04:49)That all depends on the settings you give your VM, you can make it virtualize either a BIOS or a UEFI machine irrelevant of the host firmware.
https://www.virtualbox.org/manual/ch03.html#efi
I'm not sure if UEFI is still considered experimental or how well it works, as I always just use BIOS mode.
Last edited by slithery (2015-06-12 20:17:46) -
Can't seem to install GRUB (Triple boot OSX + WIN7 + Arch.)
Alright I've partitioned my drive into 3 using disk util sda1 default mac boot or whatever, sda2 main OSX, sda3 arch, sda4 win7.
I've installed win 7 already, and attempted to install arch... I think I've done it, but all the tutorials said to skip installing the boot loader and install it manually from the live cd.
So basically I booted the live cd again, and did this:
grub-install /dev/sda3
but I get this:
/dev/mapper/../dm-0 does not have any corresponding BIOS drive
However, my compter works , and rEFIt detects OSX and Win7...
I really want to be able to use Arch, I'd appreciate it greatly if anyone can help me to get grub to work/or ger Arch to somehow boot alongside the other 2 OSes.\
PS. My computer is a MacBook Pro 15" i7 from late 2011.
Thanks!!
EDIT: Could it be because sda3 is ext4?
Last edited by SkullTraill (2012-04-10 00:17:56)Self Solved:
Do not reboot after install, install grub directly after exiting arch installation.
Maybe you are looking for
-
Seems like when FF restores a session, it restores the session of the last window open. If you use tabs as a way of keeping a list of things to do or look at, you have to be careful if you have a second window open to close the second window before y
-
Excise duty credit in custmore sales return
Hi Experts When we receive the sale return from customer we follow the below process. Create sales order with order type sales return Create return delivery. It create stock for return material. VF01 Accounting entry pass in customer account. J1IH fo
-
How to control the status of EDI message in delivery document
Hello: We use user exit:EXIT_SAPLV56K_001 in function:IDOC_OUTPUT_Delivery to block the IDOC generation if delivery is blocked in GTS system.The IDOC generation can be blocked successfully by this user exit but the EDI message type will still have
-
Im having problems with my illustrator , and i don't know how to fix it?
hey, guys. um my illustrator is having this problem with the navigator . and its makiing this fat lines and when i click the line on the little box in the bottom and put it at 100 % it comes out like this all small and i do
-
Compare same first and last name that exists in 2 different rows!
Dear All, I am using Oracle 11gR1 on Linux OS. I have a table that stores employee_id, emp_first_name, emp_last_name, hire_date The records may be like this: 14210, imran, baig, 12-MAR-10 10673, mobeen, ahmed, 14-MAR-10 10060, saad, qureshi, 16-MAR-1