PDA

View Full Version : [ubuntu] Dual boot w7



wandiligong
October 20th, 2011, 01:24 AM
Good morning Forum members

Absolute novice wth Linux

I have a (8 yr old) PC with a series of Win upgrades (98, XP). Latest Win 7 which worked OK except for poor screen resolution. Decided to install Ubuntu 10.10. Minor problems with install probably due to exhausted BIOS battery (0.7V and now replaced with new)

Deleted Ubuntu and reinstalled OK except for USB keyboard and GRUB screen problem (discussed elsewhere on forum) Changed BIOS to enable "USB for DOS" and GRUB screen now accessible

However PC will not boot into Windows of any type - shown on GRUB screen as Win XP, 98SE. Ran Boot info script and posted below

Would be nice to be able to dual boot into (any) Windows OS without needing a Recover disc. Any suggestions would be appreciated.

My opinion of Linux/Ubuntu is it works OK except if need to move files or install software, especially if downloaded as a stand alone file. Anything that requires Terminal is just too difficult (like regressing to DOS)

I intend to use the PC for internet access and photo viewing at another location but I certainly would not want to use Linux as my main PC with hundreds of folders and thousands of files. Drag and drop and double click on .exe is just so easy. Does Ubuntu 11.04 make operation any easier?

I am very impressed and grateful for the kind responses received to my previous posts and for the forum generally where I have found lots of useful info.

Boot Info Script 0.60 from 17 May 2011

============================= Boot Info Summary: ===============================
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 1 for (,msdos1)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb.
sda1: __________________________________________________ ________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files: /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:
sdb1: __________________________________________________ ________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /ntldr /NTDETECT.COM
============================ Drive/Partition Info: =============================
Drive: sda __________________________________________________ ___________________
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 149,843,967 149,841,920 83 Linux
/dev/sda2 149,846,014 156,301,311 6,455,298 5 Extended
/dev/sda5 149,846,016 156,301,311 6,455,296 82 Linux swap / Solaris

Drive: sdb __________________________________________________ ___________________
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 * 63 156,280,319 156,280,257 7 NTFS / exFAT / HPFS

"blkid" output: __________________________________________________ ______________
Device UUID TYPE LABEL
/dev/sda1 8723f6e4-e2ad-4623-9949-76cf79331805 ext4
/dev/sda5 f775705d-affe-4fa8-9200-b9ae0dc6f130 swap
/dev/sdb1 BA8CFF618CFF169B ntfs
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sdb1 /media/BA8CFF618CFF169B fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)

=========================== 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 8723f6e4-e2ad-4623-9949-76cf79331805
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 8723f6e4-e2ad-4623-9949-76cf79331805
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 8723f6e4-e2ad-4623-9949-76cf79331805
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=8723f6e4-e2ad-4623-9949-76cf79331805 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 8723f6e4-e2ad-4623-9949-76cf79331805
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=8723f6e4-e2ad-4623-9949-76cf79331805 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 8723f6e4-e2ad-4623-9949-76cf79331805
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 8723f6e4-e2ad-4623-9949-76cf79331805
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (loader) (on /dev/sdb1)" {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set ba8cff618cff169b
drivemap -s (hd0) ${root}
chainloader +1
}
### 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
# / was on /dev/sda1 during installation
UUID=8723f6e4-e2ad-4623-9949-76cf79331805 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=f775705d-affe-4fa8-9200-b9ae0dc6f130 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
--------------------------------------------------------------------------------
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
52.134307861 = 55.978786816 boot/grub/core.img 1
60.138545990 = 64.573272064 boot/grub/grub.cfg 1
40.266601562 = 43.235934208 boot/initrd.img-2.6.35-22-generic 2
52.132854462 = 55.977226240 boot/vmlinuz-2.6.35-22-generic 1
40.266601562 = 43.235934208 initrd.img 2
52.132854462 = 55.977226240 vmlinuz 1
================================ sdb1/boot.ini: ================================
--------------------------------------------------------------------------------
[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
multi(0)disk(0)rdisk(1)partition(1)\C:\="Windows 98SE" /Win95
--------------------------------------------------------------------------------
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda2
00000000 34 00 20 00 54 00 48 00 49 00 44 00 3a 00 38 00 |4. .T.H.I.D.:.8.|
00000010 20 00 49 00 44 00 3a 00 44 00 30 00 42 00 46 00 | .I.D.:.D.0.B.F.|
00000020 35 00 32 00 43 00 37 00 2d 00 32 00 34 00 33 00 |5.2.C.7.-.2.4.3.|
00000030 44 00 2d 00 34 00 34 00 31 00 62 00 2d 00 42 00 |D.-.4.4.1.b.-.B.|
00000040 33 00 33 00 34 00 2d 00 41 00 35 00 38 00 39 00 |3.3.4.-.A.5.8.9.|
00000050 34 00 36 00 35 00 34 00 30 00 43 00 44 00 39 00 |4.6.5.4.0.C.D.9.|
00000060 3a 00 36 00 30 00 34 00 2e 00 34 00 30 00 32 00 |:.6.0.4...4.0.2.|
00000070 2e 00 31 00 30 00 36 00 34 00 39 00 32 00 20 00 |..1.0.6.4.9.2. .|
00000080 4d 00 53 00 47 00 3a 00 2a 00 0d 00 0a 00 5b 00 |M.S.G.:.*.....[.|
00000090 41 00 56 00 47 00 38 00 2e 00 41 00 56 00 49 00 |A.V.G.8...A.V.I.|
000000a0 4c 00 44 00 52 00 5d 00 20 00 49 00 4e 00 46 00 |L.D.R.]. .I.N.F.|
000000b0 4f 00 20 00 32 00 30 00 30 00 39 00 2d 00 30 00 |O. .2.0.0.9.-.0.|
000000c0 39 00 2d 00 30 00 37 00 20 00 32 00 32 00 3a 00 |9.-.0.7. .2.2.:.|
000000d0 32 00 33 00 3a 00 31 00 33 00 2c 00 34 00 37 00 |2.3.:.1.3.,.4.7.|
000000e0 34 00 20 00 6c 00 6f 00 63 00 61 00 6c 00 68 00 |4. .l.o.c.a.l.h.|
000000f0 6f 00 73 00 74 00 20 00 50 00 49 00 44 00 3a 00 |o.s.t. .P.I.D.:.|
00000100 34 00 20 00 54 00 48 00 49 00 44 00 3a 00 38 00 |4. .T.H.I.D.:.8.|
00000110 20 00 49 00 44 00 3a 00 35 00 35 00 37 00 41 00 | .I.D.:.5.5.7.A.|
00000120 41 00 44 00 36 00 37 00 2d 00 46 00 37 00 41 00 |A.D.6.7.-.F.7.A.|
00000130 33 00 2d 00 34 00 43 00 39 00 32 00 2d 00 42 00 |3.-.4.C.9.2.-.B.|
00000140 45 00 42 00 38 00 2d 00 45 00 31 00 35 00 30 00 |E.B.8.-.E.1.5.0.|
00000150 34 00 37 00 31 00 41 00 36 00 31 00 39 00 43 00 |4.7.1.A.6.1.9.C.|
00000160 3a 00 36 00 38 00 33 00 2e 00 34 00 30 00 32 00 |:.6.8.3...4.0.2.|
00000170 2e 00 31 00 30 00 36 00 34 00 39 00 32 00 20 00 |..1.0.6.4.9.2. .|
00000180 4d 00 53 00 47 00 3a 00 61 00 42 00 77 00 78 00 |M.S.G.:.a.B.w.x.|
00000190 32 00 49 00 6d 00 75 00 74 00 66 00 70 00 6c 00 |2.I.m.u.t.f.p.l.|
000001a0 6a 00 7a 00 6c 00 51 00 6f 00 43 00 6c 00 61 00 |j.z.l.Q.o.C.l.a.|
000001b0 49 00 75 00 72 00 6c 00 7a 00 33 00 74 00 00 fe |I.u.r.l.z.3.t...|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 80 62 00 00 00 |............b...|
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

zvacet
October 21st, 2011, 11:20 AM
You can try https://help.ubuntu.com/community/Boot-Repair with second described option.You will have to use terminal :) but just copy/paste commands from instructions.Learning to use terminal is not so dificult and believe or not sometimes it is faster to use terminal then drag&drop.

oldfred
October 21st, 2011, 06:42 PM
I do not see anything really wrong with boot script output.

Windows does think it is on rdisk(0) which is sda, but grub does a drivemap to make Windows still think it is sda. You must have moved drives around from original install.

If you switch drives back around does Windows boot or does it still have errors? Grub cannot boot a Windows that does not work.

Does your BIOS let you choose boot drive or can you only change with jumpers on drive or location on IDE cable?

wandiligong
October 28th, 2011, 03:13 AM
Thanks for your reply zvacet
Tried Boot-repair
System said fixed but will not dual boot
Provided URL http://paste.ubuntu.com/721239
What is this?

PC had Win7 but now only gives options (that don't work) for Win 98 and Win XP. Although I would be contented if any Windows would work

Thanks for you interest

wandiligong
October 28th, 2011, 03:17 AM
Thanks for your reply

I had Win 7 installed (normal boot up) but there was a problem with it not being able to run appropriate screen resolution. This is why I thought I would try Linux

I think? I could change boot to Win 98 by changing first boot in BIOS (ie boot to other physical HDD). Tried this since installing Ubuntu but gives same errors as dual boot does

oldfred
October 28th, 2011, 04:43 AM
Windows combines all its boots into one bootable partition. The boot.ini in XP shows a Win98 entry in the first partition of a second disk but you now have Ubuntu in the first partition. Did you overwrite your Win98?

wandiligong
October 28th, 2011, 11:35 AM
I dont know
All I did was use DVD to install Ubuntu with "alongside" option
Had install problem (might have been BIOS battery low voltage - kept losing time/date -now replaced) so I deleted partition holding Ubuntu and did reinstall