mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Cavanagh <nofsk@vtown.com.au>
To: linux-kernel@vger.kernel.org
Subject: linux kernel problem (disklabel and swap)
Date: Sun, 06 Jul 2003 15:53:27 +1000	[thread overview]
Message-ID: <3F07B957.4010206@vtown.com.au> (raw)

hi

i recently had the problem with a bsd disklabel and swap and as someone 
suggested, the swap slice did not have SWAPSPACE in it and that running 
mkswap would fix this. sure enough it did, but then i wondered why 
swapon allowed /dev/hda3 as a valid swap. so i had a look and SWAPSPACE2 
was there, right at the start of the openbsd partition, inside the 
disklabel. so i have come to the conclusion that openbsd tells the world 
via the disklabel that a partition/slice is swap rather than at the 
start of the swap slice. the linux kernel does not know this and wants 
SWAPSPACE2 at the start of the partition/slice. to test this i booted up 
openbsd and forced it to swap. it wrote over the SWAPSPACE2 in the 
slice. so i think that the linux kernel needs to be fix so that if an 
openbsd partition exists, the kernel expects SWAPSPACE2 in the disklabel 
rather than the actual swap slice. i don't know if this is true for 
other *BSD though.

i hope this helps.

thanks, daniel.


             reply	other threads:[~2003-07-06  5:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-06  5:53 Daniel Cavanagh [this message]
2003-07-06 10:48 ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F07B957.4010206@vtown.com.au \
    --to=nofsk@vtown.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®