Re: Dual booting FreeBSD and Win95

2015-04-09 Thread Slawa Olhovchenkov
On Thu, Apr 09, 2015 at 11:13:58AM +, Marcin Cieslak wrote:

> On Thu, 9 Apr 2015, Slawa Olhovchenkov wrote:
> 
> > On Wed, Apr 08, 2015 at 03:30:41PM -0400, Ryan Stone wrote:
> > 
> > > I've been playing around with trying to set one only slice as active to
> > > make the loader boot it, but it appears that doesn't actually work.
> > > boot0cfg would cover half of the use case (switching from FreeBSD back to
> > > Win95), but I'm not sure how I could do the original switch from Win95 to
> > > FreeBSD.
> > 
> > For this you must use any fdisk-like dos utility can change active
> > partiton mark. Sorry, I am currently don't have neir Win95 or DOS for
> > advice and/or test. As I remember this utilitys must be exist.
> 
> We have a bunch of cool tools in
> 
> ftp://ftp.freebsd.org/pub/FreeBSD/tools/

pfdisk may be nice.
Oh, unzip from base system (and tar) don't support implode metod!

> like bootinst.exe, alternative boot managers etc. etc.
> 
> //Marcin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-09 Thread Marcin Cieslak
On Thu, 9 Apr 2015, Slawa Olhovchenkov wrote:

> On Wed, Apr 08, 2015 at 03:30:41PM -0400, Ryan Stone wrote:
> 
> > I've been playing around with trying to set one only slice as active to
> > make the loader boot it, but it appears that doesn't actually work.
> > boot0cfg would cover half of the use case (switching from FreeBSD back to
> > Win95), but I'm not sure how I could do the original switch from Win95 to
> > FreeBSD.
> 
> For this you must use any fdisk-like dos utility can change active
> partiton mark. Sorry, I am currently don't have neir Win95 or DOS for
> advice and/or test. As I remember this utilitys must be exist.

We have a bunch of cool tools in

ftp://ftp.freebsd.org/pub/FreeBSD/tools/

like bootinst.exe, alternative boot managers etc. etc.

//Marcin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-09 Thread Lars Engels
On Wed, Apr 08, 2015 at 03:30:41PM -0400, Ryan Stone wrote:
> No, this isn't a late April Fools joke. :(
> 
> I find myself in a situation where I need to integrate my employer's
> manufacturing process with a third-party OEM's process.  My employer's
> hardware tests are all FreeBSD-based while the OEM is Windows 95 based.  I
> need to come up with a way to integrate them together.
> 
> We're looking at dual-booting FreeBSD and Win95.  We're thinking of booting
> into Win95, the OEM can do their thing, switch to booting FreeBSD, run our
> tests and produce a .csv file with the results, and then boot back into
> Win95 for them to finish up.  Ideally we would like to switch the boot
> slice without human interaction.
> 
> I've been playing around with trying to set one only slice as active to
> make the loader boot it, but it appears that doesn't actually work.
> boot0cfg would cover half of the use case (switching from FreeBSD back to
> Win95), but I'm not sure how I could do the original switch from Win95 to
> FreeBSD.
> 
> We've discussed just switching hard drives, but we really want to shoot for
> a 100% automated process.  Anybody have any ideas?

Maybe you can make use of the GAG boot manager? I don't know if you can
make changes what partition gets booted next out of a running OS.

http://gag.sourceforge.net



pgp1fwj1srlGc.pgp
Description: PGP signature


Re: Dual booting FreeBSD and Win95

2015-04-09 Thread Slawa Olhovchenkov
On Wed, Apr 08, 2015 at 03:30:41PM -0400, Ryan Stone wrote:

> I've been playing around with trying to set one only slice as active to
> make the loader boot it, but it appears that doesn't actually work.
> boot0cfg would cover half of the use case (switching from FreeBSD back to
> Win95), but I'm not sure how I could do the original switch from Win95 to
> FreeBSD.

For this you must use any fdisk-like dos utility can change active
partiton mark. Sorry, I am currently don't have neir Win95 or DOS for
advice and/or test. As I remember this utilitys must be exist.

May this article help you to automate fdisk from Win95 
http://www.computerhope.com/fdiskhlp.htm
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Adrian Chadd
... why's stuff have to be complicated?

Win95 has minimal if any boot sector protection. Just go look at what
boot0cfg does, figure out which sector you have to read/modify/write,
and do that.

Of course, I'd also check first to ensure it's updating a freebsd
bootblock, or you may render a non-dualbooting machine dead. :)



-a
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Craig Rodrigues
On Wed, Apr 8, 2015 at 12:30 PM, Ryan Stone  wrote:

>
> We're looking at dual-booting FreeBSD and Win95.  We're thinking of booting
>

Wow, I like your problem.  It's really weird, and I like weird problems. :)

Since you are looking at automating a complicated process,
here is a crazy idea which you might want to consider

(1)  Get two machines, interconnect them via a small Ethernet switch.
(2)  Designate one machine as a PXE server, and the other as your test
machine
(3)  Set up a FreeBSD PXE boot environment wit NFS root, as per:
https://www.freebsd.org/doc/handbook/network-diskless.html#network-pxe-nfs
(4)  Figure out how to PXE boot a Windows95 environment.  There are
articles out there for PXE booting FreeDOS which might be a place to start:

http://www.cs.waikato.ac.nz/~dbaird/work/2013/11/05/pxe-boot-freedos-hard-disk-image/

On the DHCP server, you can modify dhcpd.conf to change which OS will boot
via PXE boot.
If you can:
   -> automate the reboot of your test server
   -> automate the modification of dhcpd.conf on your PXE server via some
process

then you might be able to get it to work. :)
--
Craig
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Slawa Olhovchenkov
On Wed, Apr 08, 2015 at 08:09:42PM +, Marcin Cieslak wrote:

> On Wed, 8 Apr 2015, Slawa Olhovchenkov wrote:
> 
> > On Wed, Apr 08, 2015 at 03:30:41PM -0400, Ryan Stone wrote:
> > 4. (optional) create windows95 boot.ini for fail back load FreeBSD
> 
> http://support.microsoft.com/en-us/kb/157992
> 
> I think boot.ini comes with ntldr, and Win95/98 started DOS-like..
> 

Oh, yes.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Marcin Cieslak
On Wed, 8 Apr 2015, Slawa Olhovchenkov wrote:

> On Wed, Apr 08, 2015 at 03:30:41PM -0400, Ryan Stone wrote:
> 4. (optional) create windows95 boot.ini for fail back load FreeBSD

http://support.microsoft.com/en-us/kb/157992

I think boot.ini comes with ntldr, and Win95/98 started DOS-like..

//Marcin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Slawa Olhovchenkov
On Wed, Apr 08, 2015 at 03:30:41PM -0400, Ryan Stone wrote:

> No, this isn't a late April Fools joke. :(
> 
> I find myself in a situation where I need to integrate my employer's
> manufacturing process with a third-party OEM's process.  My employer's
> hardware tests are all FreeBSD-based while the OEM is Windows 95 based.  I
> need to come up with a way to integrate them together.
> 
> We're looking at dual-booting FreeBSD and Win95.  We're thinking of booting
> into Win95, the OEM can do their thing, switch to booting FreeBSD, run our
> tests and produce a .csv file with the results, and then boot back into
> Win95 for them to finish up.  Ideally we would like to switch the boot
> slice without human interaction.
> 
> I've been playing around with trying to set one only slice as active to
> make the loader boot it, but it appears that doesn't actually work.
> boot0cfg would cover half of the use case (switching from FreeBSD back to
> Win95), but I'm not sure how I could do the original switch from Win95 to
> FreeBSD.
> 
> We've discussed just switching hard drives, but we really want to shoot for
> a 100% automated process.  Anybody have any ideas?

If hardware recognised by Win95 do next:

1. create MBR patition table.
   first patition dedicate to Win95.
   next partiton to freebsd
2. install Win95
3. Install FreeBSD with FreeBSD boot manager.
4. (optional) create windows95 boot.ini for fail back load FreeBSD
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Oliver Pinter
As dirty hack, try to save two state of MBR, one when FreeBSD selected
(MBR.FBSD) , and one when Win95 selected (MBR.W95).
When the windows booted up properly, then write the MBR.FBSD to the
disc, on the same schema do the reverse on freebsd with dd.

http://www.fccps.cz/download/adv/frr/wipembr.html

Or just do what Adrian has said, flip the active bits with a custom tool.

On Wed, Apr 8, 2015 at 9:30 PM, Ryan Stone  wrote:
> No, this isn't a late April Fools joke. :(
>
> I find myself in a situation where I need to integrate my employer's
> manufacturing process with a third-party OEM's process.  My employer's
> hardware tests are all FreeBSD-based while the OEM is Windows 95 based.  I
> need to come up with a way to integrate them together.
>
> We're looking at dual-booting FreeBSD and Win95.  We're thinking of booting
> into Win95, the OEM can do their thing, switch to booting FreeBSD, run our
> tests and produce a .csv file with the results, and then boot back into
> Win95 for them to finish up.  Ideally we would like to switch the boot
> slice without human interaction.
>
> I've been playing around with trying to set one only slice as active to
> make the loader boot it, but it appears that doesn't actually work.
> boot0cfg would cover half of the use case (switching from FreeBSD back to
> Win95), but I'm not sure how I could do the original switch from Win95 to
> FreeBSD.
>
> We've discussed just switching hard drives, but we really want to shoot for
> a 100% automated process.  Anybody have any ideas?
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Michael Gmelin



> On 08 Apr 2015, at 21:30, Ryan Stone  wrote:
> 
> No, this isn't a late April Fools joke. :(
> 
> I find myself in a situation where I need to integrate my employer's
> manufacturing process with a third-party OEM's process.  My employer's
> hardware tests are all FreeBSD-based while the OEM is Windows 95 based.  I
> need to come up with a way to integrate them together.
> 
> We're looking at dual-booting FreeBSD and Win95.  We're thinking of booting
> into Win95, the OEM can do their thing, switch to booting FreeBSD, run our
> tests and produce a .csv file with the results, and then boot back into
> Win95 for them to finish up.  Ideally we would like to switch the boot
> slice without human interaction.
> 
> I've been playing around with trying to set one only slice as active to
> make the loader boot it, but it appears that doesn't actually work.
> boot0cfg would cover half of the use case (switching from FreeBSD back to
> Win95), but I'm not sure how I could do the original switch from Win95 to
> FreeBSD.
> 
> We've discussed just switching hard drives, but we really want to shoot for
> a 100% automated process.  Anybody have any ideas?

What are you testing? The hardware this is running on? Your tests as well as 
the OEM's?

If not I would suggest booting FreeBSD and running win95 in qemu.

A long time ago I dual booted BSD and DOS (or maybe it was OS/2 and Linux, it's 
been quite a while) and I did so by using two primary partitions, only marking 
one of them active/bootable at a time. You might be able to do the same in an 
automated way on windows and FreeBSD to alternate between the OSes.

- Michael


> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Adrian Chadd
Hi,

You can just write a little command line win32 program that writes to
the boot blocks. it's win95; unless your BIOS somehow is blocking
things you should be able to set the same area that boot0cfg does to
tell the bootloader about what to do.



-adrian


On 8 April 2015 at 12:30, Ryan Stone  wrote:
> No, this isn't a late April Fools joke. :(
>
> I find myself in a situation where I need to integrate my employer's
> manufacturing process with a third-party OEM's process.  My employer's
> hardware tests are all FreeBSD-based while the OEM is Windows 95 based.  I
> need to come up with a way to integrate them together.
>
> We're looking at dual-booting FreeBSD and Win95.  We're thinking of booting
> into Win95, the OEM can do their thing, switch to booting FreeBSD, run our
> tests and produce a .csv file with the results, and then boot back into
> Win95 for them to finish up.  Ideally we would like to switch the boot
> slice without human interaction.
>
> I've been playing around with trying to set one only slice as active to
> make the loader boot it, but it appears that doesn't actually work.
> boot0cfg would cover half of the use case (switching from FreeBSD back to
> Win95), but I'm not sure how I could do the original switch from Win95 to
> FreeBSD.
>
> We've discussed just switching hard drives, but we really want to shoot for
> a 100% automated process.  Anybody have any ideas?
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Dual booting FreeBSD and Win95

2015-04-08 Thread Marcin Cieslak
On Wed, 8 Apr 2015, Ryan Stone wrote:

> No, this isn't a late April Fools joke. :(
> 
> 
> We've discussed just switching hard drives, but we really want to shoot for
> a 100% automated process.  Anybody have any ideas?

I guess due to hardware interfacing virtualization is not an option?
I've seen some testing equipment running Win98 only because it allows
direct access to serial ports, not exposing some kind of virtual
device driver.

//arcin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"