GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a partitioned hard drive with linux on one parition, and fat16 on another (must be so for my laptop's hibernation file). I was just idly thinking to my self, when an evil idea came upon me: what if I were to install Ms-dos on it and use it to play old games (it is a 486). The question is: how to I get dos on there without overwriting the mbr? Are the alternatives (freedos, pc dos, etc) compatible with all old games?
DOSBox has always worked quite well for me for running DOS programs but I've never tried it with any games. FreeDOS is supposed to be trying to be 100% compatible with MS-DOS and I've never had a DOS program fail to run on that for me either.
Quite how you would get it on without touching the MBR I don't know but it must be possible.
Do this:
dd if=/dev/hda of=/mbrbackup bs=446 count=1
Then, after dos erases the mbr, use a linux boot disk and do
dd if=/mbrbackup of=/dev/hda bs=446 count=1
can i install dos on another disk and dd it over to the partition, or would there be some configuration issues there? What is the grub command to boot dos?
Why not kill the hibernatoin partition, do you actually use it? I suspend mine when I got from home to work and back and it doesn't even use 10% of the battery, I could stay suspended for days at that rate, so I turned off hibernation and don't use deleted the partition
"can i install dos on another disk and dd it over to the partition, or would there be some configuration issues there?"
I used to dual boot Linux and Novell DOS 7. DOS would only work if I installed it on /dev/hda1. When I copied it from one partition to another I used cp and had no problems. (I can't remember if I had to do anything special to copy the hidden files.)
I only used DOS for 10 minutes a week. Rather than put Novell DOS 7 in LILO I created a bootable DOS floppy with the 2 hidden files and command.com. I booted this floppy to the A> prompt. Then I switched to C> and I was in business.
My laptop does not have a floppy or cd drive, so the only feasible way of putting dos on it is by putting the files on the 1st partition using linux (from the harddisk/network). I want to be very careful with overwriting boot records, etc. I have a copy of all the files from a working dos installation on another computer, and of course access to freedos. I can put all the system files on the partition, but I need to know where I can find an image of a boot sector for that partition I can dd into it, and also the exact command I should use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.