Replaced drive
Martin Schweizer
lists_freebsd at bluewin.ch
Sun Dec 12 11:04:46 PST 2004
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-master UDMA100
> > > >>> ad2: DMA limited to UDMA33, non-ATA66 cable or device
> > > >>> ad2: 39266MB <ExcelStor Technology J340> [79780/16/63] at ata1-master UDMA33
> > > >>> acd0: CDROM <LTN483> at ata1-slave PIO4
> > > >>> Mounting root from ufs:/dev/ad0s2a
> > > >>> ad0s1: raw partition size != 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=5005 heads=255 sectors/track=63 (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=5005 heads=255 sectors/track=63 (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
>
> Good, then you have a disk with 255*63*5005 = 80405325 sectors.
>
> > 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 - 5005*)
>
> 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:
>
> # disklabel ad0s2
>
> to see that.
# /dev/ad0s2c:
type: ESDI
disk: ad0s2
label:
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
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*)
> > disklabel /dev/ad2:
> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
--
Regards
Gruss
Mit freundlichen Grüssen
Martin Schweizer
<info at 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;
fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041212/014a9c13/attachment.bin
More information about the freebsd-questions
mailing list