PDA

View Full Version : I screwed up :-(



black_magiic
October 20th, 2005, 03:25 PM
Alrighty you can all laugh and make fun of me if you wish but if you do you have to help afterwards :P. So I installed Ubuntu linux this morning with GRUB as the bootloader. I thought everything went fine as Ubuntu started up great and all. However problems arose when I attempted to go back to windows. GRUB lists XP Home as a bootable OS but it wont let me load it. I get about four lines of stuff and then it says push crtl + alt + del to restart. I can post the message if needed. Otherwise any ideas as to what I've done and how I can fix it.

Auggie2k
October 20th, 2005, 03:31 PM
Try and install Acronis OS Selector.

http://www.globalshareware.com/Utilities/System-Utilities/Acronis-OS-Selector-8-0.htm

It will replace the computers dos looking os selection with a new XP style version. It will find all the os's and put them in a list to choose from at startup. Also there is a disk management system incase you want to create or format a new partition for new os's.

.:sp00ky:.
October 20th, 2005, 03:44 PM
start up in dos and type FIXMBR

same thing happend to me so that should fix it

black_magiic
October 20th, 2005, 04:25 PM
Thanks guys I will do just that. My girlfriend however is dissapointed you didnt make fun of me before helping :P

Auggie2k
October 20th, 2005, 04:28 PM
Thanks guys I will do just that. My girlfriend however is dissapointed you didnt make fun of me before helping :P
You suck! How was that?

evilmegaman
October 20th, 2005, 04:31 PM
Alrighty you can all laugh and make fun of me if you wish but if you do you have to help afterwards :P. So I installed Ubuntu linux this morning with GRUB as the bootloader. I thought everything went fine as Ubuntu started up great and all. However problems arose when I attempted to go back to windows. GRUB lists XP Home as a bootable OS but it wont let me load it. I get about four lines of stuff and then it says push crtl + alt + del to restart. I can post the message if needed. Otherwise any ideas as to what I've done and how I can fix it.

You can use the XP install disk and go into recovery disk and do this:

bootcfg /rebuild
fixboot



... I think

That's what works for me anyways.

rainbowdemon
October 20th, 2005, 04:50 PM
My girlfriend however is dissapointed you didnt make fun of me before helping :P

What kind of numbnuts installs software he doesn't know how to use?


:icon_salu




Just trying to help!!

ducttapeBigSexy
October 20th, 2005, 05:06 PM
::sp00ky::, you're right, just boot up on your XP install disk, choose recovery console, and type "fixmbr". Choose yes, and it will replace your boot loader with the original XP one (however, you won't be able to boot into Linux anymore). Just make sure that if you have XP Home installed, use the XP Home disc, and the same goes for XP Pro. I know from experience that it won't work otherwise (don't ask me why though...)

As for evilmegaman's suggestion, idk - feel free to try it - he usually knows what he's talking about :)

Also, try booting up with the Ubuntu disk - I've never tried that one, but if it's like other distros, there's usually a bootloader recovery mode.

zarquon
October 20th, 2005, 05:55 PM
Is this the error message or similar message:
Booting 'Windows NT/2000/XP'

root (hd2,0)
Filesystem type unknown, partition type 0x7
Savedefault
makeacitve
chainloader +1

If xp is on the 1st partition try the following at the grub prompt in ubuntu:

> rootnoverify (hd0,0) (assuming that xp is on the 1st partition)
> makeactive
> chainloader +1
> boot

If your not sure where the partiton is just do fdisk -l and post the info here.

Its just a simple grub config error, no need to wipe the mbr.

black_magiic
October 20th, 2005, 06:14 PM
Is this the error message or similar message:
Booting 'Windows NT/2000/XP'

root (hd2,0)
Filesystem type unknown, partition type 0x7
Savedefault
makeacitve
chainloader +1

If xp is on the 1st partition try the following at the grub prompt in ubuntu:

> rootnoverify (hd0,0) (assuming that xp is on the 1st partition)
> makeactive
> chainloader +1
> boot

If your not sure where the partiton is just do fdisk -l and post the info here.

Its just a simple grub config error, no need to wipe the mbr.

Thats exactly it. And to the rest of you thanks for the remarks :P Im sure it will help her sleep easier tonight. So if I use the stuff you said supplementing the (hd0,0) for whatever it says it is in the error message that should fix it? And do I do this from Ubuntu or in GRUB during boot.

zarquon
October 20th, 2005, 06:38 PM
Thats exactly it. And to the rest of you thanks for the remarks :P Im sure it will help her sleep easier tonight. So if I use the stuff you said supplementing the (hd0,0) for whatever it says it is in the error message that should fix it? And do I do this from Ubuntu or in GRUB during boot.

There are two ways to do this.

In ubuntu command prompt type:

sudo vi /boot/grub/menu.lst

Then search for the (hdX,X) entry where X,X are the partiton table and replace with 0,0 if the
xp partion is first on the drive.

Alternatively At the grub boot screen press c for grub command prompt,
Then type the following commands in this order
> rootnoverify (hd0,0)
> makeactive
> chainloader +1
> boot
If you are unsure where the partition lies just type fdisk -l
and you will get a partition list. Copy&paste the fdisk -l screen here and i will tell you the correct partiton entry in the grub config.

Whichever way you use to configure grub is up to you, but the grub command prompt wont give you access to fdisk if you need to display partition table.

black_magiic
October 20th, 2005, 07:51 PM
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 27903 224130816 7 HPFS/NTFS
/dev/hda2 27904 30515 20980890 f W95 Ext'd (LBA)
/dev/hda5 27904 28556 5245191 83 Linux
/dev/hda6 28557 30515 15735636 83 Linux

Disk /dev/hdb: 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/hdb1 * 1 9728 78140128+ 7 HPFS/NTFS

Disk /dev/sda: 200.0 GB, 200049648128 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 24321 195358401 c W95 FAT32 (LBA)
root@Laker:/home/laker #
root@Laker:/home/laker #

thats what fdisk gets me

zarquon
October 20th, 2005, 08:19 PM
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 27903 224130816 7 HPFS/NTFS
/dev/hda2 27904 30515 20980890 f W95 Ext'd (LBA)
/dev/hda5 27904 28556 5245191 83 Linux
/dev/hda6 28557 30515 15735636 83 Linux

Disk /dev/hdb: 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/hdb1 * 1 9728 78140128+ 7 HPFS/NTFS

Disk /dev/sda: 200.0 GB, 200049648128 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 24321 195358401 c W95 FAT32 (LBA)
root@Laker:/home/laker #
root@Laker:/home/laker #

thats what fdisk gets me

You have two hard drives. As there is an ntfs partiton on both i am not sure which one has the xp os on it. If xp in installed on the first hard drive (the one with the linux partition also), then the grub config would be (hd0,0).

If xp is on the second partition then then grub config would be (hd1,0).

If you haved tried the (hd0,0) already then it is probably (hd1,0) i.e. the disk with just the ntfs partition. Let me know.

black_magiic
October 20th, 2005, 08:22 PM
ya the 80GB all NTFS one is the windows install and it is just windows nothing else. I will try the hd1,0 thing right now. I'll post if it works.

EDIT: No luck. I tried the commands in grub and it just gave me Missing NTLDR or something to that effect when I finally sent the boot command. Any ideas what I might have done wrong.

zarquon
October 20th, 2005, 08:44 PM
ok (hd1,0) is the correct index so here is the solution,




Boot with WinXP CD, Repair, Command Console (insert Admin password)

COPY X:\i386\NTLDR C:
COPY X:\i386\NTDETECT.COM C:

Where X: is the cd drive and C: is your os drive (just change to whatever it is for you)
exit the Command Console prompt (which will cause an automatic reboot)


Grub should now boot into WinXP.

1] Login into Administrator Account
2] Start -> Run -> cmd
3] attrib NTDETECT.COM +s
4] attrib ntldr +s
5] exit command (cmd) prompt window
6] Open C:\, Right click those two files, properties, set hidden, apply (1 at a time)

This should fine for you now.

black_magiic
October 20th, 2005, 09:01 PM
So if I do that it wont let me boot Ubuntu anymore will it. From there should I install Acronis OS selector to use to boot between the two?

zarquon
October 20th, 2005, 09:28 PM
So if I do that it wont let me boot Ubuntu anymore will it. From there should I install Acronis OS selector to use to boot between the two?
You can use the Xp bootloader to dual boot linux, heres how.


Boot Ubuntu.
Open root terminal
type in this command (without the" #")
# dd if=/dev/hdaXX bs-512 count=1 of=/Home/bootsect.lin

hdaXX is your /boot partition.

# dd if=/dev/hda10 bs-512 count=1 of=/Home/bootsect.lin

bootsect.lin is the boot sector file

the command above is copying the 1st sector of /boot partition and turn it into a file which then you store it . (NOTE: you can copy it into floppy disk or any other location where windows can access it)
If possible mount your os partiton and do a cp bootssect.lin ..............

Restart you Operating System into Windows.
Copy the file bootsect.lin from the floppy disk to you C:\
Then click Start\run and keyin this line
c:\boot.ini
Add thisline c:\bootsect.lin="Ubuntu Linux" in boot.ini
THIS IS HOW IT WILL LOOK LIKE IN BOOT.INI AFTER ADDING IT
[boot loader]
timeout=30
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" /fastdetect
c:\bootsect.lin="Ubuntu Linux"

After that save the file and you can now boot into Linux using Xp Bootloader
You can now do anything you like to Linux and still be able to boot in Windows like normal

black_magiic
October 20th, 2005, 09:35 PM
Well the copying files off the xp disk doesnt seem to want to work. Its convinced the os is installed to D:\ which is my dvd burner where I put the windows disk. I tried to copy the files from D:\ to C;\ but I just get access denied. Im not quite sure what Im doing wrong.

zarquon
October 20th, 2005, 09:43 PM
Well the copying files off the xp disk doesnt seem to want to work. Its convinced the os is installed to D:\ which is my dvd burner where I put the windows disk. I tried to copy the files from D:\ to C;\ but I just get access denied. Im not quite sure what Im doing wrong.

In that case just do
>bootcfg /rebuild
>fixboot.

And then install another bootloader.

black_magiic
October 20th, 2005, 10:23 PM
:D SHE LIVES Thanks for all your help. Im going to try this Acronis thing now to see if that is what I need. Thanks again for your patience and help.

Dark Messenger
November 27th, 2005, 07:37 PM
In that case just do
>bootcfg /rebuild
>fixboot.

was it this that worked for you, black_magic?

Auggie2k
November 27th, 2005, 07:43 PM
:D SHE LIVES Thanks for all your help. Im going to try this Acronis thing now to see if that is what I need. Thanks again for your patience and help.
How did Acronis work out for you? It's a nice little program.

http://images.searchallsoft.com/imagesc/-aHR0cDovL3d3dy5hY3JvbmlzLmNvbS9waWNzL3NjcmVlbnNob3 RzL29zczUwL2Jvb3QtMDFtLmVuLmdpZg==-450-300.gif