Ubuntu :: Grub Default Miscalculation In 11.04?
May 5, 2011
I notice that 11.04 Natty has changed the grub boot menu such that older kernels are stored in a submenu under an older kernels menu item. This seems to cause either grub or startupmanager to miscalculate which is the default. For example I have just two linux kernels plus a windows OS. Setting windows to be the default via the startupmanager sets
Code:
GRUB_DEFAULT=6
in /etc/default/grub.
This ends up /boot/grub/grub.cfg as a line that reads:
Code:
set default="6"
When I reboot I find the GRUB is defaulting to the first menu item. If I manually edit the line in /etc/default/grub to read
Code:
GRUB_DEFAULT=5
and then
Code:
sudo grub-update
Then grub boots with the last entry (windows) as the default.So it looks like grub doesn't count items in sub menus whereas startupmanager does so sets a wrong value. Not sure if it is grub or startup manager that is in the wrong here.
View 4 Replies
ADVERTISEMENT
May 29, 2010
I have already had Vista installed on another drive and from what i've read on the webs you get to dualboot if you install ubuntu after vista. when i did install it (i installed on a blank hdd with no partitions, choosing the "erase entire disk" option since for some reason default option was attempting to eat a part of my windows 1 gb drive instead of using disk i specially made for it) and the grub 2 loaded for the first time, there was NO option to run vista. only 2 linux (normal and recovery) and 2 memtests. I've ran linux and went to google this. I found that i should add something to some config files in /etc/grub.d/From reading the readme file i understood i could add my own files that are named like NUMBER_SOMENAME and insert code into them. Because it said:Quote: For example, you can add an entry to boot another OS as01_otheros, 11_otheros, etc, depending on the position you want it to occupy inthe menu; and then adjust the default setting via /etc/default/grub. But then i found a file 40_custom that said:
Code:
#!/bin/sh
exec tail -n +3 $0
[code]....
View 9 Replies
View Related
Apr 13, 2011
I'm currently setting up a dell server with hardware raid 1 on sas 6r. i got 4 sas installed on the server and configured to raid 1 as stated below,
array 1:
slot 0 & 1
array 2:
slot 2 & 3
during the installation, the installer detect the array 2 as sda and array 1 as sdb.. so i proceed with installation on array 2. after completed the installation, the first reboot lead me to a 'grub-rescue" prompt. by following the guide at url Mode, i've noticed that the boot folder has changed to (hd1,1), which i believe it has changed to sdb1. default root device shows that prefix=(hd0,1)/grub.
View 3 Replies
View Related
Nov 12, 2010
I've been trying change the default OS in GRUB. I changed the value for GRUB_DEFAULT in etc/default/grub. However, when I run update-grub, I get the following error:
/etc/default/grub: 19: e: not found
View 7 Replies
View Related
May 30, 2010
I'm trying to fix my booting problems on 10.04 by following this guide. Except the grub file is not in /etc/default. Grub is definitely installed (0.97 legacy) and the computer boots ok-ish so it must be somewhere.
View 2 Replies
View Related
Jul 19, 2010
How do I change the default operating system in Grub? I'm running Ubuntu and Windows 7.
View 3 Replies
View Related
Jan 21, 2010
I want to make XP default and get that count down thing so while the countdown I can switch to ubuntu.
View 1 Replies
View Related
Feb 7, 2010
I recently installed Karmic, and want to change the default Grub entry to Windows XP. Having done some research and tried things out, I am a bit confused. I have edited etc/default/grub so that it has GRUB_DEFAULT=6 (to correspond to my XP installation) and GRUB_TIMEOUT="3", but after running sudo grub-mkconfig the grub.cfg file still says set default="0".
View 9 Replies
View Related
Feb 22, 2010
I just installed kubuntu 910 via cd iso. now i want to change the default grub timeout. It says i dont have permission to edit etc / default /grub so what do i do? i dont know how to login as root user.
View 7 Replies
View Related
May 17, 2010
I've seen previous threads about this, but they're rather old and I can't seem to apply their solution to the latest (10.04) stable release of Ubuntu.
What's the "best" way of changing the default option in the bootloader? I'd rather set it to "Windows 7" for the time being as it's what I use at work.
View 2 Replies
View Related
Jun 28, 2010
I'm trying to configure GRUB to boot XP preferentially- my wife insists. Having looked up the GRUB manual I see that I can set this using the default command.
The problem is, when I go to my grub command line default is not a recognized command. If I hit TAB for a list of commands, it isn't there.
I think I'm using some 0.9x version of GRUB, since the partitions etc seem to be numbered starting at 0, not 1.
While I'm at it, I was just going to play around and figure this out, but: the menu interface lists five versions of Ubuntu (all those weird kernel variations) then XP. So would XP be default 1 or default 5?
View 3 Replies
View Related
Jul 21, 2010
I have Lucid on my laptop. Unfortunately, with the various 2.6.32 kernels neither hibernate nor suspend work, so I've installed and use the last 2.6.31 kernel that came with Karmic.Now, I'd like to set it as default, so that I don't need to actively choose it when I boot. The problem is that I can't find a way to set Grub (version 2.0, or 1.96rc, can't remember) to pick the 2.6.31 kernel and if I try to uninstall the 2.6.32-23 kernel synaptic says that linux-generic and linux-headers will also be uninstalled (not just the parts specific to 2.6.32-23).
View 2 Replies
View Related
Oct 22, 2010
I've been using 10.04 for a few months without any problems, but today, I tried to boot into Ubuntu and just got a black screen. I tried the tutorial on this site, and it worked.
I have to do this after every reboot unless I edit the /etc/default/grub file (the second part of the tutorial). I'm not sure how to go about doing this since the article is very vague.
View 3 Replies
View Related
Jan 27, 2011
I Just updated my 10.04 LTS system, which dual boots Windows XP. Prior to the update the default was to boot to XP, now it is to Memtest.
I tried to edit /etc/default/ grub and make the default be 14 instead of 12, which would be XP, but Ubuntu, (using gedit), refused to accept my change.
I don't have a problem scrolling around to pick XP, or the latest Linux kernel to boot, but my wife sure does. How can I make Ubuntu/Grub default to to XP ?
View 2 Replies
View Related
Apr 30, 2011
I upgraded my wife's dual boot netbook (Ubuntu/Win7) from 10.10 to 11.4. Windows was set as the default OS in Grub v 1.98 via startupmanager in 10.10 and that's the way I want it to be again. After the 11.4 upgrade, Ubuntu 11.4 is set to defualt and even though I changed the default in startupmanager it always defaults to Ubuntu on boot. It's interesting to note that when I go back in to startupmanager to see what's up after reboot, it still has Win 7 selected.
Also, the choices in startupmanager look a little different from what shows up in grub. Grub shows just the latest version of ubuntu (and recovery mode), the memtest stuff, windows, and "previous versions of ubuntu" while startupmanger just lists all three ubuntu version w/recovery options, memtest stuff, and Win 7. If I do sudo update-grub in terminal, it lists the available options just like startupmanager does.
Bottom line, Win 7 will boot if manually selected, but I can't set it to default, and this is my wife's netbook so she wants it put back I just remembered and I don't know if it would matter or not. I did the original Ubuntu install first, then win 7. I used a windows program called easyBCD to get back the ability to choose which OS on startup. When I upgraded 10.10 to 11.4, Grub is back in charge. If I manually select Win7 to boot in grub, that easyBCD selection menu will pop up for a sec,offereing windows or ubuntu.Could this be confusing startupmanager and not letting my changes take effect?
View 1 Replies
View Related
Feb 7, 2010
I was wondering how I can make Windows XP the first and default option on my Grub 2. I use Ubuntu 9.10 through a semi-dedicated partition on my second hard drive, if that helps. I use Grub 2 just cause I have a grub.cfg file, and here it is.
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
[Code].....
View 4 Replies
View Related
Feb 11, 2010
Althought /etc/default/grub has GRUB_DEFAULT=6, after grub-update nothing changes and the default menu entry is still the first. Can someone tell me how to change the Grub default menu entry?
View 6 Replies
View Related
Feb 26, 2010
I loaded Kubuntu 9.1 and got a mess in the Grub 2 Boot Menu, which I can't correct.
I get extra choices in the Boot menu, and the first few, which are supposedly for Kubuntu Karmic Koala all put me in a shell, which ends in a black screen, then shows up a shell once I hit "enter". Then I just have a "intramfs" (?) prompt.
So I went into Grub2 to change it, and it refuses to do it. All I get is a screen full of error messages every time I try, with no change. Apparently it is looking to access drive sdb8, which is non-existent. I DO have a drive sda8, though.
So with all the wonderfulness of the indirect system to change Grub 2 how am I supposed to set it right? The old Grub worked fine, and just took simple changes to the menu.lst file.
Can't somebody write a program that lets Grub 2 be changed from within the program, rather than all this running around trying to find what file to change, and how to get the change to work?
Just to be clear, here are the errors as they show up when grub-update is flailing around:
"error: cannot open '/dev/sdb' while attempting to get disk size
error: cannot open '/dev/sdb' while attempting to get disk size
Generating grub.cfg
error: cannot open '/dev/sdb' while attempting to get disk size
[Code].....
View 9 Replies
View Related
Apr 26, 2010
I have just installed Ubuntu 9.10 on a laptop previously running 8.10
I am unable to change the default OS in Grub from Ubuntu 9.10 as I cannot find /boot/grub/menu.lst.
How do you change the default OS in this newer version of Grub.
View 9 Replies
View Related
May 25, 2010
I'm extreemly new to Ubuntu and installed 10.04 onto a partition this morning. When I boot up my PC a menu called GRUB comes up and the list of OS's has ubuntu 1st. If I dont change my selection to vista it automatically boots into ubuntu. How can I change the order or default booting OS? I have seen other people talk about it but I'm not sure if it's up to date.
View 2 Replies
View Related
Sep 9, 2010
I want to remove the default boot time from grub, I created /boot/grub/menu.lst, but I'm unsure what I can put in here to remove the countdown.
View 9 Replies
View Related
Dec 11, 2010
I just updated to 10.04 LTS & I would like to edit my grub menu to get rid of the unneeded entries.
When I enter /etc/default/grub into terminal It gives me bash: /etc/default/grub: Permission denied.
From what I have read I just need to put # in front of what I don't want to see in the menu, but I'm unable to access the file to make the changes.
I would also like to make a backup of the file first before editing it.
View 9 Replies
View Related
Jan 5, 2011
I have got ubuntu netbook edition installed alongside windows xp and after some custimising i can now only chose the ubuntu option and no others. Can i set settings back to default settings?and how? I guess it would be via terminal commands
View 9 Replies
View Related
Mar 4, 2011
I am dual booting Windows and Ubuntu 10.10. I installed StartUp-Manager so that I could easily make Windows my default OS upon Startup.I did a sudo apt-get update / sudo apt-get upgrade and now I have a new kernel. This moved Windows down in the list, so now MemTest86 is the default OS upon Startup.I want to make Windows the default always, not just until the next Kernel upgrade comes through.
View 3 Replies
View Related
May 2, 2011
I think my Natty 64 bit install is missing a dependency for gk, even though it shows up install in Synaptic. I have also tried using Start up Manager and the changes I make there don't show up after restarting either. I just want to change the default boot to number 4, Windows. Any suggestions are welcome, but I have tried all the ones I've found on this forum so far and none have worked, including editing etc/grub/default and saving with sudo update-grub. That's when I get a "gk not found" error.
View 2 Replies
View Related
Jun 10, 2011
Due to a motherboard issue, I need to edit a parameter in the "etc/default/grub" file.
However, the problem is, that file doesn't exist.
Grub does seem to be installed, I can get into grub from the command line etc.
This is a fresh install of Ubuntu Server - 10.04.2 LTS
Brand new box, no previous installs of anything, no other operating systems etc.
Is there somewhere else that file could reside ? I tried find -name '*grub*' and got plenty of files, but none are the one that I need.
Is there someway to generate this file ?
I remember when installing from the CD it asking about grub, but I don't recall which option I chose, it was whichever one was the default.
This thing won't reboot right after power loss etc until I can edit that value... which at the moment seems to not exist....
Btw, I'm not a total linux noob but far from an expert, so I may need any answers "dumbed down" a bit.
EDIT (more info):
It seems that I have regular "grub" and not "grub2" installed... I'm assuming that is part of the problem ?
My version: grub-install (GNU GRUB 0.97)
Does this version of grub allow you to edit options etc ?
Specifically, what I need to do, is edit this value: GRUB_CMDLINE_LINUX_DEFAULT
I need to add "reboot=a" to this line.
View 1 Replies
View Related
Jul 2, 2011
I am currently doing a tri-boot (using refit) with Linux, Windows, and OS X. I was wondering if it was possible to change up the boot loader for Linux. I basically wanted grub to not pop-up and just boot the default version of Ubuntu. Also the boot loader comes up with the options to boot Windows and OS X and I was wondering if it would be possible to remove those from the list as well?
View 4 Replies
View Related
Jul 2, 2011
i always had windows as default in my grub (this is my desktop pc, mostly for gaming, i use windows here for about 98% of the time linux is just for working)i lastly upgrades to 11.04 (bad idea never change a running system)and now my grub starts linux as default and i dont know why.i started startupmanager and set windows as default no change i clicked myself into the /boot/grub/grub.cfg and opened it as su - it looks like everything is right here too but i could think of something, i need to change there.
View 3 Replies
View Related
Oct 2, 2010
A recent kernel upgrade broke nvidia and the network card. I figured out how to get the grub boot menu, but am having trouble figuring out how to set the default kernel to boot. I believe there used to be a file called /boot/grub/menu.lst that one could edit, but it doesn't appear to exist now.
View 2 Replies
View Related
May 25, 2011
I'm somewhat of a n00b. I have a dual boot machine running XP and Fedora Core 14. I like my default boot always to be XP. Right now, XP is default BUT every time there is an update to Fedora, it will change the default to Fedora. I now have to edit grub.conf to boot from xp again. Is there a way to make xp always as the default even after an update?
View 2 Replies
View Related