Re: newfs_msdos -B
Nikola Lecic wrote: I need to create a bootable MS-DOS slice on a HDD. Where can I obtain a DOS VBR for newfs_msdos -B ? Hello Victor, On your place I'll just create msdos partition and install FreeDOS (http://www.freedos.org/) there. (Actually I did use FreeDOS once to run some ancient programs of mine, but life is easier with emulators/dosbox). If you need a bootloader there, then http://mbrbm.sourceforge.net/ should work. I am quite happy with the FreeBSD bootmanager (/boot/boot0). However, if you need exactly m$'s dos, it's logical that you must borrow from there (from existing m$-dos or window$-9*). A quick googling shows that on http://mail-index.netbsd.org/tech-userlevel/2004/03/07/.html you can read how to borrow and how much. :) I got the idea. Thank you. For FreeBSD, it should be like % dd if=/dev/ad0s1 of=/tmp/dos_fat16.dd bs=512 count=1 % dd if=/dev/ad0s1 of=/tmp/dos_fat32.dd bs=512 count=3 BTW about FreeDOS: how many sectors for its bootblock must I copy? I did not know that fat16 and fat32 VBRs had different size (1 sector vs 3 sectors). -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newfs_msdos -B
On Thu, 16 Aug 2007 13:05:11 +0700 Victor Sudakov [EMAIL PROTECTED] wrote: Nikola Lecic wrote: [...] However, if you need exactly m$'s dos, it's logical that you must borrow from there (from existing m$-dos or window$-9*). A quick googling shows that on http://mail-index.netbsd.org/tech-userlevel/2004/03/07/.html you can read how to borrow and how much. :) I got the idea. Thank you. For FreeBSD, it should be like % dd if=/dev/ad0s1 of=/tmp/dos_fat16.dd bs=512 count=1 % dd if=/dev/ad0s1 of=/tmp/dos_fat32.dd bs=512 count=3 BTW about FreeDOS: how many sectors for its bootblock must I copy? I did not know that fat16 and fat32 VBRs had different size (1 sector vs 3 sectors). Hmm, I'd try with the same numbers. Since mbrbm works equally with both m$-dos and FreeDOS, I guess that beginning sectors are composed the same way. Apart from install CDs, the only bootable image that FreeDOS-1.0 actually offers for download is 1.4M fdboot.img: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/ Otherwise, I don't see any other way to obtain sectors of the full system but to actually install FreeDOS somewhere (on virtual machine or on a real slice). Nikola Lečić ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newfs_msdos -B
Nikola Lecic wrote: [dd] Apart from install CDs, the only bootable image that FreeDOS-1.0 actually offers for download is 1.4M fdboot.img: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/ Otherwise, I don't see any other way to obtain sectors of the full system but to actually install FreeDOS somewhere (on virtual machine or on a real slice). I think if we have a floppy image, we can obtain the VBR with something like dd if=fdboot.img bs=512 count=1 i.e. the very first sector of the floppy. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newfs_msdos -B
On Wed, 15 Aug 2007 14:04:55 +0700 Victor Sudakov [EMAIL PROTECTED] wrote: Colleages, I need to create a bootable MS-DOS slice on a HDD. Where can I obtain a DOS VBR for newfs_msdos -B ? Hello Victor, On your place I'll just create msdos partition and install FreeDOS (http://www.freedos.org/) there. (Actually I did use FreeDOS once to run some ancient programs of mine, but life is easier with emulators/dosbox). If you need a bootloader there, then http://mbrbm.sourceforge.net/ should work. However, if you need exactly m$'s dos, it's logical that you must borrow from there (from existing m$-dos or window$-9*). A quick googling shows that on http://mail-index.netbsd.org/tech-userlevel/2004/03/07/.html you can read how to borrow and how much. :) Nikola Lečić ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]