Externe Festplatte (Firewire) mounten

rpw

Well-Known Member
Hallo,

bin leider weder bei Google, noch im Handbuch, noch hier im Forum oder im Buch "The Complete FreeBSD" fündig geworden, daher muss ich Euch doch mal nerven... Hoffe, daß mich niemand schlägt, ob der wahrscheinlich für einige hier einfachen Frage :o

Habe mir eine externe Festplatte gekauft, die ich an einen ebenfalls neuen Firewire-Controller angeschlossen habe. Unter FreeBSD 5.4-prerelease dann die Firewire-Unterstützung in den Kernel eincompiliert und den Kernel installiert.

Den Rechner neu gestartet, der Firewire-Controler wird auch erkannt.

Nun aber mein Problem, wie spreche ich das Laufwerk an, sprich wie heißt das externe Laufwerk? ad0 ist meine erste, ad2 meine zweite interne Festplatte.... Ich sehe auch eine Meldung "firewire0: New S400 device ID:0050770e501f051b", mit der ich aber leider nichts anfangen kann.

Auf der Platte ist (werksseitig) bereits eine FAT32-Partition von gut 232GB (Verlust durch Formatierung, ist eine 250GB-Platte) vorhanden. Da ich von verschiedenen Systemen, also auch Windows darauf zugreifen muss/will, bietet sich FAT32 auch durchaus an.

Was ich am liebsten hätte wäre ein Eintrag in der fstab, jedoch ohne automount, so dass die Platte nicht jedesmal beim Start des Rechner mit gemountet wird, ich jedoch mit einem simplen mount-Befehl schnell daruf zugreifen kann.

Ich gebe mal die Ausgabe von dmesg und den Inhalt von /dev mit an:


dmesg
-----------------
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.4-PRERELEASE #0: Tue Mar 8 16:27:55 UTC 2005
/usr/obj/usr/src/sys/RALF01
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP 2200+ (1804.11-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x6a0 Stepping = 0
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory = 536805376 (511 MB)
avail memory = 515641344 (491 MB)
ACPI APIC Table: <AMIINT VIA_K7 >
ioapic0 <Version 0.3> irqs 0-23 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT VIA_K7> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 8367 (KT266/KY266x/KT333) host to PCI bridge> mem 0xe0000000-0xe7ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
drm0: <ATI Rage 128 Pro PF (AGP)> port 0xb800-0xb8ff mem 0xdfefc000-0xdfefffff,0xd8000000-0xdbffffff irq 16 at device 0.0 on pci1
info: [drm] AGP at 0xe0000000 128MB
info: [drm] Initialized r128 2.5.0 20030725 on minor 0
pci0: <multimedia, audio> at device 6.0 (no driver attached)
pci0: <input device> at device 6.1 (no driver attached)
fwohci0: <VIA Fire II (VT6306)> port 0xe400-0xe47f mem 0xdffff800-0xdfffffff irq 18 at device 7.0 on pci0
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:11:06:00:00:00:ba:9d
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc1, gen=1, CYCLEMASTER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
firewire0: bus manager 1 (me)
ath0: <Atheros 5212> mem 0xdffe0000-0xdffeffff irq 19 at device 8.0 on pci0
ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
ath0: Ethernet address: 00:80:c8:11:fd:ed
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe000-0xe07f mem 0xdffff780-0xdffff7ff irq 17 at device 10.0 on pci0
miibus0: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:01:02:99:a3:82
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 21 at device 16.0 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ulpt0: Kyocera Mita Kyocera Mita FS-1020D, rev 1.01/0.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 21 at device 16.1 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 21 at device 16.2 on pci0
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdffff600-0xdffff6ff irq 21 at device 16.3 on pci0
ehci_pci_attach: companion usb0
ehci_pci_attach: companion usb1
ehci_pci_attach: companion usb2
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <VIA VT6202 USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: single transaction translator
uhub3: 6 ports with 6 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xcc00-0xccff mem 0xdffff500-0xdffff5ff irq 23 at device 18.0 on pci0
miibus1: <MII bus> on vr0
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:10:dc:76:d3:24
acpi_button1: <Sleep Button> on acpi0
fdc0: <floppy drive controller> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1804105151 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 152627MB <SAMSUNG SP1614N/TM100-24> [310101/16/63] at ata0-master UDMA100
acd0: DVDROM <MATSHITADVD-ROM SR-8585/1W29> at ata0-slave UDMA33
ad2: 76319MB <WDC WD800BB-00DKA0/77.07W77> [155061/16/63] at ata1-master UDMA100
acd1: DVDR <HL-DT-ST DVDRAM GSA-4082B/A201> at ata1-slave UDMA33
firewire0: New S400 device ID:0050770e501f051b
ulpt0: at uhub0 port 2 (addr 2) disconnected
ulpt0: detached
Mounting root from ufs:/dev/ad0s2a
ulpt0: Kyocera Mita Kyocera Mita FS-1020D, rev 1.01/0.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode


/dev
--------------
acd0
acd1
acpi
ad0
ad0s1
ad0s2
ad0s2a
ad0s2c
ad0s2d
ad0s2e
ad0s2f
ad0s2g
ad0s3
ad0s5
ad0s6
ad0s7
ad0s8
ad2
ad2s1
ad2s2
ad2s2s1
ad2s2s2
ad2s2s2s1
ad2s2s5
ad2s3
ad2s3b
ad2s3c
ad2s5
ad2s6
agpgart
apm
ata
atkbd0
bpsm0
console
consolectl
ctty
cuaa0

cuaa1
cuaia0
cuaia1
cuala0
cuala1
devctl
devstat
dri
fd
fd0
fido
fw0
fw0.0
fwmem0
fwmem0.0
geom.ctl
io
kbd0
klog
kmem
log
lpt0
lpt0.ctl
mdctl
mem
net
net1
net2
net3
net4
network
null
pci
ppi0
psm0
random
stderr
stdin
stdout
sysmouse
ttyd0
ttyd1
ttyid0
ttyid1
ttyld0
ttyld1
ttyv0
ttyv1
ttyv2
ttyv3
ttyv4
ttyv5
ttyv6
ttyv7
ttyv8
ttyv9
ttyva
ttyvb
ttyvc
ttyvd
ttyve
ttyvf
ulpt0
unlpt0
urandom
usb
usb0
usb1
usb2
usb3
xpt0
zero


Ist jetzt etwas lang geworden der Thread, aber ich denke besser zuviel Infos, als zuwenig.

Bin für jeden Tip oder Link (z.B. auf eine ausführliche Erklärung zu USB & Firewire-Festplatten) dankbar.

Vielen Dank schon mal im voraus,

rpw
 
Zuletzt bearbeitet:
rpw schrieb:
Nun aber mein Problem, wie spreche ich das Laufwerk an, sprich wie heißt das externe Laufwerk?
Externe Laufwerke werden fast ausnahmslos über CAM angesprochen. Du brauchst dann natürlich die entsprechende SCSI-Unterstützung im Kernel.
rpw schrieb:
Auf der Platte ist (werksseitig) bereits eine FAT32-Partition von gut 232GB (Verlust durch Formatierung, ist eine 250GB-Platte)
Das ist kein Verlust durch Formatierung, sondern "Verlust" durch konsequente Kundenverarsche, wie sie von den Festplattenherstellern seit Jahren betrieben wird. Tipp: 232 GB / 1000^3 * 1024^3 = 249,1... GB - jetzt paßt's. Zumindest für den Hersteller, tatsächlich sind auf der Platte nicht mehr als 232 GB drauf, egal wie du formatierst.
rpw schrieb:
Was ich am liebsten hätte wäre ein Eintrag in der fstab, jedoch ohne automount, so dass die Platte nicht jedesmal beim Start des Rechner mit gemountet wird, ich jedoch mit einem simplen mount-Befehl schnell daruf zugreifen kann.
Kann man natürlich machen. Allerdings werden die Device-Namen bei CAM dynamisch vergeben, je nach dem, welche anderen SCSI-Geräte zum Zeitpunkt des Einsteckens bereits im System laufen.
 
Cam

Danke für die Antwort, bringt mich aber leider auch nicht wirklich weiter. Habe zwar die manpages zu cam und camcontrol gelesen, aber kommen irgendiwe nicht damit klar. Ich weiß einfach nicht, wie ich die Festplatte ansprechen kann. ;'(

Sorry, rpw
 
Folgenden Hinweis hast du anscheinend noch nicht beherzigt:
p.h. schrieb:
Du brauchst dann natürlich die entsprechende SCSI-Unterstützung im Kernel.
Dann wird der Kernel auch so nett sein und dir beim Einstecken der Platte das richtige Device verraten. Damit wir uns weitere Posts sparen:
Code:
# SCSI-Geräte
device          scbus           # Der grundlegende SCSI-Bus
device          da              # SCSI-Festplatten, USB-Speicherkarten usw.
device          cd              # SCSI-CDROM-Laufwerke, CD-Brenner usw.
device          pass            # Direkter Zugriff auf SCSI-Geräte
device          atapicam        # Emuliere ATAPI-Laufwerke als SCSI-Geräte
Mittels camcontrol kannst du dann später u.a. anzeigen lassen, welches Device einem bestimmten Gerät zugeordnet wurde und das dann über ein Shell-Skript mounten lassen. Ist IMO flexibler als die fstab-Methode.
 
Zurück
Oben