Protected by Copyscape DMCA Takedown Notice Infringement Search Tool
All opinions expressed on this blog are my own and do not reflect those of BIET Jhansi students and employees,staff,or any official whatsoever, colleagues, family or friends.I express my opinions as a free citizen of a democracy exercising my Fundamental Right of speech. The intention of this blog is merely to air my views and opinions (and sometimes, frustration) and is not intended to insult, instigate,disgrace or hurt anyone(body,organisation or institution). Anyone is free to disagree with any or all of my views and can express them here or elsewhere. Any civil dialogue that is not unreasonably hurtful is welcome. I, however, reserve the right to delete any comment without any reason or warning.No content of this blog will in any way be a violation UNDER IPC Sections 506 and 295A .Legal issues if any will be ristricted to the MEERUT jurisdiction only.This blog/web space is in the process of being copyrighted to safegaurd my interests erstwhile this be considered to be under the creative commons commercial INDIA License.This space resorts to politically and ethically correct statements, complying with the spirit of blogging .This is an opinion medium, not a reporting medium and hence should not be IN ANY CASE BE TAKEN AS A FUNCTION OF MAINSTREAM MEDIA.The blog complies with the NAAVI guidelines. Thank you, MANOJ SINGH RANA

Sunday, October 4, 2009

Booting FreeDOS with GRUB

To toy around, I decided to install FreeDOS on a real system running Ubuntu. This post will document the process of adding an entry to the GRUB menu loader to boot it. Some small notes:

* Resizing partitions with GPartEd is somewhat funky (no global progress bar) and can take some serious time (if you are moving data, it first performs a complete test run, thus taking twice as long as the vanilla operation)
* If you use the XFDISK tool from the FreeDOS CD, you'll have to restart the system for the installer to continue - this is a limitation of DOS, which can't dynamically update the list of partitions.
* By default, the FreeDOS installer doesn't muck around with the MBR - a wise choice, but one which can make you wonder: how do I boot this thing? Read on an you will find out...
* Some memory manager configurations presented in the FreeDOS boot menu will not work - if this is the case, try other ones.

To add FreeDOS to your GRUB menu, do the following:

1. Find out the UUID of the partition you've installed FreeDOS on (you coult use the direct addressing, but UUID's just look more fun :-)). There are several ways presented on the ubuntu forums, from which I like the following the best: ls -la /dev/disk/by-uuid.
2. Open your menu.lst in a text editor: sudo gedit /boot/grub/menu.lst
3. Go to the end of the file after the "### END DEBIAN ..." part. That part is overwritten every time a kernel update is installed, so it is wise to avoid it, unless you want to repeat these steps frequently :-)
4. Add the following lines:

title FreeDOS
uuid 1abf-24ac
makeactive
chainloader +1
boot

5. Some notes: of course you can make the title whatever you want. The UUID must be the UUID of the partition which you've determined at step 1. It must be lowercase (otherwise the boot will fail).
6. Save the file and test the new entry by rebooting, entering the GRUB menu (by pressing ESC during the 3 seconds grace time) and choosing the new entry.

PS. You can read the GRUB manual for more commands, however I found it to be a little outdated (for example it doesn't mention UUID).

No comments:

Post a Comment

Comments Section