Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.cps.udayton.edu!news.engr.udayton.edu!blackbird.afit.af.mil!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!torn!granite.sentex.net!usenet From: Mark Mayo <mark@quickweb.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: How do I add a hard disk!? Date: Tue, 09 Apr 1996 17:32:47 -0400 Organization: C-Soft Lines: 88 Message-ID: <316AD77F.5C37@quickweb.com> NNTP-Posting-Host: 199.212.134.94 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (Win95; I) I've been trying to add a second hard drive to my FreeBSD system for a few days now (time to search the FAQ's, man pages, etc..) and I just can't seem to get it going. In the process, I've been stumped by a few things: The bood ESDI disk (wd0) works fine, but it doesn't have an entry in the /etc/disktab file, so I'm assuming the kernel has it wired in somehow?? How does the system mount the disk if it ain't in the disk tab? Now for adding the second drive. I used fdisk manully and added a partition, but then what to I do? I tried newfs but I just get: newfs: wd1: `1' partition is unavailable So I thought I screwed up the fdisk (like the man page said, I used partition 3 and it picked the whole disk..) so I fired up sysinstall and used it's FDISK utility to produce an FDISK partition called wd1s1. Here's the FDISK output: Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 55, size 666545 (325 Meg), flag 80 beg: cyl 0/ sector 1/ head 1; end: cyl 1009/ sector 55/ head 11 The data for partition 1 is: <UNUSED> Again, newfs didn't work. Then I dug into the disklabel program, and it told me this: # /dev/rwd1c: type: ESDI disk: wd1s1 label: flags: bytes/sector: 512 sectors/track: 55 tracks/cylinder: 12 sectors/cylinder: 660 cylinders: 1009 sectors/unit: 666545 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 666545 0 unused 0 0 # (Cyl. 0 - 1009*) e: 666545 0 4.2BSD 0 0 0 # (Cyl. 0 - 1009*) I added the e: myself with the "disklabel -r -w wd1" command. I figured out that the c partition is used to access the entire disk, and e seemed as good as any, so i just threw it in (looking at the wd0 entry to see what belonged in there) hoping it would add a /dev/wd1s1e entry... So I guess I've determined that I need to make the /dev/wd1s1c and wd1s1e devices, but I have no idea how!! Once that is done I'll just use mount (seems straight forward) to add a mount point. So the BIG QUESTION: Could someone tell me about the general details involved with local disk management on BSD, or point me to a resource? I'm pretty good at figuring out the little details, but I'm lacking larger picture of what proceedure should be used. TIA, -Mark *** Mark Mayo *** *** mark@quickweb.com *** P.S. I'm new to FreeBSD, but I've had a super time learning the system. The FreeBSD Organization deserves enourmous credit for their work. I've never been so happy with an operating system!! I started from scratch and in a month or so I've been able to get that BSD box doing stuff I never thought possible (routing, multi-homes, dns, rebuilt the kernel, etc...). Again, just an amazing OS, I'm hooked!!