PDA

View Full Version : [SOLVED] Windows 7 Dual Boot



seaninc
January 31st, 2011, 06:04 PM
Hello all!

I'm new to the forum and have just installed Ubuntu 11.04 64-bit alongside Windows 7 Pro 64-bit. Since installing Ubuntu, I have not been able to boot into Windows. When I start my machine, it boots directly into Ubuntu. I've been looking at all sorts of Grub resources but they haven't been helping. I just want to access my Windows install again as I need to use Visual Studio. Thanks!

kansasnoob
January 31st, 2011, 06:06 PM
Please post the output of the Boot Info Script as described here:

http://bootinfoscript.sourceforge.net/

Rubi1200
January 31st, 2011, 08:00 PM
+1 to the boot script

Are you sure you installed 11.04? It is currently in alpha. Do you mean 10.04 perhaps?

quaunaut
January 31st, 2011, 08:03 PM
I'm having the exact same issue, and what scares me is that the file system says there is now 260gb of free space. So unless Ubuntu can't read the NTFS partition's existence and is just regarding it as free space... then the Ubuntu installation is ****** to hell and I just lost my entire system because you guys ****** up. Ugh I'm so angry right now.

Edit: I'm using 10.11, not 11.04.

Here's my output of that script:


Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 601,368,575 601,366,528 83 Linux
/dev/sda2 601,370,622 625,141,759 23,771,138 5 Extended
/dev/sda5 601,370,624 625,141,759 23,771,136 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 79099c37-f9c3-445f-9bbf-651f152bf620 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 89acabf5-6871-4bf7-8929-9a4b9400aad3 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 79099c37-f9c3-445f-9bbf-651f152bf620
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 79099c37-f9c3-445f-9bbf-651f152bf620
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 79099c37-f9c3-445f-9bbf-651f152bf620
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=79099c37-f9c3-445f-9bbf-651f152bf620 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 79099c37-f9c3-445f-9bbf-651f152bf620
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=79099c37-f9c3-445f-9bbf-651f152bf620 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 79099c37-f9c3-445f-9bbf-651f152bf620
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 79099c37-f9c3-445f-9bbf-651f152bf620
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sda1/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
/dev/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=89acabf5-6871-4bf7-8929-9a4b9400aad3 none swap sw 0 0

=================== sda1: Location of files loaded by Grub: ===================


167.6GB: boot/grub/core.img
227.7GB: boot/grub/grub.cfg
.9GB: boot/initrd.img-2.6.35-22-generic
167.6GB: boot/vmlinuz-2.6.35-22-generic
.9GB: initrd.img
167.6GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 3b 0b 97 07 df 44 51 50 16 ca 57 42 ba 31 00 00 |;....DQP..WB.1..|
00000010 8c 36 71 32 01 78 70 ae 4c a6 93 4c bd a8 3d e1 |.6q2.xp.L..L..=.|
00000020 a0 8e 2f e6 24 87 95 50 b2 0d f4 36 79 a2 7a de |../.$..P...6y.z.|
00000030 8b 9c 8d ce 99 e1 a2 3f e6 7c f9 28 fe 98 3a 7d |.......?.|.(..:}|
00000040 c3 26 85 35 ce cb 2c 0b d6 83 6c 40 7a d1 f3 0b |.&.5..,...l@z...|
00000050 08 00 7c 52 85 20 e7 07 f6 23 a2 ce f6 14 4b bd |..|R. ...#....K.|
00000060 3c 6d 5d 7f b1 3a 56 cf 34 bb af 46 41 a2 64 0a |<m]..:V.4..FA.d.|
00000070 d8 63 df f0 cf fb 98 68 9a a7 1e 7f 2d de ef cf |.c.....h....-...|
00000080 39 bd 0e fa 99 86 b7 71 8d 81 2f fd 1c 45 01 dd |9......q../..E..|
00000090 96 a7 d6 15 94 42 41 67 ea 8b 64 e0 30 ad 53 9c |.....BAg..d.0.S.|
000000a0 c9 f9 94 f4 57 c3 0b 73 79 bd 0a 91 29 5d 81 c8 |....W..sy...)]..|
000000b0 c7 bf 3a f2 0f bd e3 14 3f ba d9 cf c4 bd 67 bf |..:.....?.....g.|
000000c0 71 d6 39 3e 7b ff e9 e8 13 33 3b 61 43 7a b9 86 |q.9>{....3;aCz..|
000000d0 56 43 80 0f 50 79 56 00 8c 66 a1 77 5c 83 10 1f |VC..PyV..f.w\...|
000000e0 3c f5 ad 52 4d 02 c3 dc b6 66 87 e7 7d e9 bc e7 |<..RM....f..}...|
000000f0 49 83 2c 87 aa 00 a1 fe 9e ef 99 53 7f bd 39 54 |I.,........S..9T|
00000100 ad 5e 37 bf b8 46 9c 3c 5f d3 31 9f ef 0f 22 da |.^7..F.<_.1...".|
00000110 58 8b 01 f8 59 00 af 5b a9 21 17 f0 b5 00 4f 67 |X...Y..[.!....Og|
00000120 67 53 00 00 c0 72 2a 00 00 00 00 00 88 24 00 00 |gS...r*......$..|
00000130 32 01 00 00 4c 35 c4 24 1f 4c 51 4c 4e 5b 5a 5c |2...L5.$.LQLN[Z\|
00000140 ff 9b ff 9e ff a1 ff 8f 49 48 49 4b 5d 5d 5d 5d |........IHIK]]]]|
00000150 56 59 59 ff 99 ff 7e ff 94 3e 69 96 09 b0 30 15 |VYY...~..>i...0.|
00000160 3e 5d 13 fc 3a 74 79 63 59 be b5 56 71 3b 64 35 |>]..:tycY..Vq;d5|
00000170 01 4c 0f f7 e6 1b 07 0c a9 f8 f9 9b 9f 5d bf 8c |.L...........]..|
00000180 9f 67 4e d6 fc 7d 3e 65 43 f3 fb c4 47 3f d5 89 |.gN..}>eC...G?..|
00000190 c9 e1 91 1f 23 0c 8f 80 86 ff 62 f8 00 42 8e 10 |....#.....b..B..|
000001a0 af 26 21 7a 5c 2a 23 29 4f cd 7e 09 89 b9 a1 4f |.&!z\*#)O.~....O|
000001b0 d2 1c d3 c9 4c 8b 94 e9 3e ae d8 71 d2 4d 00 fe |....L...>..q.M..|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 b8 6a 01 00 00 |............j...|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

AstroFish
January 31st, 2011, 09:14 PM
I would try booting from a live CD and trying to mount the drive to help find out what happened.

If the partition was deleted by mistake take a look at the following link to help recover any lost data by using a Live CD

http://www.howtogeek.com/howto/15761/recover-data-like-a-forensics-expert-using-an-ubuntu-live-cd/

kansasnoob
January 31st, 2011, 10:34 PM
I hate being the one to say this but you wiped out Windows! It's gone! Immediately stop using the newly installed Ubuntu and only run the machine using a Live CD/USB!

I'll post more directly.

kansasnoob
January 31st, 2011, 10:44 PM
You can recover data using TestDisk/PhotoRec. I'm not proficient with either so I really can't help you beyond that.

http://www.cgsecurity.org/wiki/TestDisk

I've found this helpful:

http://www.howtoforge.com/data_recovery_with_testdisk

You likely fell victim to this bug:

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/655950

I know how bad this stinks! I filed that bug report prior to release as an iso-tester!

Please add your comments to the bug report after dealing with your recovery.

BTW I've also posted about that here:

http://ubuntuforums.org/showthread.php?t=1622388

More specifically here:

http://ubuntuforums.org/showpost.php?p=10145206&postcount=15

seaninc
February 1st, 2011, 12:55 AM
You can recover data using TestDisk/PhotoRec. I'm not proficient with either so I really can't help you beyond that.

http://www.cgsecurity.org/wiki/TestDisk

I've found this helpful:

http://www.howtoforge.com/data_recovery_with_testdisk

You likely fell victim to this bug:

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/655950

I know how bad this stinks! I filed that bug report prior to release as an iso-tester!

Please add your comments to the bug report after dealing with your recovery.

BTW I've also posted about that here:

http://ubuntuforums.org/showthread.php?t=1622388

More specifically here:

http://ubuntuforums.org/showpost.php?p=10145206&postcount=15

That's exactly what happened. It selected the partition I had made for the install and then I clicked "use entire partition" thinking it would only use that space. Thanks for the help everyone, looks like I have some re-installing to do.

seaninc
February 1st, 2011, 12:57 AM
+1 to the boot script

Are you sure you installed 11.04? It is currently in alpha. Do you mean 10.04 perhaps?

Yes, sorry. Natty Narwhal here.

Rubi1200
February 1st, 2011, 03:17 AM
That's exactly what happened. It selected the partition I had made for the install and then I clicked "use entire partition" thinking it would only use that space. Thanks for the help everyone, looks like I have some re-installing to do.
I am really sorry to hear that this happened to you :-(

In the post above, kansasnoob provides a link to the bug report. If you add your voice, perhaps we can get this changed.

In future, until you are certain please use manual partitioning only.

Good luck!