Downloaded Ubuntu alongside Windows Vista
I can't figure out how to boot Windows Vista, if I send you the sudo sfdisk -l results, can you tell me if I lost my initial operating system?
Disk /dev/sda: 19457 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 18692- 18693- 150145024 83 Linux
/dev/sda2 18692+ 19457- 765- 6142977 5 Extended
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
/dev/sda5 18692+ 19457- 765- 6142976 82 Linux swap / Solaris
Disk /dev/sdb: 19457 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 0+ 19457- 19457- 156288000 7 HPFS/NTFS
/dev/sdb2 0 - 0 0 0 Empty
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- grub Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
It would have collapsed your system boot information and not the OS probably..
Revision history for this message
|
#2 |
your vista is still intact. i see that you have installed ubuntu on another disk.
you can wait until delance sees your post. he is the master with booting problems.
Revision history for this message
|
#3 |
From terminal, please run,
sudo update-grub
And post the output here.
If you see Windows Vista listed in the output, the problem is solved.
Revision history for this message
|
#4 |
Thanks for the responses everybody, Sikander, here is the output from sudo update-grub:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Revision history for this message
|
#5 |
Thanks for the responses everybody, Sikander, here is the output from sudo update-grub:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Revision history for this message
|
#6 |
Windows Vista is installed in sdb1? I can see only one NTFS partition there.
We don't know where is Grub installed, and what does the MBR of sdb contain.
Grub doesn't seem to find the boot files for Vista.
I'll like to see the output of bootinfoscript. It will help us better understand your setup.
http://
Download and run it from inside Ubuntu and post the output.
Revision history for this message
|
#7 |
Here is the terminal output:
Identifying MBRs...
Computing Partition Table of /dev/sda...
Computing Partition Table of /dev/sdb...
Searching sda1 for information...
Searching sda2 for information...
Searching sda5 for information...
Searching sdb1 for information...
And here is the Boot Info Summary from the Results:
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)
=> Windows is installed in the MBR of /dev/sdb
sda1:
Revision history for this message
|
#8 |
Reinstall Grub following this link, on sda device (as like in example of this web page)
https:/
Windows should be detected, and proposed at boot.
Revision history for this message
|
#9 |
I don't know what I'm doing wrong this time... I went to the link you posted and followed their instructions. Upon reboot I was taken to the Grub terminal and from there I'm lost. Also, if I "exit" from that terminal it says there are no systems to boot so I have to boot from Live CD. Anyway, I'm back to square one with running Ubuntu without the CD. I really appreciate all the time you guys are taking to help me out.
Revision history for this message
|
#10 |
I still want to see the complete output from bootinfoscript.
http://
Grub is not detecting the Windows boot files. Might be you need to fixmbr from the Windows disc but that too, after we see the results from that script and know exactly what the problem is.
Revision history for this message
|
#11 |
Here is the complete output from bootinfoscript:
Boot Info Script 0.55 dated February 15th, 2010
=======
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)
=> Windows is installed in the MBR of /dev/sdb
sda1: _______
File system: ext4
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /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:
sdb1: _______
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
=======
Drive: sda ___________________ _______
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 300,292,095 300,290,048 83 Linux
/dev/sda2 300,294,142 312,580,095 12,285,954 5 Extended
/dev/sda5 300,294,144 312,580,095 12,285,952 82 Linux swap / Solaris
Drive: sdb ___________________ _______
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 2,048 312,578,047 312,576,000 7 HPFS/NTFS
blkid -c /dev/null: _______
Device UUID TYPE LABEL
/dev/sda1 8d53fff1-
/dev/sda2: PTTYPE="dos"
/dev/sda5 4cb1e5f5-
/dev/sda: PTTYPE="dos"
/dev/sdb1 6A92ACAA92AC7C67 ntfs DATAPART1
/dev/sdb: PTTYPE="dos"
=======
Device Mount_Point Type Options
/dev/sda1 / ext4 (rw,errors=
=======
#
# 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.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_
set 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_
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 8d53fff1-
if loadfont /usr/share/
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 8d53fff1-
set locale_
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub.
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 8d53fff1-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
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 8d53fff1-
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8d53fff1-
linux16 /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8d53fff1-
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
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.
### BEGIN /etc/grub.
# 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.
### BEGIN /etc/grub.
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.
=======
# /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
/dev/sda5 none swap sw 0 0
=================== sda1: Location of files loaded by Grub: ===================
124.6GB: boot/grub/core.img
38.8GB: boot/grub/grub.cfg
.5GB: boot/initrd.
124.6GB: boot/vmlinuz-
133.2GB: grub/core.img
.5GB: initrd.img
124.6GB: vmlinuz
=======
Unknown BootLoader on sda2
00000000 98 9b 9c 99 9c 9d 97 9c 9d 97 9c 9d 96 9e 9e 98 |................|
00000010 a0 a0 93 9d 9d 8e 98 98 85 8d 8d 85 8d 8d 86 8e |................|
00000020 8e 8a 92 92 8f 97 97 93 9b 9b 92 9c 9c 92 9c 9c |................|
00000030 90 9a 9a 90 9a 9a 8f 9a 9a 90 9b 9b 90 9b 9b 90 |................|
00000040 9b 9b 90 9b 9b 90 9b 9b 8e 9b 97 8e 9b 97 8e 9a |................|
00000050 98 8e 9a 98 8e 99 99 8d 98 98 8d 98 9a 8d 98 9a |................|
00000060 89 94 96 81 8c 8e 7b 85 85 79 83 83 7e 89 87 84 |......{..y..~...|
00000070 8f 8d 88 93 90 89 94 91 89 92 8f 88 91 8e 85 90 |................|
00000080 8d 84 8f 8c 84 91 8b 85 92 8c 85 95 8e 87 97 90 |................|
00000090 8a 9c 95 8d 9f 98 8f a2 9d 90 a3 9e 8f a3 a1 8f |................|
000000a0 a3 a1 8d a3 a1 8e a4 a2 8c a1 a2 8c a1 a2 8c a1 |................|
000000b0 a2 8c a1 a2 8c a1 a2 8c a1 a2 8c a1 a2 8c a1 a2 |................|
000000c0 8a 9f a0 8a 9f a0 8b a0 a1 8b a0 a1 8b a0 a1 8b |................|
000000d0 a0 a1 8a 9f a0 8a 9f a0 8f a0 9d 8f a0 9d 8f a0 |................|
000000e0 9d 8f a0 9d 8f a0 9d 8f a0 9d 8f a0 9d 8f a0 9d |................|
000000f0 8f a0 9d 8f a0 9d 8f a0 9d 8f a0 9d 8f a0 9d 8f |................|
00000100 a0 9d 8f a0 9d 8f a0 9d 8e a0 9d 8e a0 9d 8f a1 |................|
00000110 9e 8f a1 9e 8f a1 9e 8f a1 9e 8e a0 9d 8e a0 9d |................|
00000120 8f a1 9e 8f a1 9e 8f a1 9e 8f a1 9e 8f a1 9e 8f |................|
00000130 a1 9e 8f a1 9e 8f a1 9e 8c a1 9c 8c a1 9c 8c a1 |................|
00000140 9c 8c a1 9c 8f a0 9c 90 a1 9d 90 a1 9d 90 a1 9d |................|
00000150 8f a0 9c 90 a1 9d 90 a1 9d 90 a1 9d 8d a2 9d 8c |................|
00000160 a1 9c 8c a1 9c 8b a0 9b 93 a0 9c 92 9f 9b 92 9e |................|
00000170 98 90 9c 96 92 9a 93 8f 97 90 90 96 8b 8e 94 89 |................|
00000180 9c a0 94 a3 a7 9b ae b4 a3 bc c2 b1 c7 cd ba cb |................|
00000190 d1 be cb d2 bd c9 d0 bb c4 ce ba c5 cf bb c3 cf |................|
000001a0 bb c3 cf bb c4 d2 c0 c3 d1 bf b3 c2 b4 a2 b1 a3 |................|
000001b0 8c 9c 8f 88 98 8b 86 94 89 84 92 87 87 92 00 fe |................|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 78 bb 00 00 00 |...........x....|
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
Revision history for this message
|
#12 |
Boot on Ubuntu CD, and choose "Try without install". You are not supposed to see a text grub menu, but a graphical screen.
Reinstall Grub following this link, on sda device (as like in example of this web page)
https:/
Windows should be detected, and proposed at boot.
Revision history for this message
|
#13 |
Hey delance, still no luck. I'm just going to give up with it and reinstall windows vista when this semester is over. I really appreciate you trying to help me out though, thanks again.
Revision history for this message
|
#14 |
Sorry I am a bit late on this.
The problem lies on sdb1. No Operating System, Boot files/dirs at all.
If you've not reinstalled WIndows yet, you can boot from a Windows 7 installation or Recovery disc and perform startup repair at least 3 times. Once successful, you'll be able to boot into Windows. Then follow the link provided by delance and re-install Grub and your PC will be ready to dual boot.
Revision history for this message
|
#15 |
Don't worry about late response, I'm still running Ubuntu, I'll see if I can get my hands on a Windows 7 disc and try a recovery. I tried recovering with the Windows Vista disc I have but nothing major happened, however upon reboot I was taken to a screen I never saw before. It had GNU and Grub I think and it allowed me to choose how I boot my system, but Windows wasn't listed. I'll keep trying for now, I've gotten used to this operating system haha, but if I don't figure anything out by mid December, I'll just reinstall Windows like I said, it'll be nice having a fresh computer. Thanks again for all the help.
Can you help with this problem?
Provide an answer of your own, or ask David Palermo for more information if necessary.