Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 1998 15:59:40 -0700 (PDT)
From:      Jim Van Baalen <vansax@mail.websidestory.com>
To:        questions@FreeBSD.ORG
Cc:        Jim Van Baalen <vansax@mail.websidestory.com>
Subject:   Can't Newfs Disk
Message-ID:  <Pine.BSI.3.96.980728154846.18204E-100000@mail.websidestory.com>

next in thread | raw e-mail | index | archive | help
I have just added a second disk to a machine and I can't newfs a
filesystem on this disk. I have been through this process several
times in the last week on different machines and have not had this
problem. The machine is running 2.2.6-RELEASE. It sees the second 
disk at boot time

Jul 28 13:49:07 host2 /kernel: sd1(ahc0:2:0): Direct-Access 4340MB (8888924 512 byte sectors)

It seems to accept a disklabel. I added 

st34572w|Seagate ST34572W SCSI: \
        :dt=SCSI:ty=winchester:se#512:nt#8:ns#176:nc#6300: \
        :pc#8870400:oc#0:

to /etc/disktab.

disklabel -r -w sd1 st34572w

returns no errors, but newfs fails.

newfs -N /dev/rsd1c
newfs: ioctl (GDINFO): Invalid argument
newfs: /dev/rsd1c: can't read disk label; disk type must be specified

An fdisk looks the same as on other systems to which I have added the
same model disk.

fdisk sd1
******* Working on device /dev/rsd1 *******
parameters extracted from in-core disklabel are:
cylinders=6300 heads=8 sectors/track=176 (1408 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=6300 heads=8 sectors/track=176 (1408 blks/cyl)

fdisk: Invalid fdisk partition table found
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 108,(unknown)
    start 1819044972, size 1819044972 (888205 Meg), flag 6c
        beg: cyl 364/ sector 44/ head 108;
        end: cyl 364/ sector 44/ head 108
The data for partition 2 is:
sysid 108,(unknown)
    start 1819044972, size 1819044972 (888205 Meg), flag 6c
        beg: cyl 364/ sector 44/ head 108;
        end: cyl 364/ sector 44/ head 108
The data for partition 3 is:
sysid 108,(unknown)
    start 1819044972, size 1819044972 (888205 Meg), flag 6c
        beg: cyl 364/ sector 44/ head 108;
        end: cyl 364/ sector 44/ head 108
The data for partition 4 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 1, size 8870399 (4331 Meg), flag 80
        beg: cyl 0/ sector 2/ head 0;
        end: cyl 155/ sector 48/ head 7

Hints??

Jim


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?Pine.BSI.3.96.980728154846.18204E-100000>