Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've been dual booting Win7 and Ubuntu for about 4 months and I got on it today to change the default boot on grub, because my girlfriend kept getting locked out when it reboots and, by default, goes to the Ubuntu partition.

I tried using the command promt. I used the command found here which was sudo gedit /etc/default/grub

That didn't appear to do anything so I changed the grub using the file manager and changed "Default grub=4" which, is the boot I was supposed to use...

This led to my Windows 7 partition dissapearing from the boot list, somehow, although all files are still showing up on the OS (checked through Ubuntu) and System Recovery shows my latest restore, attempted to restore and said it should be working..

So I'm assuming its hidden in some way?

I'm using BT5R3.

/etc/default/grub:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=4
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text splash vga=791"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1024x768

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Shell history:

1  exit
    2  startx
    3  apt-get software center
    4  apt-get software-center
    5  sudo apt-get software-center
    6  install software-center
    7  mkdir /opt/java
    8  mv -f jre1.70_05/ /opt/java
    9  tar xzvf jre-7u45-linux-i586.tar.gz.
   10  tar: tar xzvf jre-7u45-linux-i586.tar.gz
   11  tar xzvf jre-7u45-linux-i586.tar.gz
   12  apt-get install synaptic
   13  help
   14  install synaptic
   15  apt-get synaptic
   16  apt-get install synaptic
   17  lspci -v
   18  help]
   19  help
   20  help mapfile
   21  help
   22  info strict refs
   23  startx
   24  edit grub
   25  search grub
   26  apt-get install sphinxsearch
   27  search grub
   28  edit grub boot
   29  find grub
   30  startx
   31  startsx
   32  startx
   33  -terminal
   34  terminal
   35  apt-get install rsplib-tools
   36  --fix-missing
   37  apt-get update
   38  terminal
   39  apt-get install rsplib-tools
   40  terminal
   41  update grub
   42  update-grub
   43  open partition manager
   44  open
   45  help
   46  search partition manager
   47  help
   48  find partition manager
   49  find partitionmanager
   50  startx
   51  find gparted
   52  get gparted
   53  get Gparted
   54  get-apt Gparted
   55  X-AppInstall-Package=gparted
   56  help
   57  startx
   58  run history
   59  history

 

$ sudo grub-mkconfig > /dev/null
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.6
Found initrd image: /boot/initrd.img-3.2.6
Found memtest86+ image: /boot/memtest86+.bin
done

$ sudo fdisk -l  
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb3b6d9a6


 Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13       83647   671785946    7  HPFS/NTFS
/dev/sda3           83647      119927   291422209    5  Extended
/dev/sda4          119927      121577    13249536    7  HPFS/NTFS
/dev/sda5           83647      118706   281610240   83  Linux
/dev/sda6          118706      119927     9810944   82  Linux swap / Solaris
share|improve this question
    
Um... okay, grub –  Kramer42 Jan 30 at 6:27
    
Thanks. And the commands you ran? Also post the output of sudo grub-mkconfig > /dev/null –  terdon Jan 30 at 6:33
    
Okay, so type that into the comand prompt and paste what it responds? –  Kramer42 Jan 30 at 6:35
1  
Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.6 Found initrd image: /boot/initrd.img-3.2.6 Found memtest86+ image: /boot/memtest86+.bin done –  Kramer42 Jan 30 at 6:42
2  
That's a lowercase L (l), not a one (1). It's a -l as in list. –  slm Jan 30 at 6:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.