LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Kernel usages screw up grub config (https://www.linuxquestions.org/questions/ubuntu-63/kernel-usages-screw-up-grub-config-823765/)

FangsOfFreedom 08-03-2010 04:57 AM

Kernel usages screw up grub config
 
Hi guys,
I wanted to share a Linux conversion failure.
I have a sister-in-law, married to an accountant who lives and breathes WinSoftware. I worked hard at convincing her to switch to the simplest Linux available imho, an Ubuntu, latest edition.
She tried it, worked fine, was happy.
Then, Ubuntu started to kernel update.
It destroyed the 'boot on Windows' option I had setup, making it a daily pain for her husband to get on his Windows. I need not insist on the fact that Linux won't ever be back on that computer, because Ubuntu's update scripts can't do something as simple as
check if Windows is the primary boot! This is a basic use case and should be worked on as it is a SIMPLE parsing issue!
That was my 'sharing a failed deployment' moment :)

GrapefruiTgirl 08-03-2010 05:04 AM

Thanks for sharing the story!

Maybe if this is not yet a widely known bug or issue, it would be a good idea to report it on launchpad if it has not yet been?

Cheers!

jschiwal 08-03-2010 12:04 PM

Moved: This thread is more suitable in the Ubuntu forum and has been moved accordingly to help your thread get the exposure it deserves.

tommcd 08-03-2010 12:39 PM

Quote:

Originally Posted by FangsOfFreedom (Post 4053690)
... Then, Ubuntu started to kernel update.
It destroyed the 'boot on Windows' option I had setup, making it a daily pain for her husband to get on his Windows. ...

How did you setup a "boot on Windows option"? This is not the default setup when Ubuntu is installed to dual boot with Windows.
If you did this by editing /boot/grub/grub.cfg file, then that file is auto regenerated whenever there is a kernel update for Ubuntu, and any custom edits you put in there will be lost. This is why that file is not supposed to edited by the user.

The proper way to setup which OS is set to boot as the default is to edit: etc/default/grub file like this:
https://wiki.ubuntu.com/Grub2#grub%2...efault/grub%29
https://help.ubuntu.com/community/Gr...b%20%28file%29
The line to edit there is: GRUB_DEFAULT= to set what OS boots as the default in grub2.
You then have to run:
Code:

sudo update-grub
so that the /boot/grub/grub.cfg file is updated properly.

Hope this helps.

Perhaps there is still time to rescue your sister-in-law from Windows :)


All times are GMT -5. The time now is 02:32 PM.