Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Nov 1999 15:16:50 -0500
From:      Forrest Aldrich <forrie@forrie.com>
To:        freebsd-questions@freebsd.org
Subject:   Problems with disklabel, swap, and Invalid Argument
Message-ID:  <4.2.1.19991102151252.00a6be40@216.67.12.69>

next in thread | raw e-mail | index | archive | help
I've only received 2 responses to my previous question.   The
problem still persists, and I'd like to report it now as a bug.
None of the diagnostics reflects anything out of the ordinary.

These disks were worked on using /stand/sysinstall and the manual
utilities fdisk, disklabel, etc.   And the following error is generated,
and is not in the swapon.c code:

bash-2.03# swapon /dev/da10s1b
swapon: /dev/da10s1b: Invalid argument

I'd appreciate any pointers as to what needs to be fixed here.  This
is FreeBSD-3.3-STABLE.  Did a buildworld yesterday.

Diagnostic output appended.



_F




FDISK:

bash-2.03# fdisk da10
******* Working on device /dev/rda10 *******
parameters extracted from in-core disklabel are:
cylinders=2213 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=2213 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 165,(FreeBSD/NetBSD/386BSD)
     start 63, size 35551782 (17359 Meg), flag 80 (active)
         beg: cyl 0/ sector 1/ head 1;
         end: cyl 1023/ sector 63/ head 254
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


DISKLABEL:

bash-2.03# disklabel da10
# /dev/rda10c:
type: SCSI
disk: da10s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 2212
sectors/unit: 35551782
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]
   b:  2097152        0      swap                        # (Cyl.    0 - 130*)
   c: 35551782        0    unused        0     0         # (Cyl.    0 - 2212*)
   e: 33454630  2097152    4.2BSD        0     0     0   # (Cyl.  130*- 2212*)




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?4.2.1.19991102151252.00a6be40>