Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!constellation!aardvark.ucs.uoknor.edu!ns1.nodak.edu!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!agate!soda.berkeley.edu!alanp Newsgroups: comp.os.386bsd.questions Subject: Re: disklabel and 2 IDE drives Message-ID: <1n66le$oib@agate.berkeley.edu> From: alanp@soda.berkeley.edu (Alan Pearson) Date: 5 Mar 93 00:25:18 GMT References: <C2q5M6.95M@uceng.uc.edu> <greg.730265140@coombs> <C2yq3M.2AF@cs.mcgill.ca> Organization: U.C. Berkeley, CS Undergraduate Association Article-I.D.: agate.1n66le$oib NNTP-Posting-Host: soda.berkeley.edu Lines: 48 In article <C2yq3M.2AF@cs.mcgill.ca> storm@cs.mcgill.ca (Marc Wandschneider) writes: > While we're on this topic, could somebody tell me how exactly >one goes about labelling the second disk...? I have a 170MB Quantum SCSI >disk, and tried to guess at the disktab entries for disklabel, but they >didn't work when I tried to newfs the thing. > > How do I get the second disk up and running...? Not too hard really. Make an appropriate disktab entry. You've got to supply the basic information: number of cylinders, tracks per cylinders (equals the number of heads) and sectors per track. Most of the other settings have acceptible default values (revs per minute, etc.) Give the disk a nice name in your disktab file (like 170quantum). Then you can use diskpart -d to calculate acceptible values for the partition information: # diskpart -d 170quantum > /tmp/partition Save the output of diskpart and put it on the end of your disktab entry. Then disklabel the sucker: # disklabel -w -r wd1 170quantum Now newfs your filesystems. # newfs /dev/rwd1a Then fsck it: # fsck /dev/rwd1a (Though you can also use /dev/wd1a, I don't know which is prefferred? ) Mount your new filesystem and put it it /etc/fstab. If this does not work, then your disktab was wrong. For my second disk, it did not work with sector forwarding, but once I removed sf from the disktab, it worked like a charm. So don't be afraid to experiment. > Toodlepip! > Marc 'em huh? alan. -- alan pearson alanp@soda.berkeley.edu UC Berkeley CS Undergraduate Assoc.