Date: Mon, 26 May 1997 11:16:10 +0200 (MET DST) From: Zahemszky Gabor <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org (FreeBSD questions) Cc: potok@free.polbox.pl Subject: Re: Windows 383spart.par as SWAP slice? Message-ID: <199705260916.LAA00801@CoDe.hu> In-Reply-To: <199705260640.IAA04598@free.polbox.pl> from Mariusz Potocki at "May 26, 97 08:36:50 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> Is it possible to use permanent swap file from M$ Windows > 386spart.par (existing on FAT partition) as a SWAP slice under No. --------------------------------------------------^ Only as a swap file. > FreeBSD? (I'm short on space on FBSD partition). Yes. I've made it on 2.1.5. 1) configure your kernel with ``pseudo-device vn'', and boot it 2) mount your dos partition (of course, read-write ;-) 3) vnconfig -cs labels /dev/vn0 /your/path/to/386spart.par 4) disklabel -r -w /dev/vn0 auto 5) swapon /dev/vn0c i) It's coming from my head (I made it on my home machine), so check for typos, etc. ii) the 2) is very dangerous as I know with pre-2.2 versions, if the DOS partition was bigger with 1M and splitted with fips (or is bigger now!) iii) the vnconfig's -s option isn't documented in my version, I found it in the sources - maybe it has changed. iv) the 4) point will give you warnings about incorrect pack label or something - as I know, doesn't matter v) As I know, you cannot ``swapoff', so you cannot umount your DOS disk vi) as I know, windows will be screaming, that its swap file is corrupt or something like this, so you have to recreate it in the next win-start-time. VII) I HOPE IT WON'T MAKE ANY DAMAGE! So, if somebody knows more about vnodes, or anything I have to know, please! > If yes, is it faster or slower solution than have real SWAP slice? I THINK it's slower. Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705260916.LAA00801>