If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Thu Sep 6 13:40:12 2001
Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.voicenet.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!news.albacom.net!drake.strhold.it!not-for-mail
From: Roberto Zini <r.zini@strhold.it>
Newsgroups: comp.unix.sco.misc
Subject: Re: How to clean /dev/swap (OSR 5.06)
Date: Thu, 06 Sep 2001 18:01:55 +0200
Organization: Strhold Sistemi Edp - Italy
Lines: 47
Message-ID: <3B979DF3.BE1F79C1@strhold.it>
References: <3B9476A3.8835CB55@club-internet.fr> <3B95D0ED.79C438B9@strhold.it> <3B963B62.2B6850F4@club-internet.fr>
Reply-To: r.zini@strhold.it
NNTP-Posting-Host: fred.lan.strhold.it
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: mail.strhold.it 999792492 18776 192.106.230.3 (6 Sep 2001 16:08:12 GMT)
X-Complaints-To: usenet@mail.strhold.it
NNTP-Posting-Date: 6 Sep 2001 16:08:12 GMT
X-Mailer: Mozilla 4.61 [en] (X11; I; UnixWare 5 i386)
Xref: chnws06.ne.mediaone.net comp.unix.sco.misc:103012
Fr�d�ric STOCK wrote:
>
> Hello Roberto,
>
> the swap device is still in /dev/ dir.
> here it is the output of the divvy command:
>
[snip]
Good; what does "swap -l" report ?
According to /etc/dumpsave, there's a valid system dump if
"/etc/memsize /dev/swap <swaplo> <blocks>" returns an exit status
of 2, where <swaplo> and <blocks> are the values returned
by "swap -l".
I've just did it un a running 5.0.5 system and I've got an
"memsize: Invalid checksum" message (return code = 2) which
indicates that there isn't a valid system dump; if the return
value is "0", then you have a valid dump.
Dunno about other return values; however, if you take a look
at the /etc/dumpsave script, the "remove_dump_exit" routine
shows how to remove the dump from the swap area. Take the
<swaplo> number as reported by "swap -l", add 4, and issue
the following command:
dd if=/dev/swap of=/dev/swap iseek=<number> oseek=<number> count=2 conv=swab
where <number> is the number you get from the above sum and "/dev/swap"
is your swap device.
I've just tried it on a living 5.0.5 system and it was harmless;
cannot guarantee that it'll be the same on yours though ...
Hope it helps !
Best,
Roberto
--
---------------------------------------------------------------------
Roberto Zini email : r.zini@strhold.it
Technical Support Manager -- Strhold Evolution Division R.E. (ITALY)
---------------------------------------------------------------------
"Has anybody around here seen an aircraft carrier?"
(Pete "Maverick" Mitchell - Top Gun)
Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)
| Views for this page | ||||
|---|---|---|---|---|
| Today | This Week | This Month | This Year | Overall |
| 4 | 6 | 16 | 204 | 1,365 |
/Bofcusm/288.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Add your comments