keep on with you great work!!
![:)](http://reboot.pro/public/style_emoticons/default/smile.png)
Posted 19 January 2009 - 08:27 PM
Posted 19 January 2009 - 08:34 PM
Posted 19 January 2009 - 08:38 PM
jaclaz: have you already written that batch to convert syslinux .cfg menus to menu.lst entries? i would appreciate that very much!
keep on with you great work!!
Posted 19 January 2009 - 10:38 PM
Posted 20 January 2009 - 08:27 AM
@ caze
But tinybit needs to implement the "writing-to-file feature" first.
Posted 20 January 2009 - 11:12 AM
It has already been implemented since 2009-01-11. The newly implemented dd command can be used to duplicate bytes or sectors between two existent files.
For tthe time being I'll simply write a "conversion" batch.As I see it , UBCD uses a very complex method of selecting the various booting options.
Are you in contact with the Author/Authors?
Maybe if someone could explain how all things are interconnected we can find a simple way.
Posted 20 January 2009 - 06:38 PM
Which means we should start working?
![]()
jaclaz
Posted 20 January 2009 - 11:03 PM
I though that it wasn't ready because you didn't replayed yet.It has already been implemented since 2009-01-11. The newly implemented dd command can be used to duplicate bytes or sectors between two existent files.
APPEND initrd=/ubcd/images/fdubcd.igz ubcdcmd=biosWe need a file named bios with the contents that we need in the getargs.bat file.
dd if=()/ubcd/dosapps/grub4dos/bios of=(fd0)/getargs.bat((fd0)/getargs.bat is not the right place on the floppy I think, but I am to lazy now to look it up).
echo "initrd=/ubcd/images/fdubcd.igz ubcdcmd=bios" > (fd0)/somefile.txtWhere somefile.txt is a existing file of a certain lenght.
Posted 21 January 2009 - 02:35 AM
It would be more practical if grub4dos supports some kind of echo command that can write to a file.
echo "initrd=/ubcd/images/fdubcd.igz ubcdcmd=bios" > (fd0)/somefile.txtWhere somefile.txt is a existing file of a certain lenght.
Posted 21 January 2009 - 03:54 PM
writetofile ==> comparable with the default command: file to which you want to write text
savetofile ==> comparable with the savedefault command: all characters that you want to write to the file on 1 line
Posted 21 January 2009 - 04:56 PM
@jaclaz and all other persons
When the freedos image is run with memdisk, you get something similar in the _getargs.bat file as:@SET initrd=/ubcd/images/fdubcd.igz @SET ubcdcmd=ranish @SET BOOT_IMAGE=memdisk @echo A: is MEMDISK
I checked the _getargs.bat file generated on Ramdrive in %TMP% when choosing "ranish":
@SET initrd=/ubcd/images/fdubcd.igz @SET ubcdcmd=ranish @SET BOOT_IMAGE=memdisk @echo A: is MEMDISK
Where are the others variable catch from?
Are they needed?
******************************************************************************
*** New command 'dd' to copy files ***
******************************************************************************
Usage:
dd if=IF of=OF [bs=BS] [count=C] [skip=IN] [seek=OUT]
Copy file IF to OF. BS is blocksize in bytes, default to 512. C is blocks to
copy, default is total blocks in IF. IN specifies number of blocks to skip
when read, default is 0. OUT specifies number of blocks to skip when write,
default is 0. Skipped blocks are not touched. Both IF and OF must exist.
Both IF and OF must have a leading device name, i.e., of the form `(...)'.
You may use `()' for the current root device.
dd can neither enlarge nor reduce the size of OF, the leftover tail of IF
will be discarded. OF cannot be a gzipped file. If IF is a gzipped file,
it will be decompressed automatically when copying.
dd is dangerous, use at your own risk. To be on the safe side, you should
only use dd to write a file in memory.
In some cases when writing a file in NTFS, dd might fail.
If you attempt to write a file that is not in memory by starting dd in a menu,
you will safely be refused :-)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!!
!!!! Caution! Both IF and OF can be a device name which stands for !!!!
!!!! all the sectors on the device. Take utmost care! !!!!
!!!!______________________________________________________________________!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Posted 22 January 2009 - 06:08 PM
of course i would try to. i seem to be among the unhappy ones for which memdisk does not work. my workaround is using "menu" at dos prompt. already very useful. (i just posted a note on my current situation as a beginner in these things. i would much appreciate it if you could have a look especially on the last few lines there in case you find the time.) (i did not yet understand how you plan to tell dos-/fdubcd what it should do. maybe you write to a file on an emulated ramdrive partition in memory, mapped e.g. as fd1, by adding contents via dd? i'll just wait and see...) good luck.@caze
Now all you have to do is have some patience.
Are you game for troubleshooting ALPHA's, and BETA's of the batch?"
Posted 23 January 2009 - 12:39 PM
That would be a problem. (see below)@jaclaz:
of course i would try to. i seem to be among the unhappy ones for which memdisk does not work.
That makes a nice, round two of us not knowing how I will do that.(i did not yet understand how you plan to tell dos-/fdubcd what it should do. maybe you write to a file on an emulated ramdrive partition in memory, mapped e.g. as fd1, by adding contents via dd?
LABEL - MENU LABEL *Boot next device TEXT HELP Boot next device in the boot sequence. Supporting BIOS required. May not work with all systems. ENDTEXT LOCALBOOT -1
CONFIG /pmagic/isolinux.cfgWhich I have to think about a little...., suggestions are welcome...
Posted 23 January 2009 - 01:34 PM
Posted 23 January 2009 - 02:35 PM
Posted 23 January 2009 - 04:16 PM
Can someone explain how contents of _getargs.bat are used?
If memdisk is not used should BOOT_IMAGE be set?
If memdisk is not used should initrd be set?
I.E::
dd if=()/boot/afile.txt of=()/boot/anotherfile.txt bs=1 count=64 skip=128 seek=256
Will copy 64 bytes starting from offset 128 in file ROOT/boot/afile.txt to offset 256 of file ROOT/boot/anotherfile.txt?
Posted 23 January 2009 - 06:53 PM
Posted 24 January 2009 - 09:35 AM
(it produces a file with name job and content: hello, of course. now this job file would have to be somewhere grub4dos can write to and dosubcd can read from. at least that was my idea of your plan.)
#give me an : h
@SET ubcdcmd=ranishthe "indexed file" instead of
can be something like:abcdefghijklmnopqrstuvwxyz1234567890 ,.!
@SET ubcdcmd=ranish
@SET ubcdcmd=intelpiu
@SET ubcdcmd=cpuburn
....
and that is the tricky part, so if tinybit adds a WRITE function it would be far better/easier.It has already been implemented since 2009-01-11. The newly implemented dd command can be used to duplicate bytes or sectors between two existent files.
Posted 24 January 2009 - 10:21 AM
Posted 24 January 2009 - 11:23 AM
i see now a bit more. thank you. you are of course very right about it being easier to copy longer sections (i did not really mean to suggest to work per-byte
). and all being very much easier if there was some write/print/echo function in grub4dos (i assume from your post tinybit is among the developers of grub4dos). the fact that the output file has to preexist is also stated in grub4dos readme. i had overseen that and not studied the previous posts in this thread careful enough. sorry. by the way, it also says that outputfile always stays the same in length. so one probably (?) had to copy 0d0a or some other stopsignal, too. (i also have not yet understood where inputfile and outputfile would be conveniently placed. and sorry again for interrupting your discussion here.)
#@SET ubcdcmd=ranish
#@SET ubcdcmd=intelpiu
#@SET ubcdcmd=cpuburn
#....
Posted 24 January 2009 - 01:27 PM
:_testdrvshiftshiftif not "%cddrv%"=="" goto _eofif "%1"=="" goto _eofif "%1"==":" goto _eofcall drd.bat %1 -$if errorlevel 255 goto _eofif errorlevel 100 goto _eofgetargs | lmod /l1 /s=/ [$!] | stow drv$$$ >%tmp%\nuldir /s /b %1\*.* | tfind /f1 "%drv$$$%" >%tmp%\nulif not errorlevel 1 set cddrv=%1set drv$$$=goto _eofI decided to put the grub4dos menu in another directory to keep everything separated and clean.
Posted 24 January 2009 - 02:04 PM
OK.As far as I know the initrd= parameter is needed. It is used to find the right drive. Because memdisk always will give you this parameter and because the file always exists in the image can be booted in the first place, this is a great way to do it.
@SET BOOT_IMAGE=memdisk
See my post and as702 post at: http://www.ultimateb...t...22&start=20
This code should do it (I don't understand it completely because my batch knowledge is poor). This was in one of the revisions of the freedos image, so it can be changed now. I didn't seen as702 yet, but I will ask him, if this is still the case.
...and unnededly IMHO, and in one single stepI decided to put the grub4dos menu in another directory to keep everything separated and clean.
SET ConfigfileArg=!ConfigfileArg:.cfg=.lst!
SET ConfigfileArg=!ConfigfileArg:/isolinux/=/grub4dos/!
You can use "boot from first hd" to replace "*Boot next device" if grub4dos doesn't support this. If I remember well, "LOCALBOOT -1" returns -1 to the BIOS (=device not found or no media in drive or something like that. Not all BIOSes support it.
Posted 24 January 2009 - 03:39 PM
@SET BOOT_IMAGE=/isolinux/memdiskIn the isolinux menu, "kernel memdisk" changed to "kernel /isolinux/memdisk".
For the universal way, you will need to write another oneNo problem
, but my original intention was to create something capable of translating "all" (read "most"
) isolinux/syslinux .cfg files to correspondent grub4dos .lst ones, not "only" UBCD ones, in other words I intended to use the vast number of UBCD .cfg files as a "testing ground" for a "general use" batch.
Why should you want to use an old version of Parted Magic inside the UBCD iso? If you want to use an old version, just use the Parted Magic iso as a single entity. In the isolinux version of Parted Magic, the grub4dos menu is located at /boot/grub/menu.lst or /boot/grub/grub4dos.lst. In UBCD, it will be located at /pmagic/boot/grub/menu.lst and /pmagic/boot/grub/grub4dos.lst, so even if Patrick changes the location of menu.lst, it won't matter for UBCD.Which could be managed by an "exception", that would be non working in previous releases of pmagic and will become obsolete/not working as soon as Patrick changes something in it or someone try using a non-grub version of pmagic.
I do know this problem. I have it on my PC when I boot from USB and want to boot from my hard disk afterwards.If bootdevice is CD, First drive will remain (hd0), but not everyone has as boot partition (hd0,0) (it may be (hd0,1), (hd0,2) etc.).
And if UBCD is put on a USB device (stick or HD) and NOT booted with grub4dos and (hd32) mapping?
Posted 24 January 2009 - 04:12 PM
@tinybit
Should we then wait for WRITE?
And is the answer to this:
I.E::
dd if=()/boot/afile.txt of=()/boot/anotherfile.txt bs=1 count=64 skip=128 seek=256
Will copy 64 bytes starting from offset 128 in file ROOT/boot/afile.txt to offset 256 of file ROOT/boot/anotherfile.txt?
a Yes?
Posted 24 January 2009 - 04:55 PM
0 members, 0 guests, 0 anonymous users