 |
31-08-2011, 12:08 PM
|
#1 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Windows 7 bootl entry missing in ubuntu
Hi!
I came home for few days and found that hard-disk of my desktop was corrupt so i plugged it in my friend's desktop installed windows in it via his p and then installed Ubuntu 10.04 from digit DVD but now i missed something and now when i boot in my desktop Linux boot menu doesn't show the option to boot in windows 7!!!
Plz Help!! I am a complete noob at Linux i just know basic stuff like i use it for a free and fast replacement of windows for basic stuff like surfing net , word , music , movies etc.
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
31-08-2011, 04:04 PM
|
#2 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
in ubuntu, open the terminal and type
sudo update-grub
|
|
|
31-08-2011, 08:13 PM
|
#3 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: Windows 7 bootl entry missing in ubuntu
Thanx nims but it din't worked here's the output:
Code:
garima@garima-desktop:~$ sudo update-grub
[sudo] password for garima:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.32-21-generic
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
|
|
|
31-08-2011, 09:10 PM
|
#4 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
seems like the boot files for windows are gone.
I think there are better ways but this always work for me :
1. recover your windows through the windows 7 DVD. You won't be able to access Ubuntu for the moment.
2. boot from a ubuntu LiveCD and in terminal type (i assume you havent separately made a partition to mount /boot into):
sudo fdisk -l to identify the device name of your linux partition. usually it is /dev/sdax where x is a number.
sudo mount /dev/sdax /mnt (replace x with the number you identified from fdisk -l)
sudo grub-install --boot-directory=/mnt/boot /dev/sda (note that it is only /dev/sda)
3. reboot and now you will be able to get into your installed ubuntu. in ubuntu, goto terminal and type
sudo update-grub
|
|
|
31-08-2011, 11:01 PM
|
#5 (permalink)
|
|
In The Zone
Join Date: Jul 2008
Location: Golden City
Posts: 320
|
Re: Windows 7 bootl entry missing in ubuntu
Quote:
Originally Posted by nims11
(i assume you havent separately made a partition to mount /boot into):
|
^This must be the case(90%)
Do a windows startup repair and do as said by nims11
or, boot into windows and use easyBCD to list linux in windows bootloader to boot into linux.
__________________
The secret ingredient is nothing
|
|
|
02-09-2011, 09:26 PM
|
#6 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: Windows 7 bootl entry missing in ubuntu
This is output of sudo fdisk-l
Code:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0x00000001
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3916 31455238+ 7 HPFS/NTFS
/dev/sda2 3917 30402 212743099+ f W95 Ext'd (LBA)
/dev/sda5 3917 7832 31455238+ 7 HPFS/NTFS
/dev/sda6 7833 16838 72340663+ 7 HPFS/NTFS
/dev/sda7 16839 26511 77694989 7 HPFS/NTFS
/dev/sda8 26511 28259 14043062 83 Linux
/dev/sda9 30236 30402 1332224 82 Linux swap / Solaris
/dev/sda10 28259 30147 15160320 83 Linux
/dev/sda11 30147 30236 711680 82 Linux swap / Solaris
now which is linux partition??
|
|
|
02-09-2011, 09:37 PM
|
#7 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
/dev/sda8 or /dev/sda10
post the output of
cat /etc/fstab
or
df
in terminal
Last edited by nims11; 02-09-2011 at 09:42 PM.
|
|
|
02-09-2011, 09:48 PM
|
#8 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: Windows 7 bootl entry missing in ubuntu
Code:
garima@garima-desktop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda10 during installation
UUID=53edddfb-75fa-4ba4-8a21-693a7997913f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda11 during installation
UUID=e69e430c-ecc9-49a1-bea7-048f9195df2b none swap sw 0 0
and
Code:
garima@garima-desktop:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda10 14922208 3437376 10726816 25% /
none 1672904 288 1672616 1% /dev
none 1677120 128 1676992 1% /dev/shm
none 1677120 312 1676808 1% /var/run
none 1677120 0 1677120 0% /var/lock
none 1677120 0 1677120 0% /lib/init/rw
/dev/sda7 77694984 49061368 28633616 64% /media/movies
garima@garima-desktop:~$
|
|
|
02-09-2011, 09:56 PM
|
#9 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
its /dev/sda10 then.
Did you perform the first step?
|
|
|
02-09-2011, 10:56 PM
|
#10 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: Windows 7 bootl entry missing in ubuntu
did what u said from live CD but in vain
Code:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.32-21-generic
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
Windows startup repair doesn't help however it detects windows so setup is still there intact for sure.
Ain't there any manual command to add an entry??
|
|
|
02-09-2011, 11:14 PM
|
#11 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
be sure you are connected to the internet
from ubuntu LiveCD/installed system
goto terminal,
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr
this will restore the windows MBR and you will be able to boot into windows. Then follow from step 2 in my post #4 or use EasyBCD as anish said
|
|
|
02-09-2011, 11:36 PM
|
#12 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: Windows 7 bootl entry missing in ubuntu
Thanx nims fr constant support but new problem has arisen
Code:
sudo grub-install --boot-directory=/mnt/boot /dev/sda
Unrecognized option `--boot-directory=/mnt/boot'
|
|
|
03-09-2011, 12:01 AM
|
#13 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
then use --root-directory=/mnt/ instead of --boot-directory=/mnt/boot
|
|
|
03-09-2011, 12:18 PM
|
#14 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: Windows 7 bootl entry missing in ubuntu
Thanx nims !!!
finally problem resolved all credit goes to you.
BTW where can i learn advanced linux right from beginning??
|
|
|
03-09-2011, 03:47 PM
|
#15 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
Quote:
Originally Posted by mohityadavx
BTW where can i learn advanced linux right from beginning??
|
Just keep using it and you will learn quite a lot as you progress. Whenever you are stuck, google is your friend as well as the members here at TDF. also try using the terminal more often. all the commands in terminal are very well documented and enough to let anyone learn it by himself.
|
|
|
03-09-2011, 08:24 PM
|
#16 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: Windows 7 bootl entry missing in ubuntu
Nims sorry to bother u again but
I just noticed boot entry made by EasyBCD doesn't do anything its just a blank entry
so i need to ask you which type shall i use in EasyBCD :-
Grub(legacy)
Grub 2
LILO/ELILO
FreeBSD ( I think it can't be)
Wubi ( I think it can't be)
Now for which device shall i use it shows 8 partition
Partition 1 ( F:/ as NTFS - 30GiB)
Partition 2 ( G:/ as NTFS - 30GiB)
Partition 3 ( H:/ as NTFS - 69GiB)
Partition 4 ( I:/ as NTFS - 74GiB)
Partition 5 ( Linux 13GiB)
Partition 6 ( Swap 1GiB)
Partition 7 ( Linux 14GiB)
Partition 8 ( Swap 695MiB)
and shall i tick box saying
"GRUB isn't installed to MBR/bootsector"
|
|
|
03-09-2011, 09:22 PM
|
#17 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: Windows 7 bootl entry missing in ubuntu
it should be grub2
in the partition selection, select partition 7
and tick that box as well.
if easyBCD doesnt work, the liveCD method will surely work
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|