Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having trouble Dual booting Windows 10 and CentOS 7 on a UEFI machine: /boot/efi/EFI/centos/grub.cfg. I get two errors.
1. error: not an assignment
2. error: Invalid EFI file path.
I don't' know if this has to do with my installation itself of CentOS 7 or my partition scheme. My Windows 10 partition is /dev/sda4. I have edited my /etc/grub.d/40_custom file as follows:
menuentry "WIndows 10" {
set root = (hd0,4)
}
Then I ran grub2-mkcofnig -o /boot/efi/EFI/centos/grub.cfg
I have Centos7 dual-booting with Windows 10 in secure boot mode on a Dell machine. I didn't have to edit or mess with any config files. The installation steps I used:
* Log in to windows, use disk management to shrink the existing ntfs windows partition, leaving the new free space unallocated.
* Boot the centos usb installation media in UEFI mode.
* Install centos7
* Reboot and choose centos from the grub menu (or windows, both choices are present).
The only problem I have is I have to sit and watch windows updates so I can catch the reboots and choose to boot windows instead of the default centos. But if you miss an auto reboot, next time you boot into windows the updates will complete.
The only problem I have is I have to sit and watch windows updates so I can catch the reboots and choose to boot windows instead of the default centos. But if you miss an auto reboot, next time you boot into windows the updates will complete.
Just set the GRUB_DEFAULT to 'saved' and include the GRUB_SAVEDFAULT option in each of the boot sections. The machine will default to the last OS you ran.
Just set the GRUB_DEFAULT to 'saved' and include the GRUB_SAVEDFAULT option in each of the boot sections. The machine will default to the last OS you ran.
Thanks
I am aware of this, but for myself I don't want to change the default OS, after a power outage or whatever I want CentOS to be running on the machine. Tweaking the default startup is surely an option, but I know there would be the one time I forgot to change back to centos, I'd be out of my office, the juice would go out and none of my centos services would be available until I got back home. Of course, not dual-booting would also work, but the W10 came with the computer, I occasionally use it, and don't want to just erase W10.
I am aware of this, but for myself I don't want to change the default OS, after a power outage or whatever I want CentOS to be running on the machine. Tweaking the default startup is surely an option, but I know there would be the one time I forgot to change back to centos, I'd be out of my office, the juice would go out and none of my centos services would be available until I got back home.
If CentOS had been running when the power went out, then that's what was last booted and what the default would have been set to, so that's what would come back up when the power came back on. Were you somehow planning on leaving Windows running, but expecting CentOS to come up should there happen to be a power interruption???
Were you somehow planning on leaving Windows running, but expecting CentOS to come up should there happen to be a power interruption???
That's exactly what I need, and that's why I use grub2-set-default to manually set the grub default boot on my systems. Unlike many here at these, I use and like using windows as well as linux, and I do have windows running on the computer fairly often. And yes, I want the system to always reboot into centos unless I manually choose a different boot option, which is why I baby-sit windows updates to complete them.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,356
Rep:
Quote:
Originally Posted by Doug G
That's exactly what I need, and that's why I use grub2-set-default to manually set the grub default boot on my systems. Unlike many here at these, I use and like using windows as well as linux, and I do have windows running on the computer fairly often. And yes, I want the system to always reboot into centos unless I manually choose a different boot option, which is why I baby-sit windows updates to complete them.
While I use another linux distro, I also dual boot Win 10 and have set all of my computers up to boot linux by default. Not sure what your difficulty is : just set up GRUB to boot CentOS as default, as opposed to the last-booted system.
Apologies in advance if I've missed your point ...
EDIT: ... OK ... sorry - I just read back and realized that Doug_G is not the OP and is not actually asking a question ... My bad ... Now WHERE is that coffee that I obviously so desperately need .... ;-)
Hi All,
I can't boot into Windows 10 at all. I already have my partition scheme set as Windows 10 /dev/sda4.
insmod part_gpt what is this part_gpt for insmod?
insmod fat Is there an ntfs for insmod?
set root='hd0,gpt1'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi I also don't have a Microsoft efi file to add to the chainloader argument.
Please forgive me for saying so but this doesn't seem like it's Centos 7 specific. Please explain
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.