Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2000 09:57:04 +0100 (CET)
From:      andreas@klemm.gtn.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/16958: raw partition size != slice size, truncating raw partition, ...
Message-ID:  <200002240857.JAA74346@klemm.gtn.com>

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

>Number:         16958
>Category:       kern
>Synopsis:       partition / slice size mismatch installing on 40 GB EIDE disk
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 24 01:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Klemm
>Release:        FreeBSD-4.0-20000220-SNAP
>Organization:
FreeBSD
>Environment:

Tyan Titan Pro mainboard, S1668
2 x 200 MHz PPro
HighPoint HPT366 ATA66 controller
ad4: 39082MB <Maxtor 54098U8> [79406/16/63] at ata2-master using UDMA33

>Description:

After installing FreeBSD 2000-02-20 SNAP (self made snap) on my new 
Maxtor 40 GB EIDE disk, I get the following syslog messages, when 
mounting the partitions of the EIDE disk on my "old" SCSI based system,
which is also a -current of that date
FreeBSD titan.klemm.gtn.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Tue Feb 22 12:11:23 CET 2000     root@titan.klemm.gtn.com:/usr/src/sys/compile/TITAN  i386

ad4s1: raw partition size != slice size
ad4s1: start 63, end 12289724, size 12289662
ad4s1c: start 63, end 80035829, size 80035767
ad4s1: truncating raw partition
ad4s1: rejecting partition in BSD label: it isn't entirely within the slice
ad4s1: start 63, end 12289724, size 12289662
ad4s1d: start 24322111, end 80035829, size 55713719
ad4s1: rejecting partition in BSD label: it isn't entirely within the slice
ad4s1f: start 5447743, end 13836350, size 8388608
ad4s1: rejecting partition in BSD label: it isn't entirely within the slice
ad4s1g: start 13836351, end 15933502, size 2097152
ad4s1: rejecting partition in BSD label: it isn't entirely within the slice
ad4s1h: start 15933503, end 24322110, size 8388608

Here a tabular which displays the size mismatch between
syslog message and disklabel sizes. Sometimes disklabel
sector size is equal, more and less...

ad4s1d:    start 24322111, end 80035829, size 55713719
disklabel -r at4 value:                       37075257 <
ad4s1f:    start 5447743,  end 13836350, size 8388608
disklabel -r at4 value:                       8388608  =
ad4s1g:    start 13836351, end 15933502, size 2097152
disklabel -r at4 value:                       4194304  >
ad4s1h:    start 15933503, end 24322110, size 8388608
disklabel -r at4 value:                       8388608  =

Here the disklabel

# /dev/rad4c:
type: ESDI
disk: ad4s2
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 4217
sectors/unit: 67746105
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:   262144        0    4.2BSD     1024  8192    16 	# (Cyl.    0 - 16*)
  b:  1048576   262144      swap                    	# (Cyl.   16*- 81*)
  c: 67746105        0    unused        0     0       	# (Cyl.    0 - 4216)
  d: 37075257 30670848    4.2BSD     1024  8192    16 	# (Cyl. 1909*- 4216*)
  e:  8388608  1310720    4.2BSD     1024  8192    16 	# (Cyl.   81*- 603*)
  f:  8388608  9699328    4.2BSD     1024  8192    16 	# (Cyl.  603*- 1125*)
  g:  4194304 18087936    4.2BSD     1024  8192    16 	# (Cyl. 1125*- 1387*)
  h:  8388608 22282240    4.2BSD     1024  8192    16 	# (Cyl. 1387*- 1909*)

The kernel:

# Kernel Config File: TITAN
machine		i386
cpu		I686_CPU
ident		TITAN
maxusers	100
options		INCLUDE_CONFIG_FILE	#Include this file in kernel
options		INET			#Internet communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	MFS			#Memory Filesystem
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	UCONSOLE		#Allow users to grab the console
options 	KTRACE			#ktrace(1) syscall trace support
options         SYSVSHM			#SYSV-style shared memory
options         SYSVMSG			#SYSV-style message queues
options         SYSVSEM			#SYSV-style semaphores
options		SOFTUPDATES		#Softupdates
options		MD5
options		NSWAPDEV=4
options		COMPAT_LINUX
options		SHOW_BUSYBUFS
options		P1003_1B
options		_KPOSIX_PRIORITY_SCHEDULING
options		_KPOSIX_VERSION=199309L
options 	USER_LDT
options		MSGBUF_SIZE=40960
options 	SMP			# Symmetric MultiProcessor Kernel
options 	APIC_IO			# Symmetric (APIC) I/O
options		PQ_HUGECACHE		# color for 1024k/16k cache
device		isa0
device		pci0
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
device		ahc0		# AHA2940 and onboard AIC7xxx devices
options 	SCSI_DELAY=8000		#Be pessimistic about Joe SCSI device
options		AHC_ALLOW_MEMIO
device		scbus0		# SCSI bus (required)
device		da0		# Direct Access (disks)
device		sa0		# Sequential Access (tape etc)
device		cd0		# CD
device		pass0		# Passthrough device (direct SCSI access)
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1
device		psm0	at atkbdc? irq 12
device		vga0	at isa?
pseudo-device	splash
device		sc0	at isa?
options		MAXCONS=4		# number of virtual consoles
options		SC_HISTORY_SIZE=200	# number of history buffer lines
device		npx0	at nexus? port IO_NPX irq 13
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device          ppc0    at isa? port? irq 7
device          ppbus0                  # Parallel port bus (required)
device          lpt0    at ppbus?       # Printer
device          plip0   at ppbus?       # TCP/IP over parallel
device          ppi0    at ppbus?       # Parallel port interface device
options	MROUTING			# Multicast routing
options	IPFIREWALL			#firewall
options	IPFIREWALL_VERBOSE		#print information about dropped packets
options IPFIREWALL_FORWARD		#enable xparent proxy support
options IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
options IPDIVERT			#divert sockets
options ICMP_BANDLIM
options DUMMYNET
device		miibus0		# MII bus support
device		xl0		# 3Com 3c90x (``Boomerang'', ``Cyclone'')
device		ed0	at isa? port 0x280 irq 5 iomem 0xd8000
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
options		PPP_BSDCOMP	#PPP BSD-compress support
options		PPP_DEFLATE	#PPP zlib/deflate/gzip support
options		PPP_FILTER	#enable bpf filtering (needs bpfilter)
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	bpf		#Berkeley packet filter
pseudo-device	vn              #Vnode driver (turns a file into a device)
pseudo-device	snp	3	#Snoop device - to look at pty/vty/etc..
pseudo-device	ccd	4	#Concatenated disk driver
device		smbus0
device		iicbus0
device		iicbb0
device		intpm0
device		smb0	at smbus?
# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
options 	ATA_STATIC_ID		#Static device numbering

>How-To-Repeat:

# Device		Mountpoint	FStype	Options		Dump	Pass#
/dev/ad4s2a		/new		ufs	rw		1	2
/dev/ad4s2e		/new/var	ufs	rw		1	2
/dev/ad4s2f		/new/usr	ufs	rw		1	2
/dev/ad4s2g		/new/internet	ufs	rw		1	2
/dev/ad4s2h		/new/home	ufs	rw		1	2
/dev/ad4s2d		/new/data	ufs	rw		1	2

mount -at ufs

>Fix:

no fix known

Bruce assumed, that I mount the fresh installed drive with
the old wd driver under my "old" scsi based system.
But this is not the case.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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