Can't add new GRUB entries thru /etc/grub.d/40_custom on MacBook Pro

I am using Arch Linux on my MacBook Pro. The main bootloader is rEFInd, which then loads GRUB (in EFI mode) which in turns loads Linux. Of course rEFInd can also load OS X directly, but I am experimenting because I need OS X to be loaded by GRUB: some buggy hardware requires "outb" commands before booting the OS, and loading OS X through GRUB seems like the most natural way of doing it.
I am using the automatic script in /boot/grub.d/ to generate the bootloader configuration, so I use the following commands:
grub-mkconfig > /boot/grub/grub.cfg
grub-mkstandalone -o boot.efi -d /usr/lib/grub/x86_64-efi -O x86_64-efi --compress=xz /boot/grub/grub.cfg
They generate a new configuration and to create a new EFI image, which is then copied on a blessed boot partition. I am sure that the changes I make to the configuration file are put into effect, because I can (for instance) modify the kernel parameters for the default image and see the modified entry on the GRUB menu.
Now I am trying to add a new configuration entry, the usual way would be by modifying /etc/grub.d/40_custom. I add the following lines:
menuentry 'OS X (on /dev/sda2)' {
insmod hfsplus
insmod part_gpt
set root='hd0,gpt2'
chainloader /System/Library/CoreServices/boot.efi
which are added correctly to /boot/grub/grub.cfg after I run grub-mkconfig as shown above. I also generate boot.efi as shown above, too, and I copy it on the boot partition.
However when I reboot I cannot see the new entry in the GRUB menu. Is there something I am overlooking? Is there some way of troubleshooting GRUB when it's reading the configuration file? I think it may not like the syntax of the new entry I added.
Last edited by zakk (2014-12-04 20:35:17)

You should point grub-mkconfig to "your_efi_system_partition"/grub/grub.cfg instead of boot/grub/grub.cfg

Similar Messages

  • HT1420 I have 5 computers already authorized with my Apple ID.  How can  I add one more.  My home has 1 IMAC, 2 Macbook Pros, 1 Ipad and 2 Iphones.  Why are you now limiting me to five computers on my Apple ID when I am clearly an Apple product supporter.

    I have six products in my home.  I can only authorize five using my Apple ID.  All my products are Apple - 1 IMAC, 2 MacBook Pros, 2 Iphones and 1 IPAD.  This doesn't seem right - We are so Mac'd out in our home and yet we are now being limited to the number of products we can have using the same Apple ID.  Any advice as to how to find a workable soliution to this?
    Thanks

    Authorise Only Applies to Computers... Not Devices...
    You state you have 1 IMAC, 2 MacBook Pros, ... this = 3 Computers... you can Authorise up to 5 computers.
    See Here for full details...
    About authorization and deauthorization
    For Devices...
    See Here...
    iTunes Store: Associating a device or computer to your Apple ID

  • Can't add new calendar entries after losing all calendar entries

    I have asked about retrieving lost calendar entries that I had nothing to do with deleting.
    Went to ICloud and there are no entries there, either, even though the calendar is turned on in Settings on my IPhone 5s.
    I tried adding new entries to the calendar and it will not accept them.
    What is up here?????

    Hi,
    I discovered the same yesterday when I tried to create a calendar item. Also got a weird bug on my iPad where in week / landscape mode I can't swipe right unless I swipe left a little and then get some momentum to swipe right.

  • My bookmarks have disappeared and I can't add new bookmarks.

    All my bookmarks have disappeared, including the defaults on the toolbar of most visited, etc. I can't add new bookmarks either. I have tried all the Help Topics on lost bookmarks. I tried restoring bookmark backups, but the backup from the date I lost bookmarks says "unable to process backup file." All the later dates will load, but they have no bookmarks saved in them. All of the other Help Topic attempts went fine but did not solve the problem.

    What I would say is that if you have any bookmarks at all at present that you make a manual backup of them, and then continue to make manual backups as any recovery efforts proceed.
    * see [[Backing up and restoring bookmarks]]
    There is a possibility that you had corrupt files, and may then have inadvertently overwritten any files that may have contained bookmarks. It is a good idea to make manual backups, for cases where the auto backups do not. work as expected.
    If you have already followed the instructions carefully about [[lost bookmarks]] and without resolving the situation, there may not be much you can do about your personal bookmarks. If they are important and you are willing to try there may be a possibility using file recovery software, &/or sqlite editors that something could be salvaged, but not something I can advise on, I am not currently a Mac user.
    The default bookmarks should be fairly easy to restore. You can probably also start the bookmarks working again. Trying the simplest options first:
    # work from [safe mode]
    #* at this stage when you see the first dialogue window with options do not make changes, press the continue button
    # use the customise / customize option from the toolbars and '''reset defaults'''
    #* Mac may differ from my Windows XP, I can right click bookmarks, or use the tools menu see [[How do I customize the toolbars?]]
    # if that has failed to resolve the problem go back to safe mode as in step 1 but this time use reset toolbars and controls.
    By now you should have the default bookmarks back and maybe the bookmarks work and will save new bookmarks, try it whilst still in safe mode, before going back to try in ordinary mode. If it works in safe mode but not in ordinary mode you probably have some add-on managing to cause problems
    If you still have problems and bookmarks will not save see [[bookmarks not saved]] that probably indicates corrupt places.sqlite &/or localstore.rdf the linked article explains how to find and delete them.

  • How can i add new tab in Business Partner

    hi every body,
    Present i am working on SAP CRM 3.0 version. i need to add new tab in BP.  Here EEWB not available. How can i add new tab?

    Hi  babu,
    you can add new tab in Buisness partner with the help of screen configaration functionality,in screen configaration u select first bp role (sold to party or retailer etc) and click on process screen sequence  and again click on overview and u will get fields right side of the screen, there u will see the field "new screen" click on that and add description for new tab and click on continue,save the document
    now u will again create a bp with modified bp role u will see changes means u will see new tab page on perticular bp role
    i hope this is helpful
    Rewards points if helpful
    Thanks&regards
    kishore kumar

  • Can we  add new attachment outside SC(like from custom page on SoCo PO)  to existing SC ?

    Hi Experts,
    Need your expert advice on the below requirement.
    We have created a custom view in SoCo PO page. There we have a New custom view called Notes&attachement.which contains same value from Notes & attachment of Shopping Cart.
    We are updating existing Notes of SC by FM 'bbp_pd_sc_update' and same is reflected in SC of same item guid & same header guid.
    Similarly trying to add a new Attachment to already existing attachment. New attachment is reflected in custom page and the describe link is working perfectly. but if come out of SoCo page , lets say in SC the new added attachment is shown but display_url,phio_size,disp_url etc are not stored properly in DB.
    in bbp_pd transaction every thing looks same for new and existing attachment. we are using same FM 'BBP_PD_SC_UPDATE' by passing new internal table of attachment in import statement. Even 'BBP_PROC_DOC_UPADTE' has same result that is new attachment is partially updated.
    Suppose, SC has one attachment at the time of creation. then adding a new attachment in custom view of SoCo PO page then every thing works fine in SoCo PO page but out of that SoCo PO or in SC the newly added attachment is not properly updated.
    I have added mime_type,phio_size,disp_url,file_name,file_ext,ev_content,phio_content of new attachment in existing attachment internal table and calling above FM for update.
    Can we  add new attachment outside SC to existing SC ? if yes , then how?
    Thanks,
    Partha

    Your attachments are saved in BBPCONT you can use below steps to check that , I think you can develop a solution inline to the standard architecture. 
    a) Run FM BBP_PD_XX_GETDETAIL
    b) Use GUID from the Export parameter ET_ATTACH-GUID
    c) Use table BBPCONT and pass ET_ATTACH-GUID in step (b) to PHIO_ID .
    d) Then you will have the document content.
    You will get the attachment
    Cheers
    Ankit Jain

  • How to add new data entry and display old data in the same screen in SM30?

    Hi, Experts:
    We need to use SM30 to maintain a table entry. When I click the button of "New Entries", the table screen becomes blank. I can only add new data but not be able to see the old data existing in the table.
    How can I have the new line available for me to add new data at the same time see the data currently existing in the table?
    Thanks,
    Jenny

    Hi, thanks for the reply!
    Just to follow up for what we did to disable the delete function for maintaining table records. We hided the Delete button by adding a "MODULE disable_delete" code in Screen Painter. So now only adding records to the table is allowed.
    Thanks,
    Jenny

  • I am running 10.6.6 on my mac and 10.5.8 on my server and I can not add new people to Ical on my mac but if another user on a 10.5 version of mac can. What is the issue?

    I am running 10.6.6 on my mac and 10.5.8 on my server and I can not add new people to Ical on my mac but if another user on a 10.5 version of mac can. What is the issue?

    Set up iCloud
    Set up iCloud (2)

  • How can I add new content in iDVD to a DVD-RW disc which has ample remaining free space? After preparing the new video for burning and clicking on Burn to iDVD, I get a window saying the disc's already recorded and that I can either Erase or Eject.

    How can I add new content in iDVD to a DVD-RW disc with a video previously successfully recorded on it? (The disc has ample remaining free space.)
    After preparing the new video for burning and clicking in the File menu on Burn to iDVD, I get a window saying the disc's already recorded and that I can either Erase or Eject. My assumption has been that iDVD would automatically find the free space and continue with the new recording from there. I'd be grateful if anyone can shine light on this.

    There are, but not with a DVD written as a movie disk. It must be closed when completed, or it doesn't work.
    Apple's built in Burn utility also automatically closes any data CD, DVD or Blu-ray disk you burn. Doesn't matter how much space is unused, you can't use it. You'd have to use a more advanced disk creation app, such as Toast Titanium. I then have the option of choosing to write the data as a session:
    I can keep doing this until the disk is full. If I've written five sessions to the disk, when I put it in the drive, five CD/DVD icons will appear on the desktop since the OS will treat each session as if they are separate physical disks. At any point you choose Write Disk when writing a group of data, that means you're closing the disk, and again can't add anything after that. So if I had written two sessions, and the third was Write Disk, it's over. I can't put anything else on that disk.

  • Recent convert to Apple. Previously, I backed up my family pictures from PC to an external hard drive,  a WD MyBook 3T. I can view the pics on my Macbook Pro, but I can't add new pictures. I'm sure this is a format issue, any easy way to correct it?

    Recent convert to Apple. Previously, I backed up my family pictures from PC to an external hard drive,  a WD MyBook 3T. I can view the pics on my Macbook Pro, but I can't add new pictures. I'm sure this is a format issue, any easy way to correct it?

    Install NTFS 3G
    http://macntfs-3g.blogspot.com/
    If you were going to be reading and writing to a NTFS System Partition, you might have to worry about the instability messing up the operating system.  However, you are reading/writing from a non system, backup device so you don't have to worry about screwing up an operating system.
    I would still temporarily move my data to another device and reformat the drive for Mac OS X Extended.

  • Master Data Services - Can not add new User and MDS can not Identify LOCAL Users

    Team,
    We are using  SQL Server 2008 R2 and system working since long and suddenly we observed mentioned two issues. The server MyServer is already restarted but did not help.  The MDS installed and configured on SAME Machine (MyServer).
      I  have two issues here.
    1. MDM website can not Identify the local Users (MyServer\MyUser).
    The User created on local Machine (MyServer\MyUser). I logged into MDM website using Admin login and click on User and Permission. Then I click on add and Text box appears to type UserName. Here I type "MyServer\MyUser" (MyServer\MyUser is already
    exists and working since long). Then click checkName; I received a message "No exact Match was found for MyServer\MyUser". Where as User from OTHER domain identified in MDM but could not identify ONLY the local users like "MyServer\MyUser".
    2. Can not add new user in Existing working MDM.
    I created windows user on machine (MyServer\MyUser1) and add it in UserGroup having an access to MDM. and then I tried to login to MDM using newly created user (MyServer\MyUser1) ; I see error Access Is Denied. The Permission assigned to UserGroup (not
    to individual user). The new User (MyUser1) should automatically get added in MDM once logged in. This is working for existing users in UserGroup; BUT NOT ONLY for new user (MyUser1).

    Now I Solved this problem in my case.
    I just grant again all permissions according http://msdn.microsoft.com/en-us/library/ff486994.aspx. Now all work fine.
    Hope, it will help 

  • How can i add new jcomponent to a frame?

    hi.
    how can we add new component to a frame? look at this code. Why when i click on button, nothing added to frame? event handled correctly and frame size changes but no button adds to frame.
    private void convertButtonMouseClicked(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here:
    JButton newButton = new JButton("new");
    getContentPane().add(newButton , BorderLayout.CENTER);
    newButton.setVisible(true);
    setSize(500, 500);
    }

    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
    Well typically you wouldn't add a button to the Center of a BorderLayout. If you really want to do this you should be using a [Card Layout|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html].
    In general the code for adding/removing components should be:
    panel.add(...)
    panel.revalidate();
    panel.repaint();

  • Ever since the last update I don't have my old bookmarks, can't add new ones and can't import my HTML file. How do I fix this?

    ever since the last firefox update I don't have my old bookmarks, can't add new ones and can't add my HTML file of my bookmarks

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • How can I add new songs to the top (not the bottom) of my playlist in iTunes?

    How can I add new songs to the top of my playlist in iTunes?
    I thought thats what it did before but now it automatically adds new songs to the bottom of the list.
    Not a huge issue but an annoyance.

    Go to your Music library
    Then, Click Playlist
    Then, Click the sort arrow until it points down.

  • My bookmarks have disappeared and I can't add new ones. can anyone help?

    my bookmarks have disappeared and I can't add new ones. can anyone help?

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

Maybe you are looking for

  • No HP utility and can;t connect while scanning

    My printer cannot connect to my Macbook when trying to scan, also when I access printer settings I only get General and Supply Levels, where did HP utility go and why can't I scan normally? My OS is OS X V 10.9.4 and my printer is an HP Officjet 4632

  • Mail - How do I show the receiver in a own created folder in message list containing sent mails?

    Hi there! I created an own extra folder in the message mail list and put there mails that once had been sent (it works as an archive but I did not use the archive-function). For obviously just mails in the Sent-File(s) show the receiver instead of th

  • ORA-12560 Error

    I installed 9i Developer Suite. I did not install the net configuration manger. The installation said it was not required. I am using forms builder and can compile the form. I connect to the database. However, when running the form I receive a ORA-12

  • Final Cut Pro version 1 and OS 9 Classic?

    Will my old copy of Final Cut Pro 1 work in the OS 9 Classic environment? Has anyone tried this? I used to run FCP 1 on a PowerMac G3 and want to run it on my Powerbook G4. I know about the updates to the new versions , but I was wondering if FCP 1 w

  • CAN WE RECOVER A DDL STATEMENT OR DATA

    HI, CAN ANYBODY TELL ME HOW TO RECOVER A DDL STATEMENT OR DROPPED TABLE OR COMMITTED DATA.... I HAVE TRIED A LOT BUT I COULDN'T ABLE TO RECOVER THE DATA . IWAS USING INCOMPLETE MEDIA RECOVERY.EVEN THE STATEMNET WAS SUCCESSFUL BUT WHEN ICHECK OUT WHET