Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Aug 2002 22:25:49 -0700
From:      "VVI hostmaster" <xavier@vvi.at>
To:        <freebsd-questions@freebsd.org>
Subject:   disklabel problems
Message-ID:  <000001c24bf7$e2872c30$39e1fcd0@xavier2>

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




It then automatically does fsck and mounts it.

If I then 
Terminal# umount /bkp

Terminal#  fsck -y /dev/ad0s1e /bkp
BEGIN-------------------
** /dev/ad0s1e
** Last Mounted on /bkp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
158207 files, 55363694 used, 58247851 free (33859 frags, 7276749 blocks,
0.0% fragmentation) Can't check /bkp

UNEXPECTED SOFT UPDATE INCONSISTENCY
Can't resolve /bkp to character special device
END-------------------


If anyone could help me out I would appreciate it
Thanks in advance,
Jason de Cordoba



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?000001c24bf7$e2872c30$39e1fcd0>