From owner-freebsd-questions Sun Aug 25 15:26:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 320DB37B400 for ; Sun, 25 Aug 2002 15:26:08 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A42143E4A for ; Sun, 25 Aug 2002 15:26:06 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g7PMPwS45564; Sun, 25 Aug 2002 17:25:59 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020825172557.03a345e0@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 25 Aug 2002 17:25:57 -0500 To: "VVI hostmaster" , From: "Jack L. Stone" Subject: Re: disklabel problems In-Reply-To: <000001c24bf7$e2872c30$39e1fcd0@xavier2> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 10:25 PM 8.24.2002 -0700, VVI hostmaster wrote: >Hey everyone, > >My backup drive looses its disklabel whenever I bootup. >Then I have to edit the drive out of fstab to boot up > >Here is its disklabel It does not look right for a drive that is >108GB(marketed as 120GB) > >[Terminal]# disklabel ad0s1 > savedlabel >BEGIN------------------- ># /dev/ad0s1e: >type: ESDI >disk: ad0s1 >label: >flags: >bytes/sector: 512 >sectors/track: 63 >tracks/cylinder: 255 >sectors/cylinder: 16065 >cylinders: 14592 >sectors/unit: 234436482 >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: 234436482 0 unused 0 0 # (Cyl. 0 - >14592*) > e: 234436482 0 4.2BSD 0 0 0 # (Cyl. 0 - >14592*) >END------------------- > >its just one 120 gig and actually its a single partition of 108GB > > >This is what I do >1. boot stops and I have to do the following > >[Terminal]# mount / >[Terminal]# mount /usr >[Terminal]# /usr/local/bin/pico fstab > >In pico I edit out this line >/dev/ad2s1e /bkp ufs rw 2 >2 > > >contents of /etc/fstab >BEGIN------------------- ># Device Mountpoint FStype Options Dump >Pass# >/dev/da0s1b none swap sw 0 >0 >/dev/da0s1a / ufs rw 1 >1 >/dev/da0s1f /usr ufs rw,userquota 2 >2 >/dev/da0s1e /var ufs rw 2 >2 >#/dev/ad2s1e /bkp ufs rw 2 >2 >/dev/acd0c /cdrom cd9660 ro,noauto 0 >0 >proc /proc procfs rw 0 >0 >END------------------- > >Then exit it boots and then > >[Terminal]# /stand/sysinstall >BEGIN------------------- >FreeBSD Disklabel Editor >Disk: ad2 Partition name: ad2s1 Free: 0 blocks (0MB) >Part Mount Size Newfs Part Mount Size Newfs >ad0s1e 114470MB* >END------------------- > >Then I edit it to the following >ad0s1e /bkp 114470MBUFS*S N > > > > Your fstab shows da0s1 but your label has ad0s1 -- one is SCSI and the other IDE if I read your message right.... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message