LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-03-2006, 11:36 PM   #1
Boca
LQ Newbie
 
Registered: Aug 2005
Location: Phoenix AZ area
Distribution: Ubuntu 5.10
Posts: 12

Rep: Reputation: 0
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
 
Old 05-04-2006, 01:07 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,201

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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).
 
Old 05-04-2006, 10:51 AM   #3
Boca
LQ Newbie
 
Registered: Aug 2005
Location: Phoenix AZ area
Distribution: Ubuntu 5.10
Posts: 12

Original Poster
Rep: Reputation: 0
Ok, I can try this. But, I started by coping the boot floppy (which works), shouldn't that be the right one?
 
Old 05-04-2006, 02:56 PM   #4
comptiger5000
Member
 
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193

Rep: Reputation: 30
unfortunately, dual boot with ntldr is just a bad idea
 
Old 05-04-2006, 07:38 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,201

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 05-05-2006, 09:12 AM   #6
onedingo
Member
 
Registered: Jan 2006
Location: Pittsburgh, PA, US
Distribution: Arch
Posts: 69

Rep: Reputation: 19
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.

Last edited by onedingo; 05-05-2006 at 09:57 AM.
 
Old 05-05-2006, 10:46 PM   #7
Boca
LQ Newbie
 
Registered: Aug 2005
Location: Phoenix AZ area
Distribution: Ubuntu 5.10
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 05-15-2006, 11:50 PM   #8
Boca
LQ Newbie
 
Registered: Aug 2005
Location: Phoenix AZ area
Distribution: Ubuntu 5.10
Posts: 12

Original Poster
Rep: Reputation: 0
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-
 
Old 05-16-2006, 03:00 PM   #9
comptiger5000
Member
 
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193

Rep: Reputation: 30
if it works, just use the floppy, then nobody else can screw up your linux if they use your pc
 
Old 05-16-2006, 03:46 PM   #10
Boca
LQ Newbie
 
Registered: Aug 2005
Location: Phoenix AZ area
Distribution: Ubuntu 5.10
Posts: 12

Original Poster
Rep: Reputation: 0
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot problem (Ubuntu and mepis) lightcastle Linux - Newbie 7 12-04-2005 04:02 AM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
XP PRO and Ubuntu Dual Boot Problem kamikazejustin Linux - Newbie 2 04-27-2005 09:13 AM
Dual Boot Win XP and FC2 w/ NTLDR on Seperate Drives? manstretch Linux - Newbie 3 05-21-2004 04:31 AM
NTLDR Dual Boot XP(RAID)/SuSE9.0 MrOuija Linux - Newbie 24 03-04-2004 02:52 AM


All times are GMT -5. The time now is 03:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration