My windows is not working after installing ubuntu 7.04

Status
Not open for further replies.

arunks

Hey here is the aks
My laptop had freedos and windows xp installed.

freedos was on c: and xp was on e:

I installed ubuntu 7.04 and then when i run xp it gives error regarding missing hal.dll

So my xp is not working now..

Plz resolve my problem.. I do not want to install xp or ubuntu again..

How can i get xp again working with ubuntu also continued working..

Thanx in advance...

waise i have seen and solved this problem many times in tthe past but now i dont remember so i m asking u guys.... I m waiting for some success solutions
 
OP
arunks

arunks

Hey here is the aks
plz help anybody..

ok i m getting the contents of menu.lst...

meanwhile if anyother guy know solution then telll plz
 

praka123

left this forum longback
it is a windows problem.and u make sure ur XP partition is made active.
or in menu.lst XP entry add "makeactive" also.
 
OP
arunks

arunks

Hey here is the aks
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=792cc037-7bd3-47a5-9c35-f7ff8600081b ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Ubuntu, kernel 2.6.20-16-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=792cc037-7bd3-47a5-9c35-f7ff8600081b ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=792cc037-7bd3-47a5-9c35-f7ff8600081b ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=792cc037-7bd3-47a5-9c35-f7ff8600081b ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=792cc037-7bd3-47a5-9c35-f7ff8600081b ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title FreeDOS
root (hd0,1)
savedefault
makeactive
chainloader +1

plz now see and tell...i think it is already active/...u see and resolve my problem
 

praka123

left this forum longback
I suppose "freedos" one is ur windows.i think in ur ubuntu,unmount any windows partitions mounted and use
Code:
sudo cfdisk
and make ur windows partition active.
or the o/p of "fdisk -l" will show u(an "*" will be there with active partitions) whether windows partition is active or not.
If activating win partition does not work,I am not able to help u much with windows.but i think u have to edit a file in ur win xp partition for eg: C:\> partition,where lies boot.ini file which may need to be edited.especially the line "default=" afaik.I think u ask any moderator to move this thread to "software troubleshooting" for win problems.
 
OP
arunks

arunks

Hey here is the aks
my boot.ini contents are

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn

C:\ = "Unidentified operating system on drive C."

yaar before installing ubuntu the configuration was

Freedos was on c: drive and c was primary partition
Windows xp was on e: drive

In grub menu i get like this

Ubuntu kernal 2.xxx
ubuntu some mode
ubuntu kernal 2.xxx
memtest+
freedos


So when we select freedos then it displays two options
windows xp
and
freedos

Now freedos is working properly
only problem is with windows xp...it says hal.dll file corrupted or missing

I have checked in e: drive in e:\windows\system32 hal.dll is present there...
then why xp is giving this error

fdisk -l shows this

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 7874 63239872+ f W95 Ext'd (LBA)
/dev/sda2 * 8424 9729 10490445 c W95 FAT32 (LBA)
/dev/sda3 7875 8423 4409842+ 83 Linux
/dev/sda5 2 1958 15719571 b W95 FAT32
/dev/sda6 1959 3917 15735636 b W95 FAT32
/dev/sda7 3918 5876 15735636 b W95 FAT32
/dev/sda8 5877 7842 15791863+ b W95 FAT32
/dev/sda9 7843 7874 257008+ 82 Linux swap / Solaris

Partition table entries are not in disk order
 
Last edited:

praka123

left this forum longback
regarding boot.ini,i dont know.editing boot.ini is the solution i feel and i dont know that :( .but it seems ur problem is with windows boot loader boot.ini.
i cant tell from the o/p which one is ur windows primary partition!as it shows u only have extended partitions!weird!i think /dev/sda2 will be ur windows partn then !
 
OP
arunks

arunks

Hey here is the aks
hey guys i m now posting this msg from windows xp

It only took a single second to resolve my problem'''

i changed partition no. 2 to3 for windows xp in boot.in

and this worked and i m happy now

nyways guys thanx for ur co-operation and helping hearted feelings
 
Last edited:
Status
Not open for further replies.
Top Bottom