WinXP broken post Ubuntu install
Discussion
I've created a bit of a problem for myself: I've just done a fresh install of Ubuntu and and now unable to start Windoze. This is the error message:
I've rebooted with the system CD and started a recovery console to run bootcfg - I've noticed that it seems to think %windir% is on D:, where it should be on C:
I'm not familiar with Ubuntu and can't find a tool to view the partition table so that I can see what's happened. Ideally I'd like to be able to use the Windows recovery console to do this but the olde-fashioned tools I am familiar with (like fdisk) don't seem to be available.
Any bright ideas gratefully received.
Windows could not start because the following file is missing
or corrupt:
<Windows root>\system32\hal.dll.
Please re-install a copy of the above file.
I've rebooted with the system CD and started a recovery console to run bootcfg - I've noticed that it seems to think %windir% is on D:, where it should be on C:
I'm not familiar with Ubuntu and can't find a tool to view the partition table so that I can see what's happened. Ideally I'd like to be able to use the Windows recovery console to do this but the olde-fashioned tools I am familiar with (like fdisk) don't seem to be available.
Any bright ideas gratefully received.
Right. First of all, you'll be hard pushed to do anything on the parition via Ubuntu. You'd need NTFS-3G and FUSE to write to it.
I'd suggest that even if you hadn't of installed Ubuntu you'd be looking at this screen, but I'd suggest getting your WinXP disks and booting from it. Select 'Repair'. Should do the job (but might disable GRUB, which is easy enough to repair).
I'd suggest that even if you hadn't of installed Ubuntu you'd be looking at this screen, but I'd suggest getting your WinXP disks and booting from it. Select 'Repair'. Should do the job (but might disable GRUB, which is easy enough to repair).
Ubuntu should have installed the Linux fdisk (someone needs to be shot if it hasn't). just run it from the console as root and see what's actually happened to the table.
Which partition has the boot flag set?
Where is grub installed? hda or hda1
Can you post your /boot/grub/menu.lst file. The windows specific bit should be enough. Does it do any weird partition/disk swapping?
It should only be something like:
..title Windows
..root (hd0,0)
..savedefault
..makeactive
..chainloader +1
Which partition has the boot flag set?
Where is grub installed? hda or hda1
Can you post your /boot/grub/menu.lst file. The windows specific bit should be enough. Does it do any weird partition/disk swapping?
It should only be something like:
..title Windows
..root (hd0,0)
..savedefault
..makeactive
..chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda3
title Windows XP Media Center Edition
root (hd0,2)
savedefault
makeactive
chainloader +1
I guess that means it's trying hard disk 0, partition 2?
I'm struggling to run fdisk because I can't find the hard disk in /dev - there are no hdas listed ...
Aha - /dev/sda
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 7 56196 de Dell Utility
/dev/sda2 8 8857 71087625 f W95 Ext'd (LBA)
/dev/sda3 * 13985 19452 43921408 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sda4 8858 13984 41182627+ 83 Linux
/dev/sda5 8 8632 69280281 7 HPFS/NTFS
/dev/sda6 8633 8857 1807281 82 Linux swap / Solaris
Partition table entries are not in disk order
hmm. what have you done there? partition 3 is slightly corrupt (end's at the wrong point), and they are out of order. shouldn't be a problem though
can you mount sda3 and sda5 to see which is the correct partition
.. sudo mount /dev/sda3 /mnt -t ntfs-3g
(install the ntfs-3g package if you haven't already)
can you mount sda3 and sda5 to see which is the correct partition
.. sudo mount /dev/sda3 /mnt -t ntfs-3g
(install the ntfs-3g package if you haven't already)
fredf said:
can you type 'mount' to see which partition is mounted on /media/disk
I don't use Ubuntu or many graphical admin tools, so I don't know if there's a GUI tool to do the same
I don't use Ubuntu or many graphical admin tools, so I don't know if there's a GUI tool to do the same
$ mount
/dev/sda4 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.20-16-generic/volatile type tmpfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/scd0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=lord)
/dev/sda3 on /mnt type ntfs (rw)
Bugger - just noticed it's not mounted - shall redo momentarily ... oops!

Edited by LordGrover on Sunday 22 July 23:20
Looking at the disk sizes, sda5 is the 66GB and sda3 is 42GB. and you say the 66GB partition is the one you want.
As you said earlier, try changing grub to boot from hd0,4.
BTW, you can change the grub options and boot type by typing 'e' (i think....) at the grub boot menu
As you said earlier, try changing grub to boot from hd0,4.
BTW, you can change the grub options and boot type by typing 'e' (i think....) at the grub boot menu
Edited by fredf on Sunday 22 July 23:24
~$ mount
/dev/sda4 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.20-16-generic/volatile type tmpfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/scd0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=lord)
/dev/sda3 on /mnt type ntfs (rw)
/dev/sda5 on /media/disk type ntfs (rw,nosuid,nodev,umask=222,utf8)
fredf said:
in case you missed my edit...
As you said earlier, try changing grub to boot from hd0,4.
BTW, you can change the grub options and boot type by typing 'e' (i think....) at the grub boot menu
Sorry - did miss that. just vi-ed the grub johnny, so here goes - if you don't hear from me again soon - I've now completely knackered it ...As you said earlier, try changing grub to boot from hd0,4.
BTW, you can change the grub options and boot type by typing 'e' (i think....) at the grub boot menu
3 - 2 - 1 - ...
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff




