LinuxQuestions.org
Visit Jeremy's Blog.
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 12-23-2007, 12:08 PM   #1
joe2748
Member
 
Registered: Nov 2007
Distribution: Ubuntu 9.10
Posts: 36

Rep: Reputation: 15
Create a bootable dos partition from ubuntu


Hey guys, I have an old laptop that doesn't have a working cd-drive, and cant boot from usb. It has ubuntu already on it but I need it to dual boot with xp. The plan is to download a bootable dos iso from somewhere and then from that image use dd to create a bootable dos partition. Then use grub to boot into that dos. Once this is completed I can copy the i386 directory from the windows cd on another computer on my network to the dos partition, and be ready to go.

I thik i theory this is doable. I have an iso for windows 95b bootdisk. I tried
dd if= isofile.iso of=/dev/hda7

but this kills the filesystem which is fat32, and grub complains about not knowing what type of filesystem hda7 is.

Any idea how to accomplish this? Is the problem maybe that win 95b may be on fat16 or something and dding that to fat32 messes up the structure?
 
Old 12-23-2007, 02:04 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I would have thought it would be far more easier and logical to boot up a Dos floppy and format the fat partition with the "s" option thereby transferring the boot code to the partition.

Currently the way you are doing it the partition is still not bootable even after you successfully transfer the iso file across.

If the original Dos system is in fat16 then its addressibility is limited to the first 2Gb of the hard disk.
 
Old 12-23-2007, 02:19 PM   #3
joe2748
Member
 
Registered: Nov 2007
Distribution: Ubuntu 9.10
Posts: 36

Original Poster
Rep: Reputation: 15
That would probably be a lot easier, but the machine has no floppy drive, and the cd drive is broken.
Do you think I can use dosemu to run format ? Then I could possibly copy over the contents of the iso.
 
Old 12-23-2007, 07:21 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Every user can use programs like fdisk or cfdisk to create a Dos fat16 or fat32 partition and format it with the mkdosfs command. However in your case you need to boot up the Dos in that partition and therefore it needs to have the Dos boot loader transferred.

I use Dos but not a lot and the way I know to transfer Dos boot code into a partition (not MBR) is by either "format c:/s" or "sys c:", both requiring the user to boot up a Dos system so that Dos is in operational mode to execute format or sys.

You could try to put Freedos in an external hdd as I have installed Freedos in this way before.

Others may have a better idea.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create bootable partition image to burn hs.chauhan Linux - General 16 01-31-2007 09:52 PM
Trying to create bootable backup partition jeffbarish Debian 4 10-10-2005 02:05 PM
Create bootable VFAT partition from Linux ugenn Linux - Software 2 04-29-2004 12:27 PM
burn cd's a dos bootable 1's? ifreborn Linux - Software 0 12-13-2003 09:28 AM


All times are GMT -5. The time now is 10:52 AM.

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