From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3118fb7a65935858 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-10-09 10:01:22 PST Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!news.funet.fi!funic!sauna.cs.hut.fi!freenet.hut.fi!freenet.hut.fi!kivinen From: kivinen@hut.fi (Tero Kivinen) Newsgroups: comp.unix.osf.osf1 Subject: Re: swapdefault: How to hose a filesystem Date: 08 Oct 1993 21:03:56 GMT Organization: Freenet, Finland Distribution: world Message-ID: References: <291vs1$ock@netnews.alf.dec.com> NNTP-Posting-Host: freenet.hut.fi 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