Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 17:25:57 -0500
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        "VVI hostmaster" <xavier@vvi.at>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: disklabel problems
Message-ID:  <3.0.5.32.20020825172557.03a345e0@mail.sage-one.net>
In-Reply-To: <000001c24bf7$e2872c30$39e1fcd0@xavier2>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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: <http://docs.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020825172557.03a345e0>