![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 05:31 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » A possible future boot file for CD. What name should it have? |
| Printable Version 3,923 / 17 |
| Floor1 不点 | Posted 2007-10-09 18:51 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
After looking at the isolinux code, I feel that booting from CD still needs a lot of patch code aimed at buggy BIOSes. Right now the bit of code in the grldr header is too small, and there is no room to add new code.
So, a natural idea is to write a boot sector specifically for CD, just like the grldr.mbr we wrote for the hard disk. The CD boot sector we write should be exactly one CD sector in length (2048 bytes). It is a no-emulation mode boot file. After the BIOS passes control to it, it will then look in the root directory of the CD for the grldr file and boot it. So what should this 2048-byte file be called? Please give your opinions. Some people have suggested the following names: grcd.bin grldr.cd cdgrub.bin isogrub.bin But I feel they may still not be ideal, or rather they all have drawbacks. For example, names ending in .bin have too many meanings. In CD booting, a .bin file usually refers to a file searched for and loaded by a boot sector. For example setupldr.bin, isolinux.bin, and so on. A file ending in .cd has also been used before as the name of an entire CD image (meaning the same as .iso), so .cd is not very ideal either. I also gave it some thought and came up with .nbr, meaning no-emulation boot record. It differs from .mbr by only one letter, and the whole file would be called grldr.nbr. Please see if there are any better names and keep them coming. Thanks. |
|
| Floor2 不得不爱 | Posted 2007-10-09 19:27 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
Then call it CD.NBR
|
|
| Floor3 ptptptptptpt | Posted 2007-10-09 20:43 |
| 初级用户 Posts 23 Credits 50 | |
|
Or grldr.cdrom
grldr.bootcd grldr.cd-boot grldr.cdbr ( cd boot record ) nbr easily makes people think of net boot |
|
| Floor4 fastslz | Posted 2007-10-09 22:18 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
BIN is the extension for Microsoft binary files
cdgrub.rom isogrub.rom seem more suitable for grub Been lurking for a long time, but after seeing this I still have to bump it ![]() |
|
| Floor5 barton | Posted 2007-10-10 08:49 |
| 中级用户 Posts 197 Credits 480 From 黄冈 | |
Originally posted by fastslz at 2007-10-9 22:18: Very similar to what I think too isogrub then... ;) syslinux also uses a bin file, isolinux.bin, and everyone recognizes syslinux quite highly; almost all Linux CDs use isolinux If it uses the signature name grldr, that would be good too [ Last edited by barton on 2007-10-10 at 08:58 AM ] |
|
| Floor6 不点 | Posted 2007-10-10 11:40 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
Thanks. And special thanks for this line:
I hadn't thought of that. According to the plan, our CD boot sector will look for the grldr file in the root directory of the CD (and if possible, also in some subdirectory). Therefore, following the naming method of grldr.mbr searching for grldr on the hard disk, our CD boot sector should also use grldr as the base name, with a suffix (extension) added after it. The suffix .cdbr is also fairly good (I checked online, and it does not duplicate any existing name), except that it is more than 3 letters. I also checked the following: br, cbr (c stands for cd), obr (o stands for optical disc, that is CD), cdb, cdr, and so on. They all have other meanings, and those extensions are already used by other software. Go here: http://file-extension.net/seeker/ and it becomes clear with one search. Thinking about it now, although nbr may at first make people think of net boot record, after all nobody has seen such a thing as a "net boot record" yet, so it is still a usable name. Just now I specifically looked up information on obr again: http://file-extension.net/seeker/filename_extension_obr It has the following meanings: FILExt OBR C++ Object Browser Data File (Borland Software Corporation) Wikipedia OBR Object browser data file - Borland C FILExt OBR Objective Reference Document Link (Objective Corporation Limited) This shows that although it conflicts somewhat with Borland and so on, the conflict is not very serious (the overlap is narrow, limited to programming languages, and the companies behind such languages are gradually fading from the market now). There are two advantages to using obr: first, o means optical disc; second, the letter o is round and especially looks like a CD. Please keep suggesting more. [ Last edited by 不点 on 2007-10-10 at 11:55 AM ] |
|
| Floor7 ptptptptptpt | Posted 2007-10-10 12:49 |
| 初级用户 Posts 23 Credits 50 | |
|
My feeling is that there probably aren't many people who, on seeing o, would think of optical :(
Even when they see an optical drive, even when the name itself contains "optical," there probably aren't many who know it uses optical principles :) On the contrary, terms like cd, vcd, dvd are deeply rooted in people's minds. Even people who know absolutely nothing about computers have probably heard of CD So I think the extension should contain cd |
|
| Floor8 ptptptptptpt | Posted 2007-10-10 12:50 |
| 初级用户 Posts 23 Credits 50 | |
|
What is the problem with exceeding 3 letters??
|
|
| Floor9 不点 | Posted 2007-10-10 14:48 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
Now let's treat those within three letters and those over three letters separately.
Normally, we choose something no more than three letters, but if it really is not easy to find a suitable combination in three letters, then more letters can also be considered. With more letters there is no limit on the number of letters, so the range of choices is very wide. Therefore, we should mainly consider combinations of three letters or fewer. Why limit it to three letters? Because a three-letter extension is a so-called "de facto industry standard." In the early days DOS could only accept three-letter extensions, and later that even influenced the formulation of the CDROM standard. In the iso9660 standard, the basic filename is in 8.3 format, exactly the same as DOS, which cannot but be said to have been influenced by DOS. Important Microsoft system files all conform to the 8.3 format. For example, bootmgr, ntldr, setupldr.bin, and so on. For now let's nominate names. If we really cannot decide later, we'll have a vote. ----------- Two more nominations: bcd ---- bootable cd noe ---- no emulation Among them, bcd can be seen on Gujin's homepage http://gujin.sourceforge.net/ where there is the following code fragment: ./instboot boot.bin boot.bcd --full # For Bootable CD in no emulation mode, use with "mkisofs -no-emul-boot -boot-load-size 4 -b boot.bcd" The boot.bcd above is the no-emu CD boot sector. [ Last edited by 不点 on 2007-10-10 at 03:26 PM ] |
|
| Floor10 ptptptptptpt | Posted 2007-10-10 15:43 |
| 初级用户 Posts 23 Credits 50 | |
|
It seems Vista has a bcd too (Boot Configuration Data), would that cause confusion
|
|
| Floor11 ptptptptptpt | Posted 2007-10-10 15:49 |
| 初级用户 Posts 23 Credits 50 | |
|
Actually, this file does not exist on the CD as a file, but is written into the boot sector,
and making a bootable CD image is usually done under win or linux, so the DOS and iso9660 8.3 standard should not be a problem Although noe is not very fitting either, I rather like it, because if you switch the order it becomes neo (the male lead in The Matrix) :) |
|
| Floor12 不点 | Posted 2007-10-10 16:27 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
It may exist as a file on a CD or disk. When we release it, won't we release it in file form? Otherwise how would people "make a CD"? Besides, like grldr.mbr, this boot sector is a general-purpose boot sector. As long as GRLDR inside it is replaced with another name, it can boot some other file. So an external program can absolutely call this boot sector to boot a file other than grldr. That is to say, this boot sector does not have to exist as the "main boot sector" on a CD; it can exist as an ordinary file. The "main boot sector" on the CD can entirely be some other software, for example the boot sector of ISOLINUX. When ISOLINUX calls our boot file, it can boot the GRLDR file on the CD. So our boot file absolutely must have a proper name! |
|
| Floor13 ptptptptptpt | Posted 2007-10-10 16:32 |
| 初级用户 Posts 23 Credits 50 | |
|
Oh... makes sense
|
|
| Floor14 不点 | Posted 2007-10-10 16:41 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
If this is implemented in the future, say it is called grldr.nbr, then it is very likely other software will also make similar files, such as grldr1.nbr, grldr2.nbr, and so on. Then the suffix nbr may become a kind of "standard," implying this is the grldr.nbr format. Therefore, the "uniqueness" of the extension is very important; if it has another meaning, then it is not very ideal.
At present, those that satisfy this strict condition of "uniqueness" are really hard to find. Probably only the following two are possible: nbr noe |
|
| Floor15 barton | Posted 2007-10-10 16:58 |
| 中级用户 Posts 197 Credits 480 From 黄冈 | |
|
cdshell ----------->loader.bin
bcdw-------------->loader.bin all are loader.bin or grldr.mkb----------》 make bootable cd File extension .MKB is not in any of the databases. http://filext.com/file-extension/mkb |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |