General :: Changing Grub Boot Order And Make Win7 Default
Aug 13, 2010
I recently upgraded to Ubuntu 10.04 from earlier versions. I have a dual boot system with Windows 7. Grub was set to boot Windows by default Things were working fine. I decided to upgrade to Grub2. It seemed like a good idea at the time. Now when booting up,the name at the top of the Grub menu is 1.98, which is Grub 2. When I run grub-install -v, it comes back grub-install (GNU GRUB 0.97) which is not Grub2. Now when I boot up, Ubuntu 10.04 is the default. I have to manually choose Windows if I want to use that system. I have been unable to change the boot order following instructions from this site. Any Way changing the boot order to make Windows 7 the default. I am using a Toshiba Satellite.
My boot order has automatically changed, before I was booting Windows XP/ Vista as the default OS, now all of the sudden Fedora has become the default OS. So plz help me change the boot order. These are my grub settings at the moment.
# Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg.
I'm working my way through my Linux self-education and I'm hitting a slight road block. After consulting forum posts here and elsewhere, I have tried to alter my grub boot order by editing my menu.lst file found in /boot/grub. I don't seem to be having any luck. Changing the default [value] doesn't seem to work, nor does the savedefault. Below is a copy of my file.
Code: # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/.
default 4 # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default0
## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout10 ## hiddenmenu # Hides the menu by default (press ESC to see the menu) #hiddenmenu
# Pretty colours #color cyan/blue white/blue ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret # examples
# titleWindows 95/98/NT/2000 # root(hd0,0) # makeactive # chainloader+1 # titleLinux # root(hd0,1) # kernel/vmlinuz root=/dev/hda2 ro # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=UUID=18250e14-e47e-4bf9-a927-6456120575f8 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=18250e14-e47e-4bf9-a927-6456120575f8
## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false
## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=0x317 resume=/dev/hda5 # defoptions=vga=0x317 ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## Xen hypervisor options to use with the default Xen boot option # xenhopt=
## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true
## should update-grub adjust the value of the default booted system ## can be true or false # updatedefaultentry=false ## should update-grub add savedefault to the default options ## can be true or false # savedefault=false ## ## End Default Options ## splashimage=18250e14-e47e-4bf9-a927-6456120575f8/boot/grub/splash.xpm.gz
titleBackTrack 4 R2, memtest86+ uuid18250e14-e47e-4bf9-a927-6456120575f8 kernel/boot/memtest86+.bin quiet ### END DEBIAN AUTOMAGIC KERNELS LIST # This is a divider, added to separate the menu items below from the Debian # ones. titleOther operating systems: root
# This entry automatically added by the Debian installer for a non-linux OS # on /dev/sda1 titleWindows Vista/Longhorn (loader) root(hd0,0) savedefault makeactive chainloader+1
I have Ubuntu 9.10 64 Bit, and I also have Windows 7, and I want to make Win7 boot first and without having to manually choose it every time I restart, for my non-linux using family. I have tried the guides where it says you have to edit the "menu.lfg(or whatever it is)" and I don't have that file. I have looked, it's not there, the closest I found was "grub.cfg" and I can't make any sense out of it. I'm not unfamiliar with computers, I'm just relatively new to Ubuntu, and want to make the best out of it I can, I love it. I've tried going into GRUB, and and editing the Win7 Loader, but it doesn't work.
i downloaded backtrack 4 (final) and booted the iso onto a flash drive using unetbootin. i then changed the boot order so the flash drive was first. after i did that i got into backtrack 4 did the install.sh and now i cant boot windows 7. even after changing the boot order to default, i turn my computer on and get a message that says:
Ubuntu 8.10, kernel 22.214.171.124 Ubuntu 8.10, kernel 126.96.36.199 (recovery mode) Ubuntu 8.10, memtest86+ Other operating systems : Memory Test (on /dev/sda1) Ubuntu 8.10, kernel 188.8.131.52 (on dev/sda1) Ubuntu 8.10, kernel 184.108.40.206 (recover mode) (on dev/sda1) Ubuntu 8.10, memtest86+ (on dev/sda1) [Code]....
i can only boot backtrack 4 OS, i really want to know what can i do to be able to boot my windows 7 home premium os.
I am upgrading a system to have encrypted disks, it's a two disk system, so I want the BIOS to look at /dev/hdb first to unlock it, then it should reboot, see that isn't a system disk and try to boot /dev/hda. Then that gets unlocked, and the system boots. After unlocking hdb I get a Grub error 17. I can't edit Grub to look at hda as on normal boot it hasn't been unlocked yet, so it can't see the file system at that point. I reformatted an old XP disk as hdb, and it worked fine, but I'd rather not install windows every time, just to reformat it as ext3. Is there a simple way of clearing the boot sector of hdb?
I dual-boot my machine and I want it to default to boot into windows so that whenever I restart the machine remotely from my home it will be able to get back into Windows (instead of Ubuntu).
The problem is that every time Ubuntu upgrades the kernel, I have to reset the default boot item of grub back to windows. This is because the grub menu loader uses positions i.e. 6 for default OS to boot. And when Ubuntu installs a new kernel it changes that order.
I am looking for a way to configure grub to remember its default boot item under kernel updates.
Possible Duplicate:Make grub keep its default boot under kernel updates.I have just installed Linux with my windows 7 pre-installed and i got it working fine. Since i use windows 7 more than linux, i would like to have "Windows 7" option on the top of "Linux" option.
"When i have turn on my computer, the first thing i see is an Option asking me whether i want to use windows 7 or Linux and there's a countdown timer below it which is 10seconds countdown and if i don't select it on time, it will automatically select the first choice which at the moment i've got Linux pre-set as my first choice."
I installed Windows XP Pro and RedHat Linux Enterprise 5 on my PC for my purpose. The PC is used by other family members too and they need only Windows OS for browsing. It is becoming problem for them to reboot after the PC enters into Linux by default. I am still learning Linux and I want to edit the /boot/grub.conf file to make Windows as default OS to boot. The following is the content of my grub.conf file (FYI):
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?
The grub splash were you choose which os you want to load. Is there a way to change it and make it look like iuno.... lm5/6 or opensuse? Obviously I'd change the image. I just don't want to just change the image. How can I change it to boot windows by default instead?
How can I change default boot order in Ubuntu 10.04 from Ubuntu to Windows7? However, I already checked sudo gedit /etc/default/grub and modify the grub file to be GRUB_DEFAULT=4 and update the grup sudo update-grub I even install graph software to re order the book sudo startupmanager But still after restart the default choose for boot is Ubuntu ...
P.S: I am using Ubuntu 10.04 with grub version 1.98
i have ubuntu 10 and win 7 dual booting on one hdd, all of a sudden grub says error no such partition when i select windows at the boot menu. and i cant get to the win7 partition from ubuntu (to play music and stuff, this used to work, places, mount filesystem, 250 gigs whatever). i've tried the stuff in these links and nothing has worked so farpartition info
sudo fdisk -l /dev/sda Device Boot Start End Blocks Id System /dev/sda1 1 29094 233697523+ 7 HPFS/NTFS /dev/sda2 * 29095 30401 10498477+ 83 Linux
I have Windows 7 and Ubuntu 10.04 dual-booted on my machine. grub was aautomaticlu installed as the primary loader. Soon i want to nuke my ubuntu partition but i know that will delete grub. Can i remove grub or at least make Windows boot loader default.
I just installed Ubuntu 10.04 onto my toshiba C655 iCeleron 900 2.20ghz 1GB RAM. I have win7 and I have a 4GB swap partition. How Do I change the Boot order in Grub? I saw instructions somewhere else to type sudo, etc in the command line and was getting access denies...
I've got a mate that wants to put windows 7 dual boot with osx on his mac book pro. I have talked him into putting Ubuntu on as well I just don't know how and in what order. So what is the best way to do it? Any good websites/tutorials?
I am a linux noob and that is the reason I want to boot my windows xp by default. Now kubuntu boots first. I've googled how to do this but the topics of other people with the same 'problem' were old or maybe incorrect. Because the official GRUB Ubuntu wiki says you should not change the /boot/grub/grub.cfg file manually. The first line on the .cfg file is also a warning: Do not edit this file. So it continued looking for a proper way to change the boot order. Then I found something about etc/grub.d and also etc/default/grub. The problem is I don't understand how to change the boot order using this.
I clone an drive with CentOs 5.3 from a drive connected to ATA0 device 0 of an ATA controller to an identical drive connected to the same ATA contoller ATA1 device 0. No matter what I do it boots from ATA1 device 0 and I need to be able to control which one it is booted from. When I have puppy linux on one drive and CentOs on the other drive I can control the boot thru the system BIOS either way no matter if puppy is in ATA 0 or 1. So its not a BIOS issue. It appears (to me) to be a grub configuration issue. Since the 2 drives are clones they both have VolGroup00. I think grub loads from the last VolGroup00 found.
Here is my grub.conf file: # grub.conf generated by anaconda # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img # boot=/dev/hde default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-128.el5) root (hd0,0) kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-128.el5.img
Here is the Device.map: # this device map was generated by anaconda (hd0) /dev/hde
i am trying to change the boot order on the GRUB menu so that the countdown automatically starts on an older kernel. From what i can see all the solutions on the web want me to edit the /boot/grub/menu.lst file. The problem is that i don't have one. Someone also mentioned that if i don't have a menu.lst file then i should look for the grub.conf file. I don't have on of those either. The closest thing in /boot/grub is grub.cfg but that looks nothing like the descriptions i have heard of /boot/grub/menu.lst file
Is there some workaround by changing grub settings other than rewiring the hard disks or changing in bios.. 1. my bios is getting reset (low battery) 2. my hard disks are sata and ide, so the ide one is loaded as hd1 by default, cudn't find any way to change that..
Just installed Ubuntu 10.4 on a computer that normally runs XP Pro. I used a separate drive and unplugged the windows drive while installing Ubuntu (error number one right?). Ubuntu installed perfectly, plugged in windows drive, Windows boots perfectly. My only problem is that I don't have the boot list option unless I go into the BIOS and change default boot drive every time I want to switch OS.After a bit of research I configured GRUB to allow me to dual boot (Windows did not appear at first), but it boots directly into Ubuntu (fine for me, but my mother uses XP for work) instead of Windows. Unfortunately I have some sort of keyboard issue that makes the arrow keys inoperable until the machine has once booted into an OS.
I may be in the wrong section here (hardware) but I do believe this is a hardware issue. If indeed it is not, I welcome any admins to move this post to the correct section. That said, here's the issue:After years of frustration and problems with Windows XP, my parents finally asked me to install a Linux distro onto their machine. Taking their needs and lack of experience outside Windows in mind, I suggested Ubuntu and Linux Mint to them (as I do to pretty much anyone who wants an easy and beginner-friendly distro). Running first Mint's live session and then Ubuntu's on my own machine to give them an idea of how their new desktop would look, they picked Ubuntu and I grabbed the disk, my external hard drive, and proceeded to back up all their pics, music, docs, etc onto the external.
Once finished, I popped Ubuntu (10.04 LTS) into their machine for a reboot. Realizing when the Windows XP logo came up that the boot order is set to boot from the hard drive first, I went into BIOS and changed the boot order to check the appropriate DVD drive first (they have two DVD drives, both can and have burned onto DVDs without issue), and then the hard drive. Saving my changes and exiting, I did another reboot.I got as far as the splash screen where the dots under the Ubuntu logo lit up as normal, and then after a bit of a wait on my part, suddenly exits to a screen with a prompt telling me a boot device could not be found. Trying again with Linux Mint proved similar.Next I tried simply letting it boot into Windows as normal where I could then use Wubi to install Ubuntu beside Windows but again, the screen got as far as the Windows logo with the blue "loading bar" underneath and then would simply reboot. Having to focus my attention elsewhere for a couple minutes I found out upon return that the system was stuck in an endless loop of rebooting, asking to select between a safe mode, normal boot and last known configuration for Windows, then to the logo and starting over again.I went back into the BIOS and returned the settings to booting from the hard drive first as before (nothing else had been changed), and attempted another reboot. Same loop.I had made a boot "stick" for Ubuntu some time ago, and I've used it once when installing Ubuntu on a friend's laptop which had a broken CD drive. After it wouldn't boot from the USB device I looked in BIOS and selected "look for other devices to boot from" as there was not option to boot from USB in the standard option list (just hard drive, DC/DVD, and disabled). Still no luck.
Calling up my self-proclaimed computer expert uncle, he assured me that returning the BIOS to its default settings would allow it to boot normally back into Windows, probably after performing a disk check.Taking his advice I returned the BIOS to its default settings and reboot. No change, same loop! Frustrated I called him up again, and he said he'd have a look at it when he next gets a chance. heh. That may not be for a while as he is known for taking on projects he can't (or won't) finish.Anyway, tired and now uncertain, I thought perhaps it's something to do with a live disk. I tried an openSUSE installation disk and ended up with "please insert disk 1 into drive" prompt after selecting "install" from the first menu on the disk.
I have been an MCSA for the last 20 years, but recently I have been very impressed indeed with Ubuntu 11.04, having dabbled with and then discarded Susi Linux some five years ago. My problem may be summarised as outlined below: Using the downloadable ISO I installed Ubuntu 11.04 as a dual boot on a Win7 100GB HDD on my Lenovo T61 laptop. No problem they both rock and I'm very impressed. During the installation procedure I selected the largest partition sizes available from the Ubuntu installer wizard being 25GB Extended split into 18GB Ext4, and 3.2GB and 3.2 GB swaps (I couldn't suss out any way of manually increasing them any further).
I found that the 11.04 Startup Manager application didn't work at all, so I downloaded and installed Grub Customizer 2.1..and that did work after a fashion.. certainly enough to actually effect changes in the grub configuration settings. Everything worked so well on the 100GB HDD that I decided to transpose the entire disk image to a new 500GB WD Scorpio and make the dual boot my main working disk. Using Acronis I imaged off the 100GB installation selecting the partition by partition, and retain disk signature options. I then recovered the image to the new 500GB HDD and everything works beautifully on the new HDD.
Except of course all the partitions are still the same size. I won't waste your reading time recounting everything that I have done using Acronis Disk Director (V Good) and Gparted (not so good), but needless to say whatever I do Grub won't have it, and I have lost count of the times that I have re-recovered the good image. Basically I want to increase the partion sizes to apportion larger partitions to both Win 7 and 11.04 and obviously I'm missing something somewhere.
Fdisk -l -u produces.. Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x9f011ed1 .....
I am currently running Windows 7. I want to install the latest ubuntu (which I know I can just install right on top of &) but I also want to install FreeBSD and either Windows Server 2003 (maybe 2008 if i can get my hands on it). What would be the best way to go about installing these 3 OSes next to W7? I was also thinking about just upgrading my hard drive to a 2TB internal anyways, so waiting to get that is also an option, then installing everything in the "best" order. I also want to try installing Mac sometime too once I upgrade hardware.