LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-26-2017, 02:06 PM   #1
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)


Hello,


I have a 128GB SSD drive with windows 10 on it.And a secondary 1000GB drive with ubuntu 16.10 on it.

I turned on my computer this morning to experience a grub error.

Went in my bios and found that it was booting to the wrong drive, so I corrected it. Previous weird issues with my bios.

I ran the grub rescue cd sevel time and every time I boot up I now get the error that:
BOOTMGR is missing

Info on my boot setup is at
http://paste.ubuntu.com/24255532/
I need grub on my 128GB HDD.

This issue has happened before and it was fized by me correcting my bios and running boot rescue cd I have completed this several times to no avail.

Any input would be greatly appreciated.

Steve
 
Old 03-26-2017, 05:42 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Boot repair shows Ubuntu on sda6, the 1TB drive and there are unknown problems with that partition. If you look at the very top of the boot repair output, you will see that syslinux is installed in the MBR of both drives. You should have Grub installed there and you should have Grub and boot files on the sda6 partition which are not showing. That doesn't necessarily mean they are not there but is a pretty good indication. There is no grub.cfg file which is the Grub boot menu.

Are you able to boot Ubuntu? The 'bootmgr' error is a windows error meaning it can't find the windows 'bootmgr' file. You can see it is there on sdb1 which also shows that you have Grub4Dos some files on that partition. There isn't any Grub4Dos menu shown either. Since no menu shows for Grub, Syslinux or Grub4Dos, I'm not sure how anything could boot.

You could probably accept the boot repair option but it won't recreate the grub.cfg file so you would need to chroot to that partition and run: sudo update-grub.

If this is a new install, it would be simpler to copy any personal data on the Ubuntu partition to another drive/DVD and re-install to sda6 and use the manual install option (Something Else) and make sure you install to /dev/sda6. You need to verify before installing that the 1TB drive shows as sda which you can do with the command: sudo fdisk -l(Lower Case Letter L in the command) run from a terminal on the installation media.
 
Old 03-26-2017, 08:42 PM   #3
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

hello
I had this issue a long time ago and you were the one that helped me solve the issue.
I cannot boot into anything on my computer at this time.
Do I have to reinstall boot manager for Windows 10 first then install grub. also how can I install grub if I cannot boot into Ubuntu. I tried doing it bootable CD for Ubuntu and I could not.
Any ideas of where to go from here.
 
Old 03-26-2017, 09:48 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
how can I install grub if I cannot boot into Ubuntu
You should be able to do it with the Ubuntu installation DVD. You would first need to install Grub to the MBR of sda after verifying when booting the Ubuntu DVD that your 1 TB drive is in fact seen as sda. If it isn't, you will need to change the grub-install to point to the correct drive. In your case, it could be sda, sdb or sdc. You can easily determine this by running:

Code:
sudo fdisk -l
That's a lower case Letter L in the command. This will show partition info but also the drives by size. You're looking for the 1TB drive so use whatever that shows. You will then need to use the chroot method to get into the system on the hard drive in order to run: sudo update-grub

Code:
  sudo update-grub
How exactly to do that is explained at the Ubuntu Grub documentation site at the link below. On the right of that page under Contents, section 2.2.5 You can also reinstall Grub according to the instructions in section 2.2.3, via the live cd terminal which is a better option than the grub-install because it creates Grub files. It won't create grub.cfg (your boot menu) which is why you need to do the chroot to update-grub which will create grub.cfg

https://help.ubuntu.com/community/Grub2/Installing
 
Old 03-27-2017, 07:38 AM   #5
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

Hi Yanek,
before I had the setup with grub on my 1st HDD booting to sda6 which is my Ubuntu partition
I tried booting off the live CD yesterday for Ubuntu and running
sudo update grub and it couldn't point to a drive I can try again. when I get back today I will try your website and get back to you.
 
Old 03-27-2017, 08:21 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I tried booting off the live CD yesterday for Ubuntu and running sudo update grub
No, that won't work. You can install Grub from the DVD but running update-grub from the DVD will try to update grub on the DVD which is an iso9660 filesystem and is read-only. Probably, you will get a message that it was successful but it won't update the Grub on the installeld system. That is why you need to chroot, so you are running on the installed system.

Make sure you get the correct drive/partition.

Last edited by yancek; 03-27-2017 at 08:24 AM.
 
Old 03-27-2017, 02:57 PM   #7
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Hello Yancek,
Thank you very much for your help thus far just ran into one little snag.

I ran fdisk -l and got the following :

Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/loop0: 1.5 GiB, 1563484160 bytes, 3053680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xfb149129

Device Boot Start End Sectors Size Id Type
/dev/sda1 512002048 1953523711 1441521664 687.4G 7 HPFS/NTFS/exFAT
/dev/sda2 2046 512002047 512000002 244.1G 5 Extended
/dev/sda5 495419392 512002047 16582656 7.9G 82 Linux swap / Solaris
/dev/sda6 * 2048 495419391 495417344 236.2G 83 Linux

Partition 2 does not start on physical sector boundary. <<< ? >>>>
Partition table entries are not in disk order.


Disk /dev/sdb: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xffffffff

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sdb2 * 206848 161669119 161462272 77G 7 HPFS/NTFS/exFAT
/dev/sdb3 161669120 162590719 921600 450M 27 Hidden NTFS WinRE
/dev/sdb4 162592768 249929727 87336960 41.7G 7 HPFS/NTFS/exFAT

So I was kinda stumped as to what drive to mount, so I tried the my actual linux partition.

I ran the following cmds from the live linux cd:

sudo mount /dev/sda6 /mnt

sudo chroot /mnt

grub-install /dev/sda6

grub-install: error: cannot find a device for /boot/grub (is /dev mounted?). <<< ? >>>>

Is it to the point where I need to do a reinstall. Also I imagine my windows partition would come back to life after this not sure. Since this prob happened two months ago I think its a bug in in the ubuntu 16.10 OS.

Input would be greatly appreciated I am not a programmer nor do I pretend to be.

-Steve

Last edited by Stev8; 03-27-2017 at 03:03 PM.
 
Old 03-27-2017, 07:07 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Do you have any folders/files under the /mnt directory? If you do, then create a new directory as a mount point for the sake of simplicity with:

Code:
sudo mkdir /mnt/sda6
If you don't have any other folders/files under /mnt, then go ahead with:
Code:
sudo mount /dev/sda6 /mnt
To verify that it is mounted, in a terminal do either: ls /mnt OR ls /mnt/sda6 depending upon the option you used.

Then go to the page I linked to under the section via chroot because you skipped step 10 and without that, the chroot won't work.

If you are using 16.10, you will need to upgrade or re-install soon as support for it ends in July. I haven't used 16.10 at all so can't comment on that. If you can get whatever personal data off, then a reinstall would probably be a simpler option. I'm not sure how you got the Syslinux bootloader in the MBR of both drives instead of Grub? Also, the boot repair output shows the current filesystem on sda6 (Ubuntu) has problems so reinstalling is probably the simplest. I would suggest you use 16.04 for long term support unless you've tried it and had some problems.
 
Old 03-28-2017, 10:12 AM   #9
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

hello just to let you know since this problem happened in the past I have to ultimately decided that the partition table on my entire secondary Drive is screwed. so I'm making a backup of everything and then I'm going to run a hard drive clear tool such as Max blast. I'm simply going to reinstall everything on the secondary Drive. hopefully my windows comes back to life after this. so I will get back to you. I tried what you said and I got invalid block device for my entire Drive. so I will get back to you
 
Old 03-30-2017, 07:23 AM   #10
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

hello Yancek,
well, over the past few days I ran a bunch of HDD diag tools on my TB drive and nothing seems wrong.

Here are the facts
-SDA has Ubuntu 16.10
-SDB has windows 10 on it
-When I change my bios to boot from SDA it goes to a grub screen detecting and showing win 10 but I can't boot win from this.
-I tried booting from SDB and it went right into win
- I booted back into Linux and did sudO grub-install /dev/SDA
- now when I boot from SDA in my bios I can't boot into Linux

any advice??
 
Old 03-30-2017, 07:36 AM   #11
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

hello
That was information that I gave you from last night but now it seems to be working this morning I don't know why. weird anyways it's solved for now I will leave this post open in case I need to refer back to this in the next little bit. thank you very much for your help but everything seems to be going fine this morning.
 
Old 03-30-2017, 07:50 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Did you run: sudo update-grub after the grub intall? That creates or re-creates the grub.cfg file which grub-install does not. Your boot repair posted several days ago didn't show any grub.cfg file at all so you might take a look at /boot/grub/grub.cfg to see what is in it, particularly the windows entry there. If you don't understand it, you could post it here, at least the part beginning with the 'menuentry' lines. Also, you might make a backup of the grub.cfg file that is working.
 
Old 03-31-2017, 09:41 AM   #13
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

thanks but my issue is that my one drive has a bad sector so the prob isn't an Ubuntu one. I have everything working now from my other HDD.
so everything is good. I think I can close this thread. thanks
 
Old 03-31-2017, 09:43 AM   #14
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

so just to clarify I reloaded everything windows and Ubuntu and now everything is working with grub on my one terabyte drive. everything is working now I will keep this knowledge back in the back of my head. thank you very much as soon as I get to a computer I can close this thread.
 
Old 03-31-2017, 03:51 PM   #15
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Original Poster
Rep: Reputation: Disabled
Ubuntu 16.10 and Windows 10 dual boot --- BOOTMGR is missing(boot issue)

hello
Every now and then when I boot my computer and try to boot into Windows on sdb. I get the following error message
Error no such device
Unable to get cylinder head and sector values.
Do you know anything about this. I am absolutely stumped and cannot find much information of this problem on the internet. have a great weekend.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lost access to my windows7 drive(Dual-boot windows 7&Ubuntu) - Bootmgr is compressed fkayal Linux - Newbie 3 09-04-2012 08:55 AM
not able to boot into Win7, dual boot with Fedora, getting error BOOTMGR missing.. mrprassad Linux - Newbie 3 05-09-2011 10:29 AM
Bootmgr is missing on ubuntu and windows 7 dual boot bomberb17 Linux - Newbie 5 04-10-2011 07:40 PM
[SOLVED] Linux Limbo - Bootmgr missing for dual boot BThresher Linux - Newbie 7 03-29-2011 10:07 AM
Dual Boot Grub. Windows XP BOOTMGR not found thealmightyos Linux - Software 15 12-04-2010 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration