Problem changing os boot order

  • Thread starter Michael Surgeon
  • Start date
M

Michael Surgeon

Guest
I am very new to Linux. I recently installed Elementary OS along side of Win7. No problem with install and liking Elementary.
I wanted Win7 to be the default startup OS and found this link http://howto.cnet.com/8301-11310_39...hange-the-boot-order-of-a-dual-boot-linux-pc/ explaining how to change the boot order using the using the command line method. I ran "sudo vi /etc/default/grub" . The problem was that I couldn't change the boot number in the terminal.
I'm not sure what happened when I quit the terminal, but now when I run "sudo vi /etc/default/grub" I get the following

E325: ATTENTION
Found a swap file by the name "/etc/default/.grub.swp"
owned by: root dated: Sat Dec 7 10:47:29 2013
file name: /etc/default/grub
modified: YES
user name: root host name: mike-Satellite-L505D
process ID: 5330
While opening file "/etc/default/grub"
dated: Fri Dec 6 22:57:29 2013

(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/default/grub"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/default/.grub.swp"
to avoid this message.
"/etc/default/grub" 34 lines, 1238 characters
Press ENTER or type command to continue

Anyone know how to correct whatever I did wrong?
Thanks.
 
Last edited:


Same issue here. Considering this was posted in 2013, did you find a solution?
 
I had this problem as well, a friend solve it...
 
You have the change the boot order in the Grub menu. Use google and search:
How to change the boot order of a dual-boot Linux PC from cnet article. They have both the graphical and command line how to.

Let me know if that works.
 
you can remove the swap file
#rm -i grub.conf.swp
#sudo vi grub.conf
shift+r to replace
change the boot number
press escape
shift+ ;
wq
this write and quit the config file.
 

Members online


Latest posts

Top