Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 installed Centos 6.8 as main OS to /dev/sda2 LVM
After that I installed Windows 10 to /dev/sda3 NTFS
Then I boot via live CD and fix grub and flag boot as /dev/sda1 back.
but what is happenin now is when I boot in Windows I cant boot in Centos again, so I boot in Livecd and checked that the boot flag is on /dev/sda3 again, I change back to /dev/sda1, but every time that I need to use windows this happens, theres any way to avoid that?thanks
It sounds as though you installed GRUB in your Linux partition (sda1) instead of in the MBR (sda). From your live CD, just install GRUB in the MBR:
Code:
root (hd0,0)
setup (hd0)
Now you will always start out in GRUB. I suggest commenting out the "hiddenmenu" line in your GRUB configuration so that the menu will always be displayed and allow you to select which OS you want to boot. FYI, here are some lines from the grub.conf on my laptop, which boots CentOS, Windows 7, and Windows 10 (your partition numbers will be different):
Code:
default=saved
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
#hiddenmenu
title Microsoft Windows 7
unhide (hd0,0)
hide (hd0,3)
rootnoverify (hd0,0)
chainloader +1
savedefault
title Microsoft Windows 10
unhide (hd0,3)
hide (hd0,0)
rootnoverify (hd0,3)
chainloader +1
savedefault
title CentOS (2.6.32-642.3.1.el6.x86_64)
unhide (hd0,0)
unhide (hd0,3)
root (hd0,5)
kernel /vmlinuz-2.6.32-642.3.1.el6.x86_64 ro root=/dev/mapper/luks-c58c3509-cec8-4f61-b2c5-a325fa65e416 crashkernel=auto rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LUKS_UUID=luks-c58c3509-cec8-4f61-b2c5-a325fa65e416 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-642.3.1.el6.x86_64.img
Because I have two different Windows installations, I always keep the other one hidden from the one I am booting. Setting the boot default to the Windows version being booted allows Windows to reboot unattended when it insists on rebooting itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.