[Bug 1069178] Re: grub-install doesn't work (it says "source_dir doesn't exist")

Mustafa Muhammad 1069178 at bugs.launchpad.net
Wed Dec 19 08:47:38 UTC 2012


I did:

mustafa at mustafa-Lenovo-B570e:~$ sudo apt-get install --reinstall grub-efi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-headers-3.5.0-17
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 208 not upgraded.
Need to get 1,140 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://iq.archive.ubuntu.com/ubuntu/ quantal/main grub-efi amd64 2.00-7ubuntu11 [1,140 B]
Fetched 1,140 B in 1s (943 B/s)     
(Reading database ... 141805 files and directories currently installed.)
Preparing to replace grub-efi 2.00-7ubuntu11 (using .../grub-efi_2.00-7ubuntu11_amd64.deb) ...
Unpacking replacement grub-efi ...
Setting up grub-efi (2.00-7ubuntu11) ...
mustafa at mustafa-Lenovo-B570e:~$ sudo grub-install /dev/sda
source_dir doesn't exist. Please specify --target or --directory

When I installed Ubuntu, I chose /dev/sda7 to install the bootloader,
when I try to chainload it from my grub, it doesn't work (grub1 says
"Error 13: Invalid or unsupported executable format" and grub2 says
"Invalid signature), I updated openSUSE grub to include Ubuntu (not
chainloading), and now using Ubuntu I can't do "grub-install /dev/sda".

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1069178

Title:
  grub-install doesn't work (it says "source_dir doesn't exist")

Status in “grub2” package in Ubuntu:
  Incomplete

Bug description:
  When I run:

  sudo grub-install /dev/sda

  I get:

  source_dir doesn't exist. Please specify --target or --directory

  and even setting the directory doesn't work:

  sudo grub-install --directory=/boot/ /dev/sda

  /usr/sbin/grub-install: 357: .: Can't open /boot//modinfo.sh

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: grub2-common 2.00-7ubuntu11
  ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
  Uname: Linux 3.5.0-17-generic x86_64
  ApportVersion: 2.6.1-0ubuntu3
  Architecture: amd64
  Date: Sat Oct 20 21:53:07 2012
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub2
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1069178/+subscriptions




More information about the foundations-bugs mailing list