LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2018, 09:40 AM   #1
Dynosaw3
Member
 
Registered: Feb 2016
Posts: 48

Rep: Reputation: Disabled
Installation Debian 9 on UEFI/Legacy Desktop for dual boot


Dear people,
Current op-sys on my house desktop is Debian 8.6 (Jessie) which boots
from a dual personality UEFI/Legacy BIOS set to Legacy mode. I want to
install Debian 9.3 on a separate 'primary' hardisk. The Debian 8.6 will
be relegated to s separate secondary harddisk. I still want to
optionally boot Debian 8.6 via grub. My question concerns the
installation of Debian 9 and the setup of the grub boot loader.

1. I understand that Debian 9 can be installed under UEFI and will
seek out the presence of a UEFI BIOS; but can I force the
installation in Legacy mode anyway? If so, how? (Dinosaurs are too
old for unwelcome surprises)
2. My version of Debian 8.6 probably won't boot up via a UEFI BIOS.
If one is forced to use UEFI how should I arrange grub for a dual
boot?
Or is it a lost cause?

Thanks in advance to anyone who can help.
Dynosaw
 
Old 01-04-2018, 04:06 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Generally one is forced to use uefi on systems that won't allow legacy/csm. Or on systems that don't provide hardware in legacy.

If your system allows legacy then you can easily install Debian 9 that way. I can't remember if older versions support uefi but I think they did in 8. See Debian web site.
I suspect you'd have to create uefi boot/install media.

Never a quick way to boot from one to the other. Always have to go to bios and switch back and forth. Some bio's require two switches to get video and legacy back from ueif.
 
Old 01-04-2018, 05:09 PM   #3
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
If you have Debian 8.6 installed on a separate hard drive with it's Grub boot code in the MBR of that drive, you can select that drive on boot regardless of what is on the second drive. On my system with several UEFI Linux installs on the internal drive, I can boot another Linux system on an external drive of an MBR install on that drive from the Grub menu of one of the internal installs with Grub. If you are unable to install in Legacy mode, run grub-mkconfig (or update-grub if Debian uses it?) from the new install once finished and re-booted.
 
Old 01-04-2018, 05:35 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by jefro View Post
I suspect you'd have to create uefi boot/install media.
You get the the uefi during bootup/installing it. The installer is universal during boot for my machines I had to use boot option key F12 and choose the EFI (Installer USB) boot option to boot from though even this is not enough to end up with it installed that way if you do not choose manual partitioning of the disk in the machine and create an efi reserved partition for the proper place to put the boot files you end up with legacy mode installed at the end of the process. To get to manually partition you need to have chosen on the expert modes at the start of the install process I think this part is true been so long since I have done any other type not sure if they offer the manual now. This was with version 8 to answer the OPs 1. set the BIOS to EFI only during install choose the installer as an efi boot option in that menu for your board then make sure to have created and assigned for efi booting an efi partition in the manual partitioning option. For number 2. I am thinking having assigned the disk containing the new 9 install as the primary drive to boot from it grub booting in efi mode will just boot the old 8 install after all it is not like they are any different versions of programs one compiled for efi ones not that are installed. The efi booting is dependant on only one that is such a beast the grub-efi package installed into the efi partition on the disk with the BIOS set to boot EFI mode. You get that installed when you have created assigned the EFI reserved boot partition during install.

Took to long yancek seems to have beat me to some of it as I see in a preview.
 
Old 01-12-2018, 02:36 AM   #5
Dynosaw3
Member
 
Registered: Feb 2016
Posts: 48

Original Poster
Rep: Reputation: Disabled
Dear People,
Thank you for your help, which is much appreciated.
My delay in replying is due to intervening social
obligations which kept me away from home.
I can now say that I have sucessfully installed
Debian 9 (Stretch) on sda under the "Legacy" feature
of the dual personality BIOS and update-grub found
the previous op-sys Debian 8 (Jessie) which had been
relegated to sdb. It all went smoothly except for one
minor point, and I will set this down here, in case
others may find it useful.

The mother board of my stand-alone desk-top PC is an
Asus AX88M-A (2016 vintage). On boot up form a Debian
live DVD with the BIOS in legacy mode the monitor showed
a warning message:
"System found unauthorised changes on the firmaware,
operating system, or UEFI drivers. Press [N] to run
next boot."
This message seemed to be superfluous in this case; I
pressed the N-key and the basic installation went ahead
without any further problems.

I can consider this action closed.
Again thanks to all who replied for your help and advice.

Dynosaw.
 
  


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] Dual boot without windows - Windows 10 UEFI dual boot with Metamorphose Panther(Debian/KDE) mithidieri Linux - Newbie 7 11-03-2017 12:10 AM
Dual Booting Problem with UEFI disabled, Legacy enabled LasVegasUser Linux - Newbie 11 05-28-2017 09:32 PM
[SOLVED] UEFI vs debian - cannot boot into grub after installation iwtbf Linux - Newbie 2 05-20-2015 05:20 AM
LXer: Dual-boot Windows 7, Linux Mint Debian Edition 2 on a PC with UEFI firmware LXer Syndicated Linux News 0 04-13-2015 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 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