Re: Fujitsu MO Laufwerk unter FreeBSD

From: Harald Klatte <klatte(at)hrz.uni-kassel.de>
Date: Thu, 7 Aug 2003 09:48:42 +0200 (CEST)

Hallo Christoph,

die Vorgehensweise ist wie folgt ( ich habe hier nur ein 640M Laufwerk, aber
sinngemäß ist das gleich ) :

dedicated Mode:

# dd if=/dev/zero of=/dev/da3 bs=2048 count=10
# disklabel -rw da3 auto

Ergebnis:

# disklabel da3
# /dev/rda3c:
type: SCSI
disk: FUJITSU
label:
flags:
bytes/sector: 2048
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 151
sectors/unit: 310352
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: 310352 0 unused 0 0 # (Cyl. 0 - 151*)

> disklabel: "auto" requires the usage of a canonical disk name
bedeutet da3, disklabel macht daraus dann /dev/rda3c

Mit Partitionstabelle:

# fdisk -i /dev/rda3

Das MO sieht danach aus wie folgt:

# fdisk /dev/rda3
******* Working on device /dev/rda3 *******
parameters extracted from in-core disklabel are:
cylinders=554 heads=35 sectors/track=16 (560 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=554 heads=35 sectors/track=16 (560 blks/cyl)

Media sector size is 2048
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 0, size 310240 (605 Meg), flag 80 (active)
        beg: cyl 0/ sector 1/ head 0;
        end: cyl 553/ sector 16/ head 34
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

# disklabel -rw da3s1 mo640-2k

mit folgendem Eintrag in /etc/disktab :

mo640-2k|640 MB MOD 512 Byte Sektoren|\
        :ty=removable:dt=SCSI:se#2048:nt#2:ns#17:nc#9095:ts#1:rm#4800:\
        :pc#309230:oc#0:\
        :pa#309230:oa#0:ta=4.2BSD:ba#8192:fa#2048:

ergibt hier:

# disklabel /dev/rda3s1c
# /dev/rda3s1c:
type: SCSI
disk: mo640-2k
label:
flags: removeable
bytes/sector: 2048
sectors/track: 17
tracks/cylinder: 2
sectors/cylinder: 34
cylinders: 9124
sectors/unit: 310240
rpm: 4800
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 1 # milliseconds
drivedata: 0

3 partitions:
# size offset fstype [fsize bsize bps/cpg]
  a: 309230 0 4.2BSD 2048 8192 0 # (Cyl. 0 - 9094)
  c: 309230 0 unused 0 0 # (Cyl. 0 - 9094)

Änderungen : disklabel -e ....

Man muß also nur den passenden Eintrag für Dein Medium in /etc/disktab
erzeugen, dann sollte das auch bei Dir funktionieren.

Ich hoffe, das hat Dir weitergeholfen...

Grüße,

Harald

 

-- 
+---+  Harald Klatte                        email: klatte(at)hrz.uni-kassel.de
|GhK|  HRZ,  Universitaet Kassel                    Tel.: (49) 561/804-2280
+---+  Moenchebergstr. 11, 34109 Kassel             Fax:  (49) 561/804-2297
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 07 Aug 2003 - 09:52:01 CEST

search this site