Date: Thu, 17 Aug 1995 15:15:23 +0300 From: kallio@jyu.fi (Seppo Kallio) To: John Capo <jc@irbs.com> Cc: freebsd-questions@freebsd.org Subject: Re: ** How to add second SCSI disk ? ** Message-ID: <v01530505ac58e3052f0a@[130.234.41.39]>
next in thread | raw e-mail | index | archive | help
>Trivial as long as you understand that fdisk is broken.
Here some instructions how to do this trivial thing (add one more disk
using DOS fdisk, FreeBSD fdisk, disklabel -e):
1. As long as the FreeBSD fdisk does not find correct geometry of SCSI disks
make in DOS a whole disk size partition (if possible) into the disk
2. Start FreeBSD and
# fdisk -i /dev/sd1 # Assuming your disk is at address 1 in SCSI bus
******* Working on device /dev/sd1 *******
parameters extracted from in-core disklabel are:
cylinders=1923 heads=64 sectors/track=32 (2048 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1923 heads=64 sectors/track=32 (2048 blks/cyl)
Do you want to change our idea of what BIOS thinks ? [n] n
Answear n, this should be no correct if you did some partition in DOS.
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 6,(Primary 'big' DOS (> 32MB))
start 32, size 165856 (80 Meg), flag 0
beg: cyl 0/ sector 1/ head 1;
end: cyl 80/ sector 32/ head 63
Do you want to change it? [n]
I do not know about the warning ...
But everything should be now OK.
Answear y, you have to correct the sysid it is 165 for FreeBSD
And you will get:
Supply a decimal value for "sysid" [0] 165
Supply a decimal value for "start" [0] 32
Supply a decimal value for "size" [0] 165856
Explicitly specifiy beg/end address ? [n] n
sysid 165,(FreeBSD/NetBSD/386BSD)
start 32, size 165856 (80 Meg), flag 0
beg: cyl 0/ sector 1/ head 1;
end: cyl 80/ sector 32/ head 63
Are we happy with this entry? [n] y
Now it is correct, partition 1-3 are unused
The data for partition 1 is:
<UNUSED>
Do you want to change it? [n] n
The data for partition 2 is:
<UNUSED>
Do you want to change it? [n] n
The data for partition 3 is:
<UNUSED>
Do you want to change it? [n] n
Do you want to change the active partition? [n] n
We haven't changed the partition table yet. This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=1923 heads=64 sectors/track=32 (2048 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1923 heads=64 sectors/track=32 (2048 blks/cyl)
Information from DOS bootblock is:
0: sysid 165,(FreeBSD/NetBSD/386BSD)
start 32, size 165856 (80 Meg), flag 0
beg: cyl 0/ sector 1/ head 1;
end: cyl 80/ sector 32/ head 63
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Should we write new partition table? [n] y
Now everything sould be correct. Answear y.
I am getting
ioctl DIOCWLABEL: Operation not supported by device
But it seems that the partition is correct.
2. Start disklabel -e /dev/sd1
Yu will get this kind of screen:
# /dev/sd1:
type: unknown
disk:
label: koe
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1923
sectors/unit: 167301
rpm: 0
interleave: 0
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize bps/cpg]
c: 167301 0 unused 0 0 # (Cyl. 0 - 81*)
Thats it. What then?
I cannot go forward
Seppo
--
+-- Seppo Kallio ----- kallio@jyu.fi ---+
! Computing Center ! Fax +358-41-603611 Phone +358-41-603606 !
! University of Jyvaskyla ! http://www.jyu.fi/~kallio !
+-- Finland --+-- 62.14N 25.44E -- +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01530505ac58e3052f0a>
