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 - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-05-2016, 12:04 PM   #1
brunomoss
LQ Newbie
 
Registered: Nov 2009
Posts: 18

Rep: Reputation: 0
boot flag auto changing from partitions.


Dear Forum..

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
 
Old 08-05-2016, 12:18 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Linux plays well with Windows but not vice-versa. It is always recommended to do you primary install of Windows first then do your Linux install.
 
Old 08-05-2016, 12:28 PM   #3
brunomoss
LQ Newbie
 
Registered: Nov 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Allright, thanks, so theres no way to fix that unless I install everything again?
 
Old 08-05-2016, 05:09 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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.
 
1 members found this post helpful.
Old 08-07-2016, 09:29 AM   #5
brunomoss
LQ Newbie
 
Registered: Nov 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks man.. I really installed that in /dev/sda1 instead of /dev/sda.
Now is working fine.
Thanks a lot...
 
  


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
Protective master boot record boot flag (pmbr_boot) with BIOS Beaverfriend Linux - General 0 02-19-2014 04:44 PM
[SOLVED] Re-partitioning: regarding UUID, bootable flag and changing mountpoint Soderlund Linux - General 10 10-07-2012 05:04 PM
apt/aptitude package management "auto" flag cjmueller Debian 2 10-16-2011 10:52 PM
[SOLVED] Boot Bodhi 1.2.0 Live CD without auto mounting hd partitions RHTopics Bodhi 3 09-12-2011 11:55 AM
Reconfiguring partitions, changing /boot location Gordon Airporte Linux - General 2 06-01-2004 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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