home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
- From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
- Newsgroups: comp.os.linux
- Subject: Re: problems making a swap partition useable
- Keywords: 0.97.1
- Message-ID: <1992Sep9.095543.19608@klaava.Helsinki.FI>
- Date: 9 Sep 92 09:55:43 GMT
- References: <1992Sep8.162500.16716@tamsun.tamu.edu>
- Organization: University of Helsinki
- Lines: 34
-
- In article <1992Sep8.162500.16716@tamsun.tamu.edu> greg@carnivore.tamu.edu (Greg Economides) writes:
- >
- >When I do: mkswap -c /dev/hda5 10583, I get this:
- >
- > mkswap: will not try to make swapdevice on /dev/hda5
- >
- >I am wondering if mkswap is complaining because the partition does not
- >end at an even boundary (or whatever it is that the '+' indicates, I don't
- >remember the exact wording in the fdisk intro file).
-
- Hmm. This sounds like the message I put into the original mkfs sources
- that checked that mkfs didn't write over the full disk devices (/dev/hda
- and /dev/hdb). And as mkswap evolved from that, I assume the test also
- did.
-
- The reason you see it on /dev/hda5 is that I wrote mkfs (and the
- original mkswap) back in prehistoric times when linux still used the
- minix disk-numbering scheme: under minix, /dev/hdb0 (linux's /dev/hdb)
- has the same major/minor as linux's /dev/hda5. I guess the test has
- never gotten updated, as you see the problems so seldom (most people
- don't have or don't use a /dev/hda5).
-
- Actually there is a (ugly) workaround for this, assuming you have an
- error-free disk. Just do
-
- # mkswap tmp 10583
- # cp tmp /dev/hda5
-
- This won't try to find bad blocks, though, so it's not always a
- solution. The real solution is to find the mkswap/mkfs sources, look
- the the error message, and either remove the check, or update it to use
- the new minor numbers (3,0 and 3,64 instead of 3,0 and 3,5).
-
- Linus
-