Date: Mon, 26 May 1997 15:57:09 -0400 From: "Troy Settle" <rewt@i-Plus.net> To: <potok@free.polbox.pl>, <questions@FreeBSD.ORG>, "Robert Clark" <ROBERTC@PII.COM> Subject: Re: Windows 383spart.par as SWAP slice? -Reply Message-ID: <199705261954.PAA01972@radford.i-plus.net>
next in thread | raw e-mail | index | archive | help
From: Robert Clark <ROBERTC@PII.COM> To: potok@free.polbox.pl; questions@FreeBSD.ORG Date: Monday, May 26, 1997 12:52 PM Subject: Windows 383spart.par as SWAP slice? -Reply >If you have any partition entries open, > >Turn windows swap off. Defrag the windows partition, and whack a piece of the space off. > >Create a logical drive that can be used for either FreeBSD or Windows. (?) > Some linux user figured this out years ago. There's a howto with the details available somewhere at http://sunsite.unc.edu/mdw Basically, it's like this: create a logical dos partition create the windows swap file , but do not use it yet. reboot to freebsd use dd to copy the first portion of the windows swap drive (1 meg should be enough) gzip and store this file in /etc With linux, you simply issue the mkswap command on this partition, but with FreeBSD, you'll probably have to do something like: store a copy of the partition table -- dos.partition maybe? make a new partition table, redefining the windows swap drive as a FreeBSD slice store a copy of the new partition table and disklabel disklabel that slice to make it all swap Next, modify /etc/rc to write the freebsd partition table and disklabel on every boot then, format? the swap partition, and turn it on. When you shut down freebsd, you'll need to restore the drive for dos to use: turn swap off copy the dos partition table back to the drive copy the dos partition image file back to the slice There may be more involved, and there may be an easier way. I've no interest in trying it, since I seem to have plenty of swap at this time (though I could probably save about 100 megs if I did it) -- Troy Settle <st@i-Plus.net> Network Administrator, iPlus Internet Services http://www.i-Plus.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705261954.PAA01972>