LinuxQuestions.org
Review your favorite Linux distribution.
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 09-12-2017, 12:41 PM   #16
centguy
Member
 
Registered: Feb 2008
Posts: 442
Blog Entries: 1

Original Poster
Rep: Reputation: 38

aragorn2101: Thanks for the complement.

I now think I understood the important parts of the second post.

I created

Quote:
menuentry "Chainload use grubx64.efi" {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
chainloader /EFI/ubuntu/grubx64.efi
}

in /etc/grub.d/40_custom

and update-grub, reboot, and I can select chainload to the same ORIGINAL Linux Mint 18.2 grub2 bootloader!

That means the same trick can be used to chainload other bootloaders.

Cool.

I think I understand a little bit now.
 
Old 09-12-2017, 03:03 PM   #17
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,669
Blog Entries: 4

Rep: Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019Reputation: 3019
My suggestions:
  1. Do not alter the partitioning on the Windows machine. Don't do anything to the Windows setup.
  2. Use external hard drives for any Linux purposes.
  3. Use a VM monitor such as VirtualBox to run Linux. Or, use the BIOS to boot from the external drive.
  4. When the time comes, remove the Windows drive from the machine and use it for target practice.
 
Old 09-12-2017, 09:34 PM   #18
WFV
Member
 
Registered: Apr 2012
Location: CA
Distribution: Arch
Posts: 116

Rep: Reputation: Disabled
some more good UEFI reading
https://www.happyassassin.net/2014/0...lly-work-then/
 
Old 09-12-2017, 10:14 PM   #19
centguy
Member
 
Registered: Feb 2008
Posts: 442
Blog Entries: 1

Original Poster
Rep: Reputation: 38
sundialsvcs: It seems a waste a 128 GB SSD is occupied by Windows 10 that I hardly use (except my children!)

Let the users mess around with multiboot, fail, and then come to understand the deep theories (or dry articles/advice)
about UEFI principles.

Advice: Practice when the computer is new. When it is being used productively, there is no luxury to fool around.
I have yet to experiment to use grub2 to boot up the vmlinuz/initrd of a clone OS on a /dev/sdaX
that has all my preferred installed stuff.
 
Old 09-13-2017, 03:10 AM   #20
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Rep: Reputation: 16
Some important things to know:

When installing dual boot, in BIOS: Turn off "Secure Boot" feature, save yourself headaches. second, if set to UEFI booting, make certain during LINUX INSTALL to do manual partitioning and have separate EFI partition for boot loader (it's small size) and suggest seperate / and /home and swap partitions. First before installing Linux, have Windows installed and look up fast boot and turn it off, permanently, make sure Windows and Linux run in AHCI mode (drive setting in BIOS) and have AHCI enabled. reboot after turning off fast boot and make sure all updates are done to Windows BEFORE installing LInux.

Then resize using Windows 10 drive manager to make plenty of open unused unpartitioned speace on boot drive or other drive for LINUX setup.

When installing OSs, DO NOT have any other drives connected to computer except drive that is installing OS from and to.

INstall Windows first, turn off fast boot, reboot, make room by shrinking partitions and making unused speace for Linux

Then run Linux install manufally and set root drive partition first / at about 40-80 GB, and /home to most of the rest and swap to an amout double the RAM on a lower RAM system, and finally, for the bootloader, put in on a EFI partition, that should already be there.

Then run install as normal, assure bootloader runs properly during install and you are good to go.
 
1 members found this post helpful.
Old 09-13-2017, 12:39 PM   #21
centguy
Member
 
Registered: Feb 2008
Posts: 442
Blog Entries: 1

Original Poster
Rep: Reputation: 38
Update: CentOS 7 on /dev/sda7 after Linux Mint 18.2

Here are my short notes after I did a quick install of a third OS on
/dev/sda (128 GB SSD). (These notes are intended for those who google the error messages and may be useful for them too)

Before hand: some preparation work.
Use LinuxMint Live Thumbdrive to boot up the computer
and use gparted to create /dev/sda7 so that we know exactly where
to reformat the disk and install CentOS 7. (During installation, it is so easy to miss something important)

Found unetbootin on CentOS 6.1 to create CentOS-7-1611 boot thumbdrive
useless:
Booting process hangs somewhere. Stuck at Reached Target
Basic System. and other Gibberish messages

Googled error messages.

Someone said the same problem. The person
suggested win32diskimage on Windows 10.

Boot to Windows 10, format the useles thumbdrive and create CentOS 7 bootable disk.

Press Delete key during boot up time (for ASUS K20), Enter into system BIOS screen
Under BOOT, make CentOS 7 as top boot (+ to move it up). BTW, realize I can use EFI
functionality to boot to any install system, there is no need to chainload to Windows to
boot Windows using grub2, a new experiece..)


Boot into CentOS 7 live.

Choose to install to hard drive.


Select first disk /dev/sda

I searched for a while where /dev/sda7 is.

/dev/sda7 is hiding under "UNKNOWN".

Make it as '/' as mount point.

I do not care about SWAP.

Try to proceed but stopped by installer.

Must select /dev/sda1 as /boot/efi as a mount point (reason: installer
will install CentOS7 grub2 in /dev/sda1) Good, this only reinforce the understanding of UEFI mechanism.

Click DONE to install.

Installation done.

1 yum install gparted
yum lock!!
google annoying lock..

4 yum remove PackageKit

centos7 forum search for "centos 7, gparted"

5 yum install epel-release
6 yum install gparted
7 gparted

System ready to use.
 
1 members found this post helpful.
Old 09-13-2017, 01:05 PM   #22
centguy
Member
 
Registered: Feb 2008
Posts: 442
Blog Entries: 1

Original Poster
Rep: Reputation: 38
Further update: CentOS 7 grub2 does not understand "linux" and
"initrd" to boot up Linux Mint 18.2 (I think grub.cfg of CentOS simply copies the content of grub.cfg of Linux Mint that has "initrd"to boot Linux Mint).
This time I am not despaired..

Stick in in grub.cfg (well I know I should properly follow the proper procedure of "40_custom" plus update-grub analog)

menuentry "Chainload use grubx64.efi" {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
chainloader /EFI/ubuntu/grubx64.efi
}


so that I can "chainload" to the grub2 of Linux Mint that will understand the original statement in grub.cfg.

Now Linux Mint is successfully booted up.

Okay, I have made some headway
these few days..
 
1 members found this post helpful.
Old 09-13-2017, 09:30 PM   #23
Mill J
Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Several Ubuntu based OS, LFS,Tahrpup, Quirky on Rpi and many others
Posts: 224

Rep: Reputation: 40
Most of the time Linux is very rewarding to mess with
 
1 members found this post helpful.
Old 09-14-2017, 05:17 AM   #24
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 517

Rep: Reputation: 245Reputation: 245Reputation: 245
Quote:
Originally Posted by centguy View Post
... CentOS 7 grub2 does not understand "linux" ...
Yes, grub2 uses different commands. I experienced this when I installed Fedora. I actually multiboot Win10, Slackware and Fedora, all in UEFI mode. Fedora's grub2 can recognize all the other filesystems and generate proper entries in its grub.cfg. But Slackware's grub could not even read Fedora's filesystem; grub-probe complained and printed "Unknown filesystem". Since I use Slackware as my main system, UEFI came handy. I installed both Slackware's and Fedora's grubx64.efi on the EFI partition and I made Slackware's Grub chainload Fedora's grub2.

I actually had a question about this. Anybody out there who understands Red Hat and its filesystem, the Fedora is on ext4 as well, then why does Slackware's Grub not recognize it and generate entries for Fedora?
 
Old 12-05-2017, 12:09 AM   #25
jojolendir
LQ Newbie
 
Registered: Aug 2012
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by WFV View Post
thumbs up for given article, noob friendly for understanding how UEFI BIOS work
 
Old 12-05-2017, 12:15 AM   #26
jojolendir
LQ Newbie
 
Registered: Aug 2012
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by signmeuptoo View Post
Some important things to know:

When installing dual boot, in BIOS: Turn off "Secure Boot" feature, save yourself headaches. second, if set to UEFI booting, make certain during LINUX INSTALL to do manual partitioning and have separate EFI partition for boot loader (it's small size) and suggest seperate / and /home and swap partitions. First before installing Linux, have Windows installed and look up fast boot and turn it off, permanently, make sure Windows and Linux run in AHCI mode (drive setting in BIOS) and have AHCI enabled. reboot after turning off fast boot and make sure all updates are done to Windows BEFORE installing LInux.

Then resize using Windows 10 drive manager to make plenty of open unused unpartitioned speace on boot drive or other drive for LINUX setup.

When installing OSs, DO NOT have any other drives connected to computer except drive that is installing OS from and to.

INstall Windows first, turn off fast boot, reboot, make room by shrinking partitions and making unused speace for Linux

Then run Linux install manufally and set root drive partition first / at about 40-80 GB, and /home to most of the rest and swap to an amout double the RAM on a lower RAM system, and finally, for the bootloader, put in on a EFI partition, that should already be there.

Then run install as normal, assure bootloader runs properly during install and you are good to go.
Yes, i also do this basically install windows first not other OS (linux)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to install linux mint 64 bit with windows 7 unnamed1 Linux - Newbie 8 12-13-2014 01:56 PM
how to install windows within linux mint alertcomputing Linux - Newbie 8 11-23-2012 03:27 AM
How to install windows XP on linux mint? 08CP022 Linux - Newbie 3 05-17-2009 07:00 AM
H.T. install Slackware in a brand new HD with no windows ftonello Slackware - Installation 6 12-31-2003 07:00 AM
Brand New to Linux, intermediate Programmer, want to program for linux destop apps albertrosa Programming 4 12-08-2003 08:49 AM

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

All times are GMT -5. The time now is 03:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration