Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to clean /dev/swap (OSR 5.06)

0 views
Skip to first unread message

Frédéric STOCK

unread,
Sep 4, 2001, 2:36:24 AM9/4/01
to
Hello,

running SCO Unix OSR5.06,

after system crash, at booting startup I get the message:

"sysdump: /dev/swap address not present
not able to know if a dump system image is present in swap device"

So how could I clean it ?

Thank's.

F. STOCK

Frédéric STOCK

unread,
Sep 4, 2001, 2:37:23 AM9/4/01
to

Frédéric STOCK

unread,
Sep 4, 2001, 2:55:19 AM9/4/01
to

Roberto Zini

unread,
Sep 5, 2001, 3:14:53 AM9/5/01
to

What about the /dev/swap device ? Is it still there ?
Can you post more details about it ?

Also, what does "divvy" report back to the screen ?

Best,
Roberto
--
---------------------------------------------------------------------
Roberto Zini email : r.z...@strhold.it
Technical Support Manager -- Strhold Evolution Division R.E. (ITALY)
---------------------------------------------------------------------
"Has anybody around here seen an aircraft carrier?"
(Pete "Maverick" Mitchell - Top Gun)

Frédéric STOCK

unread,
Sep 5, 2001, 10:49:06 AM9/5/01
to r.z...@strhold.it
Hello Roberto,

the swap device is still in /dev/ dir.
here it is the output of the divvy command:

+-------------------+------------+--------+---+-------------+------------+

| Name | Type | New FS | # | First Block
| Last Block |
+-------------------+------------+--------+---+-------------+------------+

| boot | EAFS | no | 0 | 0|
15359|
| swap | NON FS | no | 1 | 15360|
2112511|
| root | HTFS | no | 2 | 2112512|
5184511|
| u | HTFS | no | 3 | 5184512|
35672321|
| | NOT USED | no | 4 | -|
-|
| | NOT USED | no | 5 | -|
-|
| recover | NON FS | no | 6 | 35672322|
35672331|
| hd0a | WHOLE DISK | no | 7 | 0|
35680332|
+-------------------+------------+--------+---+-------------+------------+

35672332 1K blocks for divisions, 8001 1K blocks reserved for the system

what else could I do to give you more details ?
Thank's.
Best regards.

F. STOCK

Roberto Zini

unread,
Sep 6, 2001, 12:01:55 PM9/6/01
to
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 !

0 new messages