Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 2004 20:05:43 +0100
From:      Martin Schweizer <lists_freebsd@bluewin.ch>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Replaced drive
Message-ID:  <20041212190542.GA296@saturn.pcs.ms>
In-Reply-To: <20041212183813.GA29603@gothmog.gr>
References:  <20041212141254.GA13582@saturn.pcs.ms> <20041212145845.GA50951@gothmog.gr> <20041212171932.GA267@saturn.pcs.ms> <20041212172551.GA16536@gothmog.gr> <20041212174238.GB267@saturn.pcs.ms> <20041212183813.GA29603@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help

--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am Sun, Dec 12, 2004 at 08:38:13PM +0200 Giorgos Keramidas schrieb:
> > > >>> messages in dmeg.boot after reboot. Probably it's only a hint and=
 not an
> > > >>> error. How I can resolve this issue? I use FreeBSD 4.10.
> > > >>
> > > >> Did you use dd(1) to move over the existing partitions and data?
> > > >> Judging from the following, it seems you _did_.
> > > >>
> > > >>> ad0: 39266MB <ExcelStor Technology J340> [79780/16/63] at ata0-ma=
ster UDMA100
> > > >>> ad2: DMA limited to UDMA33, non-ATA66 cable or device
> > > >>> ad2: 39266MB <ExcelStor Technology J340> [79780/16/63] at ata1-ma=
ster UDMA33
> > > >>> acd0: CDROM <LTN483> at ata1-slave PIO4
> > > >>> Mounting root from ufs:/dev/ad0s2a
> > > >>> ad0s1: raw partition size !=3D slice size
> > > >>> ad0s1: start 63, end 16064, size 16002
> > > >>> ad0s1c: start 63, end 80405324, size 80405262
> > > >
> > > > No, I used dump.
> > >
> > > Weird.  Can I see the output of fdisk and disklabel for that disk?
> >
> > Here they are:
> >
> > fdisk:
> >
> > ******* Working on device /dev/ad0 *******
> > parameters extracted from in-core disklabel are:
> > cylinders=3D5005 heads=3D255 sectors/track=3D63 (16065 blks/cyl)
> >
> > Figures below won't work with BIOS for partitions not in cyl 1
> > parameters to be used for BIOS calculations are:
> > cylinders=3D5005 heads=3D255 sectors/track=3D63 (16065 blks/cyl)
> >
> > Media sector size is 512
> > Warning: BIOS sector numbering starts with sector 1
> > Information from DOS bootblock is:
> > The data for partition 1 is:
> > sysid 6,(Primary 'big' DOS (> 32MB))
> >     start 63, size 16002 (7 Meg), flag 0
> > 	beg: cyl 0/ head 1/ sector 1;
> > 	end: cyl 0/ head 254/ sector 63
> > The data for partition 2 is:
> > sysid 165,(FreeBSD/NetBSD/386BSD)
> >     start 16065, size 80389260 (39252 Meg), flag 80 (active)
> > 	beg: cyl 1/ head 0/ sector 1;
> > 	end: cyl 1023/ head 254/ sector 63
>=20
> Good, then you have a disk with 255*63*5005 =3D 80405325 sectors.
>=20
> > disklabel /dev/ad0:
> > # /dev/ad0:
> > type: unknown
> > disk: amnesiac
> > label: fictitious
> > flags:
> > bytes/sector: 512
> > sectors/track: 63
> > tracks/cylinder: 255
> > sectors/cylinder: 16065
> > cylinders: 5005
> > sectors/unit: 80418240
> > 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: 80418240        0    unused        0     0       	# (Cyl.    0 - 5=
005*)
>=20
> Err, this is not right.  The ad0 disk has two slices, ad0s1 and ad0s2.
> The ad0s1 slice is DOS, so it doesn't have a disk label.  The ad0s2
                     ^^^
This is correct. But is no longer in use.

> slice has a label, but you need to use:
>=20
> 	# disklabel ad0s2
>=20
> to see that.


# /dev/ad0s2c:
type: ESDI
disk: ad0s2
label:=20
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 5004
sectors/unit: 80389260
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0=20

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   524288        0    4.2BSD     2048 16384    94 	# (Cyl.    0 - 32*)
  b:   491520   524288      swap                    	# (Cyl.   32*- 63*)
  c: 80389260        0    unused        0     0       	# (Cyl.    0 - 5003)
  e:   524288  1015808    4.2BSD     2048 16384    94 	# (Cyl.   63*- 95*)
  f: 78849164  1540096    4.2BSD     2048 16384    89 	# (Cyl.   95*- 5003*)
=20
> > disklabel /dev/ad2:
=20
> This is a different disk, which may have other slices too (ad2s1, ad2s2, =
...)

ad2 is my backup drive where I dump ad0 regulary.

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"

--=20

Regards
Gruss
Mit freundlichen Gr=FCssen

Martin Schweizer
<info@pc-service.ch>

PC-Service M. Schweizer GmbH; Gewerbehaus Schwarz; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc;=20
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;


--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQFBvJaGwa4WkdMP0jkRAuQOAJ4o4lpS0nC6XYesoTWBq9zXfj0hiQCg4J6b
Kl+3omvsh5zqlgbAvMqsExY=
=8MwZ
-----END PGP SIGNATURE-----

--azLHFNyN32YCQGCU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041212190542.GA296>