LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2004, 02:54 AM   #1
hroman
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Rep: Reputation: 0
DOS Floppy image w/ grub?


I'm creating a livecd which will contain a couple dos floppy images. I've been able to do this using isolinux w/ memdisk but I wanted to move over to using Grub on the livecd.

Is there a way to have grub boot a DOS image? I tried using memdisk with grub but it fails stating "non-system disk or disk error"

I also wanted to know if there is a way to enter comments in the menu.lst file that will show up on the boot screen...not as menu items but as comments above or below the menu...thanx!

help me please!
 
Old 10-03-2004, 09:32 AM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Rep: Reputation: Disabled
your second question use
cat /path to file /textfile

note make sure you use root (hdX,y) first to set the pathway othewise you will need to use absolute path like
cat (hd0,6)/var/mytext file

2) you may need to add a pause command to give you time to read it
title boot me and kick me
root (hd0,0)
cat /file
pause "press a key to continue"
kernel /boot/vmlinuz root=/dev/hda5 ro
cat /file2
pause
initrd /boot/initrd.img

B) NO answer to your dos as I have never tried it but try as a chainloader command

title dos image
rootnoverify (hd2,11) change to what dos image is to boot
map (hd0) (hd2) may delete depending on if windows is (hd0,0)
map (hd2) (hd0) may delete etc
chainloader +1
 
Old 10-04-2004, 12:12 AM   #3
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Rep: Reputation: Disabled
since you have not yet replied I am just thinking out loud that you can probably just use the pause command if the text to be displayed is on ONE line.

report back your results to help others please
 
Old 10-08-2004, 05:07 PM   #4
hroman
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
sorry i took so long to reply...

no i haven't been able to boot the dosimage file so i've gone back to using isolinux/memdisk combination...it works...

Thanx!
 
Old 10-08-2004, 05:23 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
I have used the grub patch which comes on RIP linux cdroms to create a multi boot grub cdrom menu.. The version of grub which comes with RIP (or the patch) was a bit fussy and didn't allow any extras like "default=" or "timeout=" or even blank lines. I suspect that may be a function of the patch but other wise things work quite well.

Below is an earlier vesion of my /boot/grub/menu.lst
Code:
color light-gray/blue black/light-gray
title *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* R.I.P. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
root (hd0)
title RIP V7.8
kernel /boot/kernel3
initrd=/boot/initrd3.gz vga=normal devfs=nomount load_ramdisk=1 init=/linuxrc prompt_ramdisk=0 root=/dev/ram0 rw
title Rescue CD V0.2.10
kernel /boot/vmlinuz1 video=i810fb:xres=800 acpi=off root=/dev/ram0 init=/linuxrc nokeymap
initrd=/boot/initrd1
title Feather Linux V0.3.7
kernel /boot/memdisk
initrd=/images/knoppix.img
Puppy Linux V0.8.4
kernel /boot/vmlinuz root=/dev/ram0 ramdisk_size=55296 initrd_archive=ext2 PFILE=pup080-none-262144
initrd=/boot/image.gz
title Slax Linux V4.0.1
kernel /boot/vmlinuz2 max_loop=255 init=linuxrc livecd_subdir=/ load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=7777 root=/dev/ram0 rw
initrd=/boot/initrd2.gz
title Mulinux V14r0
kernel /boot/mulinuz root=/dev/ram0 ramdisk_size=4600 vga=normal max_scsi_luns=1
initrd=/boot/root.gz
title Freedos V9
kernel /boot/memdisk
initrd=/images/freedos.img
title Tomsrtbt Linux
kernel /boot/memdisk
initrd=/images/tomsrtbt.img
title Ranish Tool V2.44
kernel /boot/memdisk
initrd=/images/ranish.img
title Memtest
kernel /boot/memdisk
initrd=/boo/memtest.bin
Once you have the systems loaded into the working directory ( cdbase ) and have the menu.lst setup, you can proceed as follows....

CD into the cdbase and type:
cdrecord dev=0,0,0 blank=fast

mkisofs -J -R -b boot/grub/iso9660_stage1_5 -c boot/boot.cat \
-o /home/bootcd.iso -no-emul-boot -boot-load-size 32 -boot-info-table .

cdrecord -v speed=4 dev=0,0,0 -data /home/bootcd.iso
 
Old 10-09-2004, 01:23 AM   #6
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Rep: Reputation: Disabled
homey

love your work.

if you have time can you explain your use of the ramdisk and the reason I ask is can I use it to create a ramdrive like toms that loads a initrd file that has a /dev structure that accepts /dev/fd0u1680 ?

which might then be used for spanning floppies with a kernel that is at size 1680 the initrd is likely to be about 400 kb and the rest of grub stuff a few hundred Kb.

I am still thinking of my failure to get 1680 multi floppies to load 2.6 kernels but have got 1440 Kb floppies to work using the pause command.

any clues or tips would be appreciated.

thanks for reading my wish list in any case.

Broman I hope you can forgive my sidetrack
 
  


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
booting floppy image with grub rr1mand0 Linux - General 1 10-07-2005 07:34 AM
Ubuntu boot through DOS with kernel image plm Debian 2 02-19-2005 03:37 PM
dos formatted floppy tjb Linux - Newbie 9 08-17-2004 09:08 AM
Floppy Drive 5 1/4... old ms-dos!?? FreakboY Linux - Hardware 8 06-22-2004 12:54 PM
dos floppy/kernel version newguy1976 Linux - General 1 10-19-2000 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration