LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubuntu 5.10 dual boot problem using NTLDR (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-5-10-dual-boot-problem-using-ntldr-441441/)

Boca 05-03-2006 11:36 PM

Ubuntu 5.10 dual boot problem using NTLDR
 
I've serched for help with this, pardon if I repeat a question addressed elswhere.

Here's the shtick;

Single drive, all new installs, windoze xp installed first, then Ubuntu 5.10. Did not install grub to MBR (don't want to), instead put it on floppy. Followed recommendations found several places; copy using dd if...512.. count1, copied it onto a shared fat 32 partition, copied it into C:/ and added a line to the boot.ini.

So what then?

Win loader shows up, Xp boots fine, choosing Ubuntu once yielded something about a bad allocation table, and since then a plain "-".

However Ubuntu boot fine from the floppy!

My question; how can I troubleshoot this? how can I determine where this is falling apart?

Thanks in advance for your help! :P

syg00 05-04-2006 01:07 AM

You need to re-install grub to the root (/) prior to doing the dd over to your XP environment.
You don't have enough smarts in the boot sector record to initiate the load successfully (you effectively need what's on the floppy).

Boca 05-04-2006 10:51 AM

Ok, I can try this. But, I started by coping the boot floppy (which works), shouldn't that be the right one?

comptiger5000 05-04-2006 02:56 PM

unfortunately, dual boot with ntldr is just a bad idea

syg00 05-04-2006 07:38 PM

Quote:

Originally Posted by Boca
Ok, I can try this. But, I started by coping the boot floppy (which works), shouldn't that be the right one?

No.
Floppies have a different structure to a hard disk, and the BIOS has always known how to handle them.
Quote:

Originally Posted by comptiger5000
unfortunately, dual boot with ntldr is just a bad idea

Agreed. Better grub than lilo however.

onedingo 05-05-2006 09:12 AM

Here is what I do:

*** THIS WILL NOT WORK FOR AN NTFS %SYSTEMDRIVE% AND ASSUMES AN EMPTY DRIVE***

Before a WinXP install I create a stripped down Win98SE DOS only install to C:\DOS using the contents of a Win98SE start disk (Google for Win98SE+start+disk). You will probably need to add the updated fdisk.exe to it from Microsoft otherwise it will not accurately partition drives larger than 64GB (MS KB263044 - Fdisk Does Not Recognize Full Size of Hard Disks Larger than 64 GB).

The procedure goes something close to this:

Boot from start disk
FDISK (Leave room for your Linux stuff!)
FORMAT C:
SYS C:
CD C:
MKDIR DOS
MKDIR WINDOWS
copy a:\*.* c:\dos
copy d:\*.* c:\dos (This may vary by system but it is the MS-RAMDRIVE volume)
cd c:\dos (Much of the junk in there can be removed, do it if you know how)

Now you will have to move/create/edit the autoexec.bat, config.sys, msdos.sys files and put them in C:\. Mine are:

(AUTOEXEC.BAT)
@ECHO OFF
MD C:\TEMP
SET TMP=C:\TEMP
SET TEMP=C:\TEMP
SET DIRCMD=/A /O:GNE /V
SET PATH=C:\DOS;C:

(CONFIG.SYS)
DEVICE=C:\DOS\HIMEM.SYS

(MSDOS.SYS)
;SYS
[Paths]
WinDir=C:\Windows
WinBootDir=C:\Windows
HostWinBootDrv=C

Make sure you use MSDOS EDIT or something that will write DOS line endings (CR/LF)
Use ATTRIB -h -r [filename] to remove the hidden+read only status
Make sure WinXP (after install) does not parse autoexec.bat. Get MS Powertoys/TweakUI to set it.
After WinXP install you will probably have to remove the last 4 lines from msdos.sys

Now install WinXP. It will think you have Win98 installed and ask if you want to upgrade or install new. I can't remember exactly which one it is as it's been a while but your chances are 50/50.

After installation you will get a boot menu with Windows XP & Windows. Select Windows and it will drop you to a C:\ prompt.

Now you can use loadlin to boot your Linux machine. After you install it of course...

If you already have WinXP installed, no floppy drive or bootable Win98SE CD, FreeDOS(.org) may be the way to go. I have not tried it myself but I heard it will install and add a bootsect.dos (512 Byte boot sector) and entry to boot.ini on an existing WinXP system.

Boca 05-05-2006 10:46 PM

got it!
 
I repeated the steps in found at;
http://www.ubuntuforums.org/showthread.php?t=56723
and it worked!

I can only assume it was OPERATOR ERROR the first 2 times I did it.

I did make use of the Ubuntu Root Sudo article found at;
wiki.ubuntu.com/RootSudo?action=print

Thank you for your help and patience to nubies like me :P

Boca 05-15-2006 11:50 PM

the ongoing saga;
 
The above worked perfectly.....

until I had to move the whole thing to a different (larger) sata.

Well, reinstalled Windows and Ubuntu, put Grub in /boot and boot from the floppy, worked perfect! Then I started tried to change to using the XP bootloader, same process at before and it doesn't work. It yields 'GRUB Geom Error'.

To recap, this is the same box, processer, memory, everything except moved from a small pata drive to a medium sized sata. And it works perfectly booting from the floppy, it just errors booting from the XP loader.

Any suggestions for finding this?

Thank you for your ideas-

comptiger5000 05-16-2006 03:00 PM

if it works, just use the floppy, then nobody else can screw up your linux if they use your pc

Boca 05-16-2006 03:46 PM

ah yes, but floppys eventually floop and the box is for my daughter. Windows for her games, and Ubuntu for internet and work. (She figured out the Unbuntu instant messager on her current box)


All times are GMT -5. The time now is 04:56 AM.