*BSD News Article 12371


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!manuel.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!sgiblab!pacbell.com!unet!blunt!dsilvia
From: dsilvia@blunt.net.com ()
Subject: Re: Disklabel help needed
Message-ID: <1993Mar5.150228.19870@unet.net.com>
Sender: news@unet.net.com
Nntp-Posting-Host: blunt
Organization: Network Equipment Technologies
References: <C3A9MB.9rE@ccu.umanitoba.ca> <1993Mar3.035202.11777@unet.net.com> <1993Mar5.020610.29203@tfs.com>
Date: Fri, 5 Mar 1993 15:02:28 GMT
Lines: 49

In article <1993Mar5.020610.29203@tfs.com> julian@tfs.com (Julian Elischer) writes:
>In article <1993Mar3.035202.11777@unet.net.com> dsilvia@blunt.net.com () writes:
>>In article <C3A9MB.9rE@ccu.umanitoba.ca> hmomar@ccu.umanitoba.ca (Hadi M. Omar) writes:
>>> Hello I have a Seagate ST3283 IDE hard drive its 245 megs and has
>>>978 cyls 14 heads and 35 sec/tracks. Could someone please help me
>>>set up a disklabel for this drive? I would like to have 2 100 meg or so
>>>partitions and a 20 meg swap partition. Any help would be greatly
>>>appreciated. I should also mention this is my second drive wd1.
>>> 
>>
>>
>>Here is a disklabel which ought to at least get you started.  It has a 20+Meg
>>swap at offset 0 and 220+Meg beyond that.  I'm not real sure about the cpg
>>(cylinders per group).  Maybe others can comment and we can all learn some
>>more. :*>
>[deleted]
>>track-to-track seek: 0  # milliseconds
>>drivedata: 0 
>>
>>3 partitions:
>>#        size   offset    fstype   [fsize bsize   cpg]
>>  a:   440020    39200    4.2BSD     1024  8192    14   # (Cyl.  80 - 896)
>>  b:    39200        0      swap                        # (Cyl.   0 - 80)
>>  c:   479220        0    unused        0     0         # (Cyl.   0 - 976)
>NO NO NO NO!
>NEVER put the swap as teh first partition on the disk
>if it decides to swap to the first blocks it'll overwrite the disklabel
>and bootblocks
>the filesystesm skip the first 8k of their partitions just for this reason..
>the swap might do this on some systems too (maybe 386bsd I'm not sure)
>but I wouldn't count on it as a matter of fact.
>
>>
>>
>>Dave S.
>
>
>julian

Julian,

	AHA!  That must be the problem when you have a DOS partition, too.
(btw, I put it first as that is what the installation did, just following
suite :)  When you have a DOS partition (using the standard installation)
and there is a panic dump, it dumps to device 1 offset 0 (most distressing).

Thanks Julian!  I'll change mine on my next install.

Dave S.