GRUB reinstall error

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sayan1987

GRUB reinstall error

Post by sayan1987 »

Hi,

I was trying to reinstall grub in JULIA after installing windows which rewritten the bootloader with its own, I followed this: http://community.linuxmint.com/tutorial/view/245.

But whenever I am trying to install it, I am getting this error:
grub-probe: error: cannot find a device for /boot (is /dev mounted?).

I have /boot installed in a separate partition which is /dev/sda6 and / partition in /dev/sda1.

Here is the output of fdisk -l:

Code: Select all

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe8000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6322    50780160   83  Linux
/dev/sda2            6323       31197   199799809    5  Extended
/dev/sda3   *       31198       33108    15350107+   7  HPFS/NTFS
/dev/sda5            6323       30638   195311616   83  Linux
/dev/sda6           30638       30699      487424   83  Linux
/dev/sda7           30699       31197     3998720   82  Linux swap / Solaris
I tried to mount /dev/sda6 in /mnt and executed this command:

Code: Select all

sudo grub-install --root-directory=/mnt /dev/sda
which resulted that error, kindly help.
How to resolve this? Where I went wrong?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sayan1987

Re: GRUB reinstall error

Post by sayan1987 »

Okay, resolved the issue by following this:
http://www.techenclave.com/open-source- ... 75817.html
Locked

Return to “Installation & Boot”