PDA

View Full Version : Debian do not recognizes Ubuntu install...



fel3
December 5th, 2014, 08:40 PM
Hi there!

I have Debian,Arch and brand new install of Buntus on GPT table and grub managed by Debian on 64 bit...

I'm installed Ubuntu with GRUB on sda5(buntus partition) instead sda ... is that correct ? debian
update-grub and
os-prober IS NOT recognizin the Buntus new install...

or...

how to skip grub install on UBUNTU INSTALLATION ???

tia!

Do I had to mount Buntu partition before updating grub ???

yancek
December 5th, 2014, 10:37 PM
I don't use Debian but their wiki site at the link below seems to indicate you need the command: update-grub2

https://wiki.debian.org/Grub

grahammechanical
December 5th, 2014, 10:48 PM
If Ubuntu was installed after Debian then it is Ubuntu that is in change of the Grub boot menu. And that maybe why any changes to grub configuration files in Debian are not having an effect. Can you load into Debian? If so, then you need to do more than run


sudo update-grub

or also need to run


sudo grub-install /dev/sda

Assuming that you only have one hard disk with the 3 Linux distributions on the same hard disk.

In Ubuntu update-grub and update-grub2 are scripts that do the same thing. They run grub-mkconfig. It is that utility that creates the main Grub configuration file and not os-prober.

Regards.

yancek
December 6th, 2014, 01:06 AM
If Ubuntu was installed after Debian then it is Ubuntu that is in change of the Grub boot menu

If he installed Grub to the mbr which he specifically stated he did not but installed to the Ubuntu partition.


I'm installed Ubuntu with GRUB on sda5(buntus partition) instead sda

fel3
December 6th, 2014, 03:16 PM
horrrayyy...

I tried to do a new install and this time I get this:


Unable to install GRUB in /dev/sda



Executing 'grub-install /dev/sda' FAILED



This is a fatal error

I like to install on Btrfs perhaps that's the inconvenient?

what's wrong? what I'm doin wrong??

WHERE do I need to place the BOOT LOADER ??? in sda, sda1,sda2,sda3,sda4...

tia!

some way to skip bootloader on install?

nerdtron
December 7th, 2014, 03:13 PM
Boot loader needs to be installed on the drive itself /dev/sda. and I don't think you can skip it.

oldfred
December 7th, 2014, 06:40 PM
If you have gpt and are booting with BIOS, you must have a bios_grub partition for grub to correctly install to the gpt's protective MBR. Normally the bios_grub partition is 1 or 2MB. But with BIOS we have seen where btrfs makes core.img extremely large for some reason, so perhaps your bios_grub partition needs to be larger?

Or are you booting with UEFI?

You normally do not install grub to a partition. And grub2 does not like to install to partitions as it does not fit and has to convert to blocklists or hard coded addresses. Any change that moves a file on drive then requires a reinstall of grub.

fel3
December 7th, 2014, 11:49 PM
If you have gpt and are booting with BIOS, you must have a bios_grub partition for grub to correctly install to the gpt's protective MBR. Normally the bios_grub partition is 1 or 2MB. But with BIOS we have seen where btrfs makes core.img extremely large for some reason, so perhaps your bios_grub partition needs to be larger?

Or are you booting with UEFI?

You normally do not install grub to a partition. And grub2 does not like to install to partitions as it does not fit and has to convert to blocklists or hard coded addresses. Any change that moves a file on drive then requires a reinstall of grub.

THX for reply dude!

yep I'm bootin with UEFI ! and let the Bootloader manage to Debian:


fdisk -l

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 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: gpt
Disk identifier:


Device Start End Sectors Size Type
/dev/sda1 2048 43007 40960 20M Microsoft basic data
/dev/sda2 43008 555007 512000 250M Microsoft basic data
/dev/sda3 555008 22059007 21504000 10.3G EFI System
/dev/sda4 22059008 63019007 40960000 19.5G Microsoft basic data
/dev/sda5 63019008 115447807 52428800 25G Linux filesystem




sda1 >>> 20 M (I dunno)

sda2 >>> 250 M (idem)

sda3 >>> 10 G ( DEBIAN )

sda4 >>> 20 G (arch)

sda5 >>> 25 G (supposedly Ubuntu)

tia!


/dev/sda


Unable to install GRUB in /dev/sda


Executing 'grub-install /dev/sda' FAILED


This is a fatal error


# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10


Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present


Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 625142448 sectors, 298.1 GiB
Logical sector size: 512 bytes
Disk identifier
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 625142414
Partitions will be aligned on 2048-sector boundaries
Total free space is 509696621 sectors (243.0 GiB)


Number Start (sector) End (sector) Size Code Name
1 2048 43007 20.0 MiB 0700
2 43008 555007 250.0 MiB 0700
3 555008 22059007 10.3 GiB EF00 sda3
4 22059008 63019007 19.5 GiB 0700
5 63019008 115447807 25.0 GiB 8300




:emoHELP:

oldfred
December 8th, 2014, 12:10 AM
Did you boot Ubuntu in BIOS mode?
How you boot installer is how it installs and in BIOS mode it has to have the bios_grub partition.
But if other installs are UEFI, much better to also have Ubuntu in UEFI boot mode also.

The two boot modes UEFI and BIOS are not compatible and you can only switch from UEFI/BIOS menu and may have to turn on/off UEFI or CSM settings to boot in correct mode. Some auto switch and you can use f12 or one time boot key. But grub will only let you boot systems installed in the same mode.

Best to see details.
Post link to summary report.
Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
Precise, Trusty, Vivid, & Utopic all should work now with current ppa
https://help.ubuntu.com/community/Boot-Repair

See link below for more info on UEFI.

fel3
December 8th, 2014, 12:18 AM
Did you boot Ubuntu in BIOS mode?
How you boot installer is how it installs and in BIOS mode it has to have the bios_grub partition.
But if other installs are UEFI, much better to also have Ubuntu in UEFI boot mode also.

The two boot modes UEFI and BIOS are not compatible and you can only switch from UEFI/BIOS menu and may have to turn on/off UEFI or CSM settings to boot in correct mode. Some auto switch and you can use f12 or one time boot key. But grub will only let you boot systems installed in the same mode.

Best to see details.
Post link to summary report.
Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
Precise, Trusty, Vivid, & Utopic all should work now with current ppa
https://help.ubuntu.com/community/Boot-Repair

See link below for more info on UEFI.http://ubuntuforums.org/showthread.php?t=2255520&page=2&p=13182663#post13182663

WHY Debian recognizes Arch with just update-grub ???

How to do that?


But if other installs are UEFI, much better to also have Ubuntu in UEFI boot mode also

oldfred
December 8th, 2014, 12:35 AM
Did you boot Ubuntu in BIOS mode?
How you boot installer is how it installs and in BIOS mode it has to have the bios_grub partition.

UEFI systems give you two ways to boot the installer. Usually one clearly says UEFI and the other just the name/label of flash drive. Like UEFI - Kingston or Kingston.

Best to see details, post link from Boot-Repairs summary report.

This is first link in all the links to more info in my signature.
Shows install with screen shots for both BIOS(purple) & UEFI(grub menu), so you know which you are using.
https://help.ubuntu.com/community/UEFI

fel3
December 8th, 2014, 02:35 PM
Unable to install GRUB in /dev/sda


Executing 'grub-install /dev/sda' FAILED


This is a fatal error

? ? ? ? ? ?

no help?

QIII
December 8th, 2014, 04:00 PM
You have been receiving help. Have you visited and reviewed the link in oldfred's signature?