Ubuntu installing problem

+2 votes
I am installing Ubuntu alongside with Windows 8.1. during installation I m facing problem , problem is " executing grub installation/dev/sda  failed, this is fatal error
Oct 15, 2018 in Linux Administration by Prince
• 160 points

recategorized Oct 15, 2018 by Vardhan 1,267 views

2 answers to this question.

+1 vote

I think it might have messed up your hard disk name. Do try reinstalling GRUB.

  1. Boot using a live CD of Ubuntu.

  2. Open a terminal and run the command

    sudo fdisk -l
    

    It lists the complete partition table of the hard disk. In there, identify which partition you have got your linux installed on. You can identify it using the drive size you had allocated for it and looking at the last column of the output which will be ‘extended’ for all of your linux partitions. The partition will most probably be something like /dev/sda5 or something. Remember this partition.

  3. Create a temporary folder in your home directory (Note: You can make the temporary folder anywhere you want. I’m using the home folder just for the sake of explanation). I’m calling it ‘temp’ for now. So that ‘temp’ folder’s path will be /home/ubuntu/temp.

  4. Mount your linux partition there. That is, assuming that you found your linux partition to be /dev/sda5, you mount that at the ‘temp’ folder by doing the following command

    sudo mount /dev/sda5 /home/ubuntu/temp
    
  5. If you want to check whether you have mounted the correct partition, go to your home folder and open temp. You will be in the / directory. In there you will find ‘home’, in which your home folder’s name will be there. Once you’ve confirmed you have mounted the correct partition, do step 6.

  6. You have to install grub by showing the system where to read the data from the hard disk at the beginning. Don’t worry, just run the following command

    sudo grub-install --root-directory=/home/ubuntu/temp /dev/sda
    

    The /dev/sda corresponds to your hard disk name. Replace it by whatever the command sudo fdisk -l command showed you.

  7. You’re done. You may restart your system.

answered Oct 15, 2018 by Priyaj
• 58,020 points
+1 vote

Hey Prince!

This seems to be like a problem with the drive name. When you start the installation, switch to command line/terminal mode. Then type lsblk -a and hit enter. This will show you a list of specified block devices similar to this image.

Now see which drive you want to install ubuntu onto. Suppose you want to install it on /dev/sdb, specify /dev/sdb as mount point when grub asks you the installation drive. This should solve your problem.

answered Oct 15, 2018 by Omkar
• 69,220 points

edited Oct 15, 2018 by Kalgi

Related Questions In Linux Administration

+2 votes
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

answered Nov 28, 2018 in Linux Administration by Omkar
• 69,220 points
8,271 views
0 votes
1 answer

Create new user on Ubuntu

Hey @Eric,  Follow these steps: Go to your terminal  Execute ...READ MORE

answered Jan 10, 2019 in Linux Administration by Noah
3,013 views
0 votes
1 answer

Error installing npm

Npm depends on NodeJS to run/get installed. ...READ MORE

answered Feb 9, 2019 in Linux Administration by Omkar
• 69,220 points
1,159 views
0 votes
1 answer

What is absolute path in Ubuntu?

An absolute path is a path to ...READ MORE

answered Feb 9, 2019 in Linux Administration by Omkar
• 69,220 points
1,434 views
+1 vote
1 answer

Error :Ethernet Cable unplugged in Ubuntu

Try this: $ sudo ifconfig eth0 down $ sudo ...READ MORE

answered Feb 9, 2019 in Linux Administration by Omkar
• 69,220 points
14,072 views
0 votes
1 answer

Problem printing variable on terminal

You are basically trying to echo the ...READ MORE

answered Feb 18, 2019 in Linux Administration by Omkar
• 69,220 points
530 views
0 votes
1 answer

Error when trying to install a few packages on ubuntu

Try executing the following commands and try ...READ MORE

answered Mar 15, 2019 in Linux Administration by Jobin
1,606 views
0 votes
1 answer
+1 vote
3 answers

How to uninstall Apache2 on Ubuntu?

Hey @Laksha, execute the following commands: $ sudo ...READ MORE

answered May 14, 2019 in Linux Administration by Hemant
275,788 views
0 votes
1 answer

Ubuntu 10.10: Connecting to a terminal to a serial-to-USB device on Maverick Meerkat

Check with dmesg | grep tty if system recognize ...READ MORE

answered Jun 10, 2019 in Linux Administration by Upasana
• 8,620 points
8,223 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP