LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-22-2016, 11:05 PM   #1
hewasalone
LQ Newbie
 
Registered: Aug 2016
Location: Texan.
Distribution: Debian :D
Posts: 4

Rep: Reputation: Disabled
Talking how do i compile from scratch Grub2 on Debian 64 bit and install it ? i have 1024MB EFI FAT32


how do i compile from scratch Grub2 on Debian 64 bit and install it ? I'm very insistant on not using multiarch on my Debian 64-bit system. i can upgrade to testing as long as i can compile Grub2 from scratch and use nothing but 64 bit Debian. i have 1024MB EFI FAT32 parition on my drive in case Grub needs it, i've seen a linux distro use it before.

I boot from usb or DVD that is not EFI boot on bios. sometimes i think grub2 does not care or not about that fact. i'm on Legacy OS not Windows 7 UEFI selector on bios, and still want to compile grub from scratch no questions asked.

Last edited by hewasalone; 08-22-2016 at 11:13 PM. Reason: needed clarity
 
Old 08-23-2016, 12:47 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
This should give you a start though I have to admit I don't know whether it will ask for 32 bit packages or not and find your refusal to install them odd to say the least.
 
Old 08-23-2016, 01:25 AM   #3
hewasalone
LQ Newbie
 
Registered: Aug 2016
Location: Texan.
Distribution: Debian :D
Posts: 4

Original Poster
Rep: Reputation: Disabled
Wink because it is so important i accept

theoretically do you think you or someone else could tell me how to compile grub2 on multiarch Debian with a listing of all needed packages ? i have never successfully compiled it before. i would like me to be a success for compiling grub2 on Debian from source.

thank you
 
Old 08-23-2016, 01:30 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I linked to a page showing how to compile any software on Debian using source code from their repositories to produce a .deb package which ought to make things easier the first time. However, this will create a virtually identical package to the one already in Debian so unless you expand upon exactly what you need it's difficult or anyone to help.
 
Old 08-23-2016, 07:16 AM   #5
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,254

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by hewasalone View Post
i can upgrade to testing as long as i can compile Grub2 from scratch
Why? What for ?

Quote:
Originally Posted by hewasalone View Post
I boot from usb or DVD that is not EFI boot on bios.
EFI is a BIOS replacement, so "EFI boot on BIOS" does not make sense.

Quote:
Originally Posted by hewasalone View Post
sometimes i think grub2 does not care or not about that fact.
GRUB does not take part in booting your DVD/USB. So it definitely doesn't care.


.
 
Old 08-25-2016, 05:03 AM   #6
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by hewasalone View Post
i have never successfully compiled it before.
I cloned the GRUB2 git repository, and compiled it without much trouble. I didn't create a Debian software package, because I wanted to set up my GRUB copy as my primary boot loader (under Legacy BIOS), independently of any Operating System installed on my computer.

From the primary boot loader, I can select any installed Operating System (i.e., Linux distribution, in my case), and chainload the boot loader that was set up by said Operating System. (I let each Linux distribution install its own boot loader to the boot sector of its root partition, instead of the Master Boot Record of the boot disk.)

Anyway, compiling GRUB2 from the git clone works fine for me under Debian. It failed, however, under Slackware 14.1, apparantly because of incomplete Unicode support, or some such. This issue was resolved with Slackware 14.2.
 
  


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
[SOLVED] Where To Find a Debian Install (CDROM Iso-Hybrid Debian-Install) with EFI partition ? Xeratul Debian 14 08-09-2015 07:28 AM
Revert grub2-efi to grub2-bios Atmchicago Fedora 1 03-24-2014 01:24 AM
Tip. Want to install 64-current through VirtualBox with EFI ? Use a 64 bit host. Didier Spaier Slackware 1 05-31-2013 01:27 AM
Grub2 + EFI from scratch cooperthehuman Linux - General 1 10-07-2012 04:37 AM

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

All times are GMT -5. The time now is 04:56 AM.

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