From owner-freebsd-questions Sun Aug 25 18: 4: 9 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 48C1F37B400 for ; Sun, 25 Aug 2002 18:04:05 -0700 (PDT) Received: from mail.vvi.at (primary.vvi.at [208.252.225.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 50D4543E4A for ; Sun, 25 Aug 2002 18:04:03 -0700 (PDT) (envelope-from xavier@vvi.at) Received: from [208.252.225.57] by mail.vvi.at (CommuniGate SMTP 3.1.3) with ESMTP id S.2105012727fg for ; Sun, 25 Aug 2002 18:04:00 -0700 From: "Jason" To: Subject: RE: disklabel problems Date: Sun, 25 Aug 2002 18:01:54 -0700 Organization: Vista View Imagery of California Message-ID: <002701c24c9c$2e8e44c0$39e1fcd0@xavier2> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <3.0.5.32.20020825172557.03a345e0@mail.sage-one.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Hi, > Your fstab shows da0s1 but your label has ad0s1 -- one is SCSI and the > other IDE if I read your message right.... Yes, My boot disk is the SCSI drive that has / /usr /var and the swap The only partition on the IDE drive that looses its disklabel is /bkp. Thanks for your help Jason > -----Original Message----- > From: Jack L. Stone [mailto:jackstone@sage-one.net] > Sent: Sunday, August 25, 2002 3:26 PM > To: VVI hostmaster; freebsd-questions@FreeBSD.ORG > Subject: Re: disklabel problems > > 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