Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 18:01:54 -0700
From:      "Jason" <xavier@vvi.at>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: disklabel problems
Message-ID:  <002701c24c9c$2e8e44c0$39e1fcd0@xavier2>
In-Reply-To: <3.0.5.32.20020825172557.03a345e0@mail.sage-one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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    <none>     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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002701c24c9c$2e8e44c0$39e1fcd0>