From owner-freebsd-questions Thu Sep 26 21:10:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA13081 for questions-outgoing; Thu, 26 Sep 1996 21:10:21 -0700 (PDT) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA13038 for ; Thu, 26 Sep 1996 21:10:17 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id VAA02051; Thu, 26 Sep 1996 21:09:56 -0700 (PDT) Date: Thu, 26 Sep 1996 21:09:56 -0700 (PDT) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: shadows@whitefang.com cc: questions@freebsd.org Subject: Re: Disk problems. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 26 Sep 1996 shadows@whitefang.com wrote: > Here's my current problem. I have my FreeBSD system install on /dev/wd1s2 > (IDE) and its fine and dandy. Now I want to create a partition on > /dev/wd2s1 to support an additional filesystems for backuping some logs > etc. OK. We'll keep that in mind. I assume you don't want to make this new disk bootable and thus make the whole disk for FreeBSD. > I went by the book, I believe in the faq it says do it the easy way and > use the /stand/sysinstall I did that After creating a partition I tried > disklabel. Forgive the spam but.. > > # /dev/wd2: > type: unknown > disk: > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 16 > sectors/cylinder: 1008 > cylinders: 3158 > sectors/unit: 3183264 > rpm: 0 > interleave: 0 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 3 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 3183264 0 unused 0 0 # (Cyl. 0 - > 3157) > Warning, revolutions/minute 0 > boot block size 0 > super block size 0 > > Forgive my ignorance but this doesnt look right now does it ;) Actually, it somewhat does, you're on the right track. You should use the following command(s) to generate a proper disklabel. disklabel -Brw /dev/rwd2s1 auto disklabel -e sd1 You should be dropped into vi. Make a 'a' partition in the same format as the 'c' partition; remember the numbers have to add up. Save and quit, and that'll become your disklabel. > Oh and check this disklabel doesnt like my working HDD > broken: {34} disklabel /dev/wd1 > disklabel: /dev/wd1: Device not configured You have to use the raw device /dev/rwd1. I have a long message that describes the procedure in excruciating detail (including fdisk) and another that is short for non-DOS-system 'dangerously dedicated' disks. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major