Problem changing os boot order

Discussion in 'Getting Started' started by Michael Surgeon, Dec 9, 2013.

  1. Michael Surgeon

    Michael Surgeon New Member

    Likes Received:
    Trophy Points:
    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 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

    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?

    Last edited: Dec 9, 2013
  2. syamprasadkr

    syamprasadkr New Member

    Likes Received:
    Trophy Points:
    Same issue here. Considering this was posted in 2013, did you find a solution?
  3. alicia reyes

    alicia reyes New Member

    Likes Received:
    Trophy Points:
    I had this problem as well, a friend solve it...

Share This Page