*BSD News Article 50722


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help with Swap Please
Date: 11 Sep 1995 11:48:58 +0200
Organization: Private U**x site, Dresden.
Lines: 58
Message-ID: <4310ma$svi@bonnie.tcd-dresden.de>
References: <42pvfo$f7c@armitage.cyberspace.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

The Man in Black <samz@support.usnetwork.com> wrote:
> SO I didnt allocate 
>as much SWAP space as I should have and have to much freespace left on my 
>ROOT partation. I would like to take some of that empty space and add it 
>to the swap. Can this be done? Or am I stuck in having to start all over 
>from scratch and install it right? Thanks.

Alternatively to the "vn" solution, if you are an adventourous type,
you can do the following:

o grab the fixit floppy image; i've uploaded it to
  ftp://ftp.cdrom.com/pub/FreeBSD/incoming/joerg-fixit-2.2-current.flp.gz
  (if you are topologically inside the .de region, send me a mail)

o uncompress it and dump it to a 1.44 MB floppy (sorry, it's too big
  for a 1.2 MB disk).  Unfortunately, this is just the default
  "fixit", after using it myself i had to find that it's somewhat
  incomplete.  So mount the floppy, and put the following files onto
  it:

  * the part of /usr/share/misc/termcap describing the "cons25"
    terminal; also put an "export TERM=cons25" into the /.profile of
    the floppy.  You'll need it for running vi.  Just in case, better
    safe than sorry.

  * prepare an entry for /etc/disktab for the new partitioning of
    your disk, and put /etc/disktab on the floppy as well

  * make sure you've got any means to create a large /tmp filesystem
    later; either put mount_mfs onto the floppy, too, or make sure
    you've got something on your harddisk usable as /tmp.  restore(8)
    wants to create huge files in /tmp, the space on the floppy would
    not suffice for this.  (If you don't like to use dump(8)/
    restore(8), you probably don't need this.)

o umount the floppy, and reboot to make sure the floppy boots and is
  usable; reboot from the harddisk again

o backup your root file system (best do this from single-user while
  / is still mounted read/only).  Carefully check the backup.

o boot the fixit floppy, re-label your hardisk from the disktab entry
  as you've put it there (disklabel -r -w [sw]d0s[1-4] <entryname>,
  with [sw]d0s[1-4] depending on the actual drive type and slice
  number)

o newfs your root file system (newfs -d0 /dev/r[ws]d0a)

o mount the root f/s to /mnt, and restore the backup there

o pray to the God of Electrons, reboot, and enjoy :)

o don't blame me for your loss of data, goods or profits. :-p
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)