Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed Ubuntu using USB drive. I installed it along side Windows 7.

But I have a problem. I cannot see which OS (Windows or Ubuntu) I should enter after booting my laptop. It normally boots Windows 7 but still I can load Ubuntu after connecting my USB.

Please some one tell me what I should do. I'm not much familiar with computers. Please give me full instructions to do this.

I typed it in terminal and it shows

samith@samith-Inspiron-N5050:~$ grub-install /dev/sda2
rm: cannot remove `/boot/grub/915resolution.mod': Permission denied
samith@samith-Inspiron-N5050:~$ 

Can I restart laptop now?

share|improve this question
    
What is the output of sudo fdisk -l? –  Mitch Aug 14 '12 at 19:02

1 Answer 1

It looks like you have Grub on the USB flash drive, and it has to be moved to the install grub to your hard drive. To do that, with the USB plugged in, boot into Ubuntu just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below:

sudo grub-install /dev/sdaX (where X is your primary disk )

if you get any errors, try

sudo grub-install --force /dev/sda2

To find out which one is your primary disk,(in the image below, it would be sda1) just type

sudo fdisk -l

enter image description here

When done, do sudo update-grub, remove the USB, and restart your system.

Try to re-install grub2 to the mbr from the live cd. This site would help: http://help.ubuntu.com/community/Grub2

share|improve this answer
    
Is that star shown one???.....my dev/sda2 shows (*) –  Sam Aug 14 '12 at 10:16
    
Normally yes, but just to be safe, can you upload an image somewhere, give me the URL, and I'll post it for you. –  Mitch Aug 14 '12 at 10:24
    
samith@samith-Inspiron-N5050:~$ grub-install /dev/sda2 rm: cannot remove `/boot/grub/915resolution.mod': Permission denied samith@samith-Inspiron-N5050:~$ Is that correct??? Can I restart my laptop now?????? –  Sam Aug 14 '12 at 10:26
    
it shows.......samith@samith-Inspiron-N5050:~$ sudo grub-install /dev/sda2 [sudo] password for samith: /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea.. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. /usr/sbin/grub-setup: error: will not proceed with blocklists. samith@samith-Inspiron-N5050:~$ –  Sam Aug 14 '12 at 10:53
    
will it harmful to my laptop?????....plz???? –  Sam Aug 14 '12 at 11:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.