Results 1 to 6 of 6

Thread: grub-install mysterious message "source_dir doesn't exist"

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Beans
    172
    Distro
    Ubuntu 12.10 Quantal Quetzal

    grub-install mysterious message "source_dir doesn't exist"

    I have multiple distros installed and wanted to move grub to the newest one: ubuntu 13.04
    I did what I always did but it no longer works.

    $ sudo update-grub
    This runs OK and puts grub.cfg at /boot/grub

    $ sudo grub-install /dev/sda
    This produces the following error:
    "source_dir doesn't exist. Please specify --target or --directory"

    The info page for grub-install is useless. It tell me to do what I did.
    The information regarding --target and --directory is incomprehensible.

    update-grub seems to be looking for "modinfo.sh" which I cannot find.

  2. #2
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: grub-install mysterious message "source_dir doesn't exist"

    Quote Originally Posted by kornelix View Post
    I have multiple distros installed and wanted to move grub to the newest one: ubuntu 13.04
    I did what I always did but it no longer works.
    What did you do exactly? How did you "move grub to the newest"? and Why? What distro was handling the Grub before you "moved' grub?
    "Evolution is Nature's way of issuing upgrades."


  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Beans
    172
    Distro
    Ubuntu 12.10 Quantal Quetzal

    SOLVED grub-install mysterious message "source_dir doesn't exist"

    How did I move grub?
    1. Put custom menu in /etc/grub.d
    2. Update /etc/default/grub - which grub to pre-select
    3. $ sudo update-grub
    4. $ sudo grub-install /dev/sda (failed)

    Why did I do this?
    I generally use grub from the newest install so grub is up to date.

    Beforehand Ubuntu 12.10 was the grub source.

    This turns out to be a known problem. The new Ubuntu install used grub-uefi instead of grub-pc. I found this with a google search using the search terms "grub" and "source_dir doesn't exist". Searching the Ubuntu forums returned hundreds of irrelevant posts.

    I fixed the problem with $ sudo apt-get install grub-pc

  4. #4
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: SOLVED grub-install mysterious message "source_dir doesn't exist"

    Quote Originally Posted by kornelix View Post
    This turns out to be a known problem. The new Ubuntu install used grub-uefi instead of grub-pc.
    This wouldn't have happened unless there is GPT partition-table, efi partition Fat32, and UEFI enabled in your BIOS, and you install using 'uefi' install... can you confirm any of this? Is there any Windows in the picture booting with Uefi anywhere?

    I am glad, however that you have figured out the cause and fixed it.
    "Evolution is Nature's way of issuing upgrades."


  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Beans
    172
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: SOLVED grub-install mysterious message "source_dir doesn't exist"

    1. There were no changes in partitions or BIOS since my prior grub install (via Ubuntu 12.10).
    2. BIOS pages do not mention UEFI
    3. There is a Windows 7 partition on the disk.
    4. I used the 13.04 64-bit CD image from the Ubuntu web site, labeled "for newer machines".

    I just now looked at the files on the CD and it seems to have grub-uefi and not grub-pc.
    If I should have used some other CD image, where is it ???

    Thanks for looking into this.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: grub-install mysterious message "source_dir doesn't exist"

    I installed 13.04 in my sdc MBR drive and ran sudo update-grub and reinstall to sda with out any errors.
    I do have a couple of gpt drives booting with BIOS, but have not installed 13.04 to them yet. I did not yet add my 40_custom to that install yet.

    Many new systems have both UEFI & BIOS boot capabilities. And how you boot installer either UEFI or BIOS is how it installs. It should not install grub-efi or grub-efi-signed if in BIOS mode as that uses grub-pc.

    I have had issues with typos in 40_custom. I had a typo since the beginning of grub2 (missing end } ) and one boot stanza for an old install was missing. I never noticed. With grub 1.99 it stopped updating grub until I fixed the typo.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •