Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: kivinen@hut.fi (Tero Kivinen)
Subject: Re: swapdefault: How to hose a filesystem
Date: 08 Oct 1993 21:03:56 GMT	[thread overview]
Message-ID: <KIVINEN.93Oct8230356@freenet.hut.fi> (raw)
In-Reply-To: jlf@ryhope.alf.dec.com's message of 7 Oct 1993 20:57:37 GMT

In article <291vs1$ock@netnews.alf.dec.com> jlf@ryhope.alf.dec.com (Jeff Finkelstein) writes:
> 8 partitions:
> #        size   offset    fstype   [fsize bsize   cpg]
>   a:   104542        0    unused     1024  8192         # (Cyl.    0 - 131*)
>   b:   262144   104542    unused     1024  8192         # (Cyl.  131*- 459*)
>   c:  2050860        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 2569)
>   d:   262144   104542    unused     1024  8192         # (Cyl.  131*- 459*)
>   e:   262144   104542    unused     1024  8192         # (Cyl.  131*- 459*)
>   f:   262144   104542    unused     1024  8192         # (Cyl.  131*- 459*)
>   g:  1684174   366686    unused     1024  8192         # (Cyl.  459*- 2569*)
>   h:   262144   104542    unused     1024  8192         # (Cyl.  131*- 459*)

You should always create disklabels in a such way that partitions that
are not in use, cannot be used. This can be done by setting all values
to zero:

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:      798        0    unused        0     0         # (Cyl.    0 - 0)
  b:        0        0    unused        0     0         # (Cyl.    0 - 0)
  c:  2050860        0    unused     1024  8192    16   # (Cyl.    0 - 2569)
  d:  2050062      798    4.2BSD     1024  8192    16   # (Cyl.    1 - 2569)
  e:        0        0    unused        0     0         # (Cyl.    0 - -1)
  f:        0        0    unused        0     0         # (Cyl.    0 - -1)
  g:        0        0    unused        0     0         # (Cyl.    0 - -1)
  h:        0        0    unused        0     0         # (Cyl.    0 - -1)

If you don't have b partition the swapon cannot swap on it. It is also
much easier to guess which partions are in use if you happen to loose
/etc/fstab or something other goes wrong (somebody write 40MB of junk
in the begining of the disk or some other disaster).

> You need to remember that when you change your root devices SCSI address 
> you must change the /sbin/swapdefault for the root device to avoid this 
> situation.

And don't create partitions in disklabel, that you don't use!
--
Tero_Kivinen@hut.FI              Work : +358-0-451 4032
Klovinrinne 6b, 02180, Espoo     Home : +358-0-524 207


      reply	other threads:[~1993-10-08 21:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-10-06 22:50 swapdefault: How to hose a filesystem Chuck Henkel
1993-10-07 11:59 ` Wilko Bulte
1993-10-07 17:25   ` John T. Kohl
1993-10-07 20:57     ` Jeff Finkelstein
1993-10-08 21:03       ` Tero Kivinen [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox