SUMMARY : swapon problem

From: jean.schuller <schuller_at_sbgal4.in2p3.fr>
Date: Mon, 16 Nov 1998 15:07:39 +0100 (MET)

        Hi all,

        Many thanks for the fast response from :

        - Jim Belonis who says:
It sounds like you have a disk partitioning error.
You should use the disklabel command to view the current partition table
and see if it makes sense.

The error message claims that the intended swap partition overlaps with
some other partition which is already mounted.
I.e. they both have some of the same blocks allocated.

        - Blake Roberts who says:
Your C partition is formatted and overlaps both your A and B partitions.
That's why it is in use. You will need to adjust the offset of the C
partition (or any other partition) and make sure that it is not
overlapping
the B partition in order to set up the swap space.

        - Olle Eriksson who says:
It means that b is overlapped by c which is marked as "in use". as
you probably don't have a file system in the c-partition change
the type to "unused" for the c-partition

        - Doug Johnson who says:
        I believe the complaint is because partition c is marked in
use. If it really isn't being used you can set it to "unused" by using
disklabel -s. Tread carefully on these waters though, you don't want to
loose any data.

        - Martin Mokrejs who says:
That means you have improperlyu set the diskalabel info. It means you are
not actually using swapspace now, which is OK.

The partition a is using whole disk space. You can't use swap on this
drive. What about rz2, rz1, rz0 ???
If you find some NON-overlapping partition of type b on any of the other
drives, change the swap-value in /etc/rc.config, and if want, create
ln -s /dev/rzXb /sbin/swapdefault
reboot

        - T. S. Horsnell who says:
Use disklabel -s to change the filesystem type on partition b to
swap, and change c to unused. I'm surprised you dont get complaints
that partition a overlaps c as well.

        - Dr. Thomas P. Blinn who says:
The "c" partition on the disk is marked as containing a UFS file system.
Most likely it does not actually have a UFS file system, since "a"
actually does have a UFS file system in it.

Edit the disklabel (e.g., using the disklabel -e /dev/rrz3a command) and
mark the "c" partition "unused". Mark the "b" partition "swap". Then
swapon will not be concerned that you've labelled the disk with a
non-existent "c" as UFS since it won't be that way any more.


        - Alan Rollow who says:
It means that swapon is now smart enough to verify whether
a partition is safe to use or not. In this case it believes
it isn't because of the partitions it overlaps has an fstype
field value indicating it is in use; not unused. Look at
the whole disklabel to see what partitions, your page/swap
overlaps to verify they actually aren't in use. Then, either
edit the disklabel to change the fstype field to unused for
those partitions, or answer "y" to the question.

        - Steffi Laurentius who says:
I think the problem is the disklabel which shows the c-partition to be in
use with a BSD file system.
Edit your disklabel (carefully) and cange c to unused, and all should
work.

        - rajeshar who says:
I think you could use diskconfig utility for doing this.

        After having analysed my disklabel, I answered (courageously ??)
Yes after the CONTINUE question and now all works fine. Thanks so
much to all who spend time to help me.

        JEAN

-----------------------------------------------------------------------------
jean.schuller_at_ires.in2p3.fr _/ _/_/_/ _/_/_/ _/_/_/_/
                                _/ _/ -/ _/ _/ _/
                               _/ _/_/_/-/ _/_/_/ _/_/_/_/
                              _/ _/ -/ _/ _/
                             _/ _/ _/ _/_/_/ _/_/_/_/
local call: 0388106630 Institut de Recherches Subatomiques
foreign call: (33)388106630 Boîte Postale 28
local fax : 0388106234 23, Rue du Loess
foreign fax : (33)388106234 F-67037 STRASBOURG CEDEX - France
-----------------------------------------------------------------------------
Received on Mon Nov 16 1998 - 14:13:17 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT