PDA

View Full Version : Mounting a 1394 drive\DVR



MaldiGola
2nd September 2006, 09:53 PM
Hi,
I want to get the recording off my dvr and hope to be able to copy them directly from the hard drive. I am already familiar with capturing them in Windows but I want to try to grab the raw files without streaming them.

Here is what dmesg spits out when I insert the f/w card and when I connect it to the DVR:

pccard: CardBus card inserted into slot 0
pccard: card ejected from slot 0
PCMCIA: socket f7e3ec28: *** DANGER *** unable to remove socket power
pccard: CardBus card inserted into slot 0
ieee1394: Initialized config rom entry `ip1394'
PCI: Enabling device 0000:04:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 19 (level, low) -> IRQ 177
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[177] MMIO=[8a000000-8a0007ff] Max Packet=[1024] IR/IT contexts=[4/4]
ieee1394: Host added: ID:BUS[0-00:1023] GUID[0030952410012312]
ieee1394: Node added: ID:BUS[0-01:1023] GUID[00152ffffed80c0d]
ieee1394: raw1394: /dev/raw1394 device initialized
audit(1157221456.923:4): avc: denied { getattr } for pid=2485 comm="pam_console_app" name="raw1394" dev=tmpfs ino=8626 scontext=system_u:system_r:pam_console_t:s0-s0:c0.c255 tcontext=system_u:object_r:device_t:s0 tclass=chr_file



So.... my question is, can this be done? Is it possible to mount this as a drive?

Thanks in advance!!

Brian1
2nd September 2006, 10:49 PM
I assume you wish to mount it like a drive to copy data off of it? Not sure if the device works that way or not since I never realy tried one. But here is what I know about firewire/1394 devices.

First lets see what modules are loaded. Use command ' /sbin/lsmod '.
Looking for ieee1394, ohci1394, raw1394, and sbp2
Once all these modules are loaded the you should have a device block like /dev/sda1. Just a guess if no other USB, Firewire, Scsi, or Sata drives exist.
A nice gui app to see what is going on the firewire channel is called gscanbus. Similiar in design like usbview.

Here is a link about linux and 1394. I just checked it out and they have been updating it. http://www.linux1394.org/

Lets stop there and see what happens from here. Always wanted to mess with a firewire camera or recorder type device but just never got around to it. Like I said it is all new to me as specfic to this device. Used firewire harddrives before fine.

Brian1

MaldiGola
3rd September 2006, 06:24 PM
Ok, I had all the modules loaded (except sbp2 which I loaded manually). My hard drive is sda and there was no sdb. Not sure what other block device to look for. To get a better idea, I decided to install gscanbus. I installed libraw1394 successfully from source but I can't get gscanbus installed. ./configure gives me this error:

checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: gscanbus needs GTK

A quick grep reveals the following:

rpm -qa | grep gtk
gtk+-1.2.10-50
gtkspell-2.0.11-1.2.1
gtk-sharp-1.0.10-5
gtk2-engines-2.7.4-3
gtk2-2.8.20-1
gtk-sharp2-2.8.2-1
gtk-engines-0.12-7.2.1
usermode-gtk-1.85-2.2
pygtk2-2.8.6-0.fc5.1
pygtk2-libglade-2.8.6-0.fc5.1
gtk2-devel-2.8.20-1


Did some googling and found alot of this error on Ubuntu and other debian-based forums stating an install of libgtk1.2-dev is needed. I cannot find any fedora based references for that package.

What is the fedora equivalent of libgtk1.2-dev?



Thanks!!

Brian1
3rd September 2006, 09:55 PM
Bit busy today but go over to http://rpm.pbone.net/ and you can find and RPM of gscanbus.

Brian1

MaldiGola
4th September 2006, 08:05 PM
Ok, the rpm installed without issue. Here's the results of running gscanbus:

MaldiGola
7th September 2006, 04:25 PM
quick bump

Brian1
8th September 2006, 12:07 AM
Been thinking about this but not having any good and easy to explain ideas. It would be easier in front of the machine for me to experiment. What is the brand and model of the DVR you are working with. Might be able to find one and play with. Sorry I couldn't be of more help. Still one thing I never had done yet but would like to try one day.

Brian1

MaldiGola
8th September 2006, 12:16 AM
Sure, its a Motorola DCT3412 I

Brian1
8th September 2006, 01:01 AM
List your loaded modules ' /sbin/lsmod '

Brian1

MaldiGola
16th September 2006, 02:23 AM
here you go:

[root@localhost ~]# /sbin/lsmod
Module Size Used by
i915 18369 1
drm 70229 2 i915
ipv6 243809 12
autofs4 21701 1
i2c_dev 9413 0
i2c_core 22209 1 i2c_dev
wlan_scan_sta 13824 0
wlan 185436 1 wlan_scan_sta
ip_conntrack_netbios_ns 3265 0
ipt_REJECT 5569 1
xt_state 2497 2
ip_conntrack 52597 2 ip_conntrack_netbios_ns,xt_state
nfnetlink 7257 1 ip_conntrack
xt_tcpudp 3393 4
iptable_filter 3265 1
ip_tables 12809 1 iptable_filter
x_tables 14917 4 ipt_REJECT,xt_state,xt_tcpudp,ip_tables
dm_mirror 22929 0
dm_mod 59737 1 dm_mirror
video 16709 0
button 6993 0
battery 10053 0
ac 5189 0
lp 12937 0
parport_pc 27237 1
parport 37129 2 lp,parport_pc
raw1394 28741 0
dv1394 20261 0
ohci1394 34821 1 dv1394
ieee1394 298649 3 raw1394,dv1394,ohci1394
joydev 9985 0
sg 34525 0
snd_intel8x0 32221 1
snd_intel8x0m 17229 0
snd_ac97_codec 92257 2 snd_intel8x0,snd_intel8x0m
snd_ac97_bus 2625 1 snd_ac97_codec
snd_seq_dummy 4165 0
snd_seq_oss 32705 0
tg3 99525 0
snd_seq_midi_event 7745 1 snd_seq_oss
snd_seq 53553 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 9037 3 snd_seq_dummy,snd_seq_oss,snd_seq
serio_raw 7621 0
ehci_hcd 32461 0
uhci_hcd 23885 0
snd_pcm_oss 40017 0
snd_mixer_oss 17729 1 snd_pcm_oss
snd_pcm 83781 4 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_ oss
snd_timer 24517 2 snd_seq,snd_pcm
snd 55237 12 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_seq_ oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_o ss,snd_pcm,snd_timer
soundcore 10017 1 snd
snd_page_alloc 10569 3 snd_intel8x0,snd_intel8x0m,snd_pcm
ahci 17993 0
ext3 129353 2
jbd 57813 1 ext3
ata_piix 11973 3
libata 68049 2 ahci,ata_piix
sd_mod 20417 4
scsi_mod 135529 4 sg,ahci,libata,sd_mod
[root@localhost ~]#

MaldiGola
17th September 2006, 10:21 PM
quick bump

MaldiGola
9th October 2006, 07:32 PM
another bump

Brian1
10th October 2006, 11:19 PM
Looks like all modules are loaded for 1394 firewire devices. I never used it much so not the most knowledgable. Just one more thing to check. Does /dev/raw1394 and /dev/video1394 exist?

Here is a section of my install procedure for 1394 for my machine. A bit old but that is what I did at the time I installed it. Currently at Centos 4.4+ level just from updating many rpms mostly.
* Installed USBView & Gscsnabus a ieee1394 device viewer. ( USBView already in Fedora Core 2 )
file:///storage1/Utilities/gscanbus-0.7.1-1.rhfc2.ccrma.i386.rpm
rpm -ivh gscan*.rpm

Create the following device blocks.
mknod -m 666 /dev/raw1394 c 171 0
cp -rp /dev/raw1394 /etc/udev/devices/raw1394

mknod -m 666 /dev/video1394 c 171 16
cp -rp /dev/video1394 /etc/udev/devices/video1394

Brian