LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-04-2010, 08:40 PM   #1
x111
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 49

Rep: Reputation: 7
DOS partition won't boot with GRUB


Hi. I'm trying to install MS Windows from my Linux box. Because I have no CD drives nor USB ports, I can't use any live media to boot the computer and install Windows from the installation disk. So I've created a FAT partition and copy DOS files on that, so that I can boot this partition and install Windows from there. But the problem is I still haven't able to get it to boot.

Here's the output of fdisk -l:
Code:
Disk /dev/hda: 40.0 GB, 40007761920 bytes
16 heads, 63 sectors/track, 77520 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xfc7efc7e

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       26416    13313159+   b  W95 FAT32
/dev/hda2           26416       77520    25756889    f  W95 Ext'd (LBA)
/dev/hda5           26416       59775    16813408+   b  W95 FAT32
/dev/hda6           59776       75270     7809448+  83  Linux
/dev/hda7           75273       75672      200781   82  Linux swap / Solaris
/dev/hda8           75672       77202      771088+   b  W95 FAT32
/dev/hda9           77202       77520      160618+  82  Linux swap / Solaris
Here's the entry for booting that DOS partition in GRUB's menu.lst:
Code:
title		DOS
rootnoverify	(hd0,0)
chainloader 	+1
makeactive
boot
I created the partition by using cfdisk to format it as type 0B: WIN95 FAT32, and made dos filesystem on it using:
Code:
mkfs.msdos /dev/hda1
But when I reboot and select the DOS entry in GRUB, it tells me that:
"This is not a bootable disk. Please insert a bootable floppy and press any key to try again."

Anyone please tell me what I'm missing or doing wrong here? Do I need to change something on the MBR of hda1 etc..., I'm really no expert on this.
Thanks for all your help.

Last edited by x111; 10-04-2010 at 08:42 PM. Reason: More detail
 
Old 10-05-2010, 07:19 AM   #2
czarherr
Member
 
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 14
Posts: 288

Rep: Reputation: 32
Have you actually installed windows on that partition, or have you just copied the installation files over to it?
 
1 members found this post helpful.
Old 10-05-2010, 07:25 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
What files did you copy? My guess is you are missing the system files i.e. io.sys, msdos.sys and command.com.
 
1 members found this post helpful.
Old 10-05-2010, 07:33 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
What DOS-version are you using? No version below 7.10 is able to use FAT32, so you have to format it with FAT16. FAT16 can not be used on partitions larger the 2GB, so I think if you are using a DOS-version below 7.10 you will not really be able to install Windows-XP the way you thought of.
 
1 members found this post helpful.
Old 10-05-2010, 09:29 AM   #5
x111
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: 7
czarherrm, michaelk: I have copied msdos.sys, io.sys, commmand.com as well as other tools to boot DOS and to install Windows XP afterwards. But I cannot boot DOS. Well, I could not...

Until I found an instruction here on how to boot a disk image directly using memdisk with GRUB. The image I use is Dos 6 from allbootdisks.com, and I can install Windows XP using setup files copied to that the partition beforehand.

After setup has copied all files needed for installation to the partition, it reboots the computer to continue the rest of the installation, and now the problem with booting that DOS partition still persists. What I expected here is Windows Setup will remake the boot record on the partition for booting to Windows. As TobiSGD suggests, I think that this has something to do with the fact that Setup has failed to do that because it was invoked in a Dos6 environment. That's my best guess so far. I have tried fdisk /mbr in Dos6 but get no good result.

Now I'm going to boot a Windows XP iso and try fixing the boot record. I'll post the result here to keep you informed. Thank you all.

Last edited by x111; 10-05-2010 at 09:35 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardy Herron 8.04 -- Can you put GRUB on a floppy or dual boot with DR-DOS? jlaurits Ubuntu 2 07-05-2008 06:01 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 12:09 PM
How do I make Command.com (aka dos) boot in grub Bp103 General 3 05-24-2006 01:33 PM
Boot problem with GRUB (for loading DOS) djkoe Linux - General 1 01-03-2004 08:00 PM
mount dos partition at boot up joesat Linux - Software 1 11-05-2002 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration