From owner-freebsd-firewire@FreeBSD.ORG Mon Jul 7 06:12:17 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE1CB37B401 for ; Mon, 7 Jul 2003 06:12:17 -0700 (PDT) Received: from post.webmailer.de (natsmtp00.webmailer.de [192.67.198.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E9DD43F75 for ; Mon, 7 Jul 2003 06:12:16 -0700 (PDT) (envelope-from oliver.hoffmann@uw-service.de) Received: from hermes2.uwskoeln.de (sys-82.netsystec.de [194.8.213.82] (may be forged)) by post.webmailer.de (8.12.8/8.8.7) with ESMTP id h67DCC9I004417 for ; Mon, 7 Jul 2003 15:12:14 +0200 (MEST) Received: from [192.168.8.25] (helo=uw-service.de) by hermes2.uwskoeln.de with esmtp (Exim 3.35 #1 (Debian)) id 19ZVmv-0002ON-00 for ; Mon, 07 Jul 2003 15:12:13 +0200 Received: from hoffmann.uwskoeln.de by uw-service.de with SMTP (MDaemon.PRO.v5.0.5.R) for ; Mon, 07 Jul 2003 15:12:34 +0200 From: Oliver Hoffmann To: Hidetoshi Shimokawa Date: Mon, 7 Jul 2003 15:10:50 +0200 User-Agent: KMail/1.5.2 References: <200307021338.18065.oliver.hoffmann@uw-service.de> <200307041303.21727.oliver.hoffmann@uw-service.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307071510.51305.oliver.hoffmann@uw-service.de> X-Return-Path: oliver.hoffmann@uw-service.de X-MDaemon-Deliver-To: freebsd-firewire@freebsd.org cc: freebsd-firewire@freebsd.org Subject: problems getting ufs_copy working X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Vendors pre-release coordination List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 13:12:18 -0000 Hi all! Maybe this question is digressing, but probably other people here are interested in ufs_copy too. I just installed ufs_copy on my FreeBSD5.1-box. I tried to make an image from my firewire-device to a file. It crashed with a core.dump: # /sbin/ufs_copy -a /dev/da0s1e /data/backupfile copying /dev/da0s1e to /daten/backupfile ufs_version: 1, cg_size: 178.000 MB, fs_size: 152.664 GB cg 0/879 :Bad system call (core dumped) I first tried it with an rw mounted filesystem (/usr), then with my unmounted fw-hd (/dev/da0s1e) but I get always this crash. The backupfile seems to be as big as the source but of course it can't: -rw------- 1 root wheel 153G Jul 7 12:51 backupfile I don't know whether the ufs_copy.core is interesting or not. For me it seems to be a general problem (do I have ufs2?). Thanks, Oliver. From owner-freebsd-firewire@FreeBSD.ORG Mon Jul 7 06:19:11 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEF7237B401 for ; Mon, 7 Jul 2003 06:19:11 -0700 (PDT) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31C8443F93 for ; Mon, 7 Jul 2003 06:19:10 -0700 (PDT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id CD120378217 for ; Mon, 7 Jul 2003 22:19:07 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) h67DJ70J009501; Mon, 7 Jul 2003 22:19:07 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3])3.3.5-GR) with ESMTP id AJF19231; Mon, 7 Jul 2003 22:19:06 +0900 (JST) Date: Mon, 07 Jul 2003 22:19:06 +0900 Message-ID: From: Hidetoshi Shimokawa To: Oliver Hoffmann In-Reply-To: <200307071510.51305.oliver.hoffmann@uw-service.de> References: <200307021338.18065.oliver.hoffmann@uw-service.de> <200307041303.21727.oliver.hoffmann@uw-service.de> <200307071510.51305.oliver.hoffmann@uw-service.de> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 13:19:12 -0000 Remove '-a' option which requires VFS_AIO support in kernel. If you are using 5.1 rather than -current, try 'kldload aio'. Unfortunately, VFS_AIO is broken in -current. Latest ufs_copy supports UFS2 too. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html At Mon, 7 Jul 2003 15:10:50 +0200, Oliver Hoffmann wrote: > > Hi all! > > Maybe this question is digressing, but probably other people here are > interested in ufs_copy too. > I just installed ufs_copy on my FreeBSD5.1-box. I tried to make an image from > my firewire-device to a file. It crashed with a core.dump: > > # /sbin/ufs_copy -a /dev/da0s1e /data/backupfile > copying /dev/da0s1e to /daten/backupfile > ufs_version: 1, cg_size: 178.000 MB, fs_size: 152.664 GB > cg 0/879 :Bad system call (core dumped) > > I first tried it with an rw mounted filesystem (/usr), then with my unmounted > fw-hd (/dev/da0s1e) but I get always this crash. > > The backupfile seems to be as big as the source but of course it can't: > > -rw------- 1 root wheel 153G Jul 7 12:51 backupfile > > I don't know whether the ufs_copy.core is interesting or not. For me it seems > to be a general problem (do I have ufs2?). > Thanks, > > Oliver. > > From owner-freebsd-firewire@FreeBSD.ORG Mon Jul 7 16:05:19 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0502237B401 for ; Mon, 7 Jul 2003 16:05:19 -0700 (PDT) Received: from subliminal.tekrealm.net (12-233-97-227.client.attbi.com [12.233.97.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2345643F75 for ; Mon, 7 Jul 2003 16:05:16 -0700 (PDT) (envelope-from elitetek@tekrealm.net) Received: from subliminal.tekrealm.net (whoami@localhost [127.0.0.1]) h67N596t023414 for ; Mon, 7 Jul 2003 16:05:15 -0700 (PDT) (envelope-from elitetek@tekrealm.net) Received: (from elitetek@localhost) by subliminal.tekrealm.net (8.12.9/8.12.9/Submit) id h67N4mVG023329 for freebsd-firewire@freebsd.org; Mon, 7 Jul 2003 16:04:48 -0700 (PDT) X-Authentication-Warning: subliminal.tekrealm.net: elitetek set sender to elitetek@tekrealm.net using -f Date: Mon, 7 Jul 2003 16:04:38 -0700 From: Andrew Stuart To: freebsd-firewire@freebsd.org Message-ID: <20030707230438.GA23127@freebsd.tekrealm.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Need help getting Firewire HDD to work. X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: elitetek@tekrealm.net List-Id: Vendors pre-release coordination List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 23:05:19 -0000 I recently recieved a firewire 2.5 Firewire hdd, It uses the Oxford 911 Chipset. Unfortantly none of my FreeBSD (4.8, -Stable, 5.1, -Current) boxes detects the drive. The firewire appears to see a change, but just sits there looking dumb after that. included is the output of a dmesg. Can someone give me some hints on how to go about debugging to see why the drive isnt getting used, or where/how I go about adding support for it? on boot: fwohci0: mem 0xe3028000-0xe302bfff,0xe302d000-0xe3 02d7ff irq 12 at device 17.0 on pci0 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 00:50:62:56:00:03:6c:65 fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 if_fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:50:62:03:6c:65 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) (after everything else is detected, right before login prompt - on 4.8, I believe from what I have saw that this is a known issue) can't re-use a leaf (if_fwe_debug)! module_register: module firewire/fwe already exists! on connection of drive: fwohci0: BUS reset fwohci0: node_id=0xc000ffc1, gen=2, CYCLEMASTER mode firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me) firewire0: bus manager 1 (me) or sometimes: fwohci0: BUS reset fwohci0: node_id=0x8000ffc0, gen=4, non CYCLEMASTER mode firewire0: 2 nodes, maxhop <= 1, cable IRM = 0 (me) firewire0: root node is not cycle master capable firewire0: bus manager 0 (me) P.S. The drive does work, I have been able to use it on wind0ze (yuck) and my OSX box. -Andrew -- Andrew Stuart http://www.tekrealm.net "Cleveland? Yes, I spent a week there one day." From owner-freebsd-firewire@FreeBSD.ORG Tue Jul 8 04:55:13 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B587F37B49B for ; Tue, 8 Jul 2003 04:55:13 -0700 (PDT) Received: from post.webmailer.de (natsmtp01.webmailer.de [192.67.198.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56B4C43F75 for ; Tue, 8 Jul 2003 04:55:12 -0700 (PDT) (envelope-from oliver.hoffmann@uw-service.de) Received: from hermes2.uwskoeln.de (sys-82.netsystec.de [194.8.213.82] (may be forged)) by post.webmailer.de (8.12.8/8.8.7) with ESMTP id h68Bt9qi001271 for ; Tue, 8 Jul 2003 13:55:10 +0200 (MEST) Received: from [192.168.8.25] (helo=uw-service.de) by hermes2.uwskoeln.de with esmtp (Exim 3.35 #1 (Debian)) id 19Zr3u-0004yA-00 for ; Tue, 08 Jul 2003 13:55:10 +0200 Received: from hoffmann.uwskoeln.de by uw-service.de with SMTP (MDaemon.PRO.v5.0.5.R) for ; Tue, 08 Jul 2003 13:56:23 +0200 From: Oliver Hoffmann To: Hidetoshi Shimokawa Date: Tue, 8 Jul 2003 13:54:27 +0200 User-Agent: KMail/1.5.2 References: <200307021338.18065.oliver.hoffmann@uw-service.de> <200307071510.51305.oliver.hoffmann@uw-service.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307081354.28017.oliver.hoffmann@uw-service.de> X-Return-Path: oliver.hoffmann@uw-service.de X-MDaemon-Deliver-To: freebsd-firewire@freebsd.org cc: freebsd-firewire@freebsd.org Subject: Re: problems getting ufs_copy working X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Vendors pre-release coordination List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 11:55:14 -0000 Hi! > Remove '-a' option which requires VFS_AIO support in kernel. > If you are using 5.1 rather than -current, try 'kldload aio'. > Unfortunately, VFS_AIO is broken in -current. > Latest ufs_copy supports UFS2 too. Ok, without -a it works. Furthermore I mounted the md0 device with -t vnode instead of vfs. I just loaded "aio" and it works with the "a"-option as well. But I'm afraid that the backup of the whole file does not function # /sbin/ufs_copy -a /mnt/fw/testfile /dev/ad0s1g copying /mnt/fw/testfile to /dev/ad0s1g This "copying" takes about one second and hence nothing is there. That is not that bad, cause often one or a few files are needed and thus I have to mount the backup-file anyway. Thanks for ufs_copy! I'll go on playing around with it. Regards, Oliver. From owner-freebsd-firewire@FreeBSD.ORG Tue Jul 8 06:15:31 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 759CA37B401 for ; Tue, 8 Jul 2003 06:15:31 -0700 (PDT) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12EC14401F for ; Tue, 8 Jul 2003 06:15:29 -0700 (PDT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id BCAC52180F4 for ; Tue, 8 Jul 2003 22:15:26 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) h68DFQBd013900; Tue, 8 Jul 2003 22:15:26 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3])3.3.5-GR) with ESMTP id AJF54195; Tue, 8 Jul 2003 22:15:25 +0900 (JST) Date: Tue, 08 Jul 2003 22:15:25 +0900 Message-ID: From: Hidetoshi Shimokawa To: Oliver Hoffmann In-Reply-To: <200307081354.28017.oliver.hoffmann@uw-service.de> References: <200307021338.18065.oliver.hoffmann@uw-service.de> <200307071510.51305.oliver.hoffmann@uw-service.de> <200307081354.28017.oliver.hoffmann@uw-service.de> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 13:15:31 -0000 At Tue, 8 Jul 2003 13:54:27 +0200, Oliver Hoffmann wrote: > > Remove '-a' option which requires VFS_AIO support in kernel. > > If you are using 5.1 rather than -current, try 'kldload aio'. > > Unfortunately, VFS_AIO is broken in -current. > > Latest ufs_copy supports UFS2 too. > > Ok, without -a it works. Furthermore I mounted the md0 device with -t vnode > instead of vfs. Oops, it was a typo, thanks. > I just loaded "aio" and it works with the "a"-option as well. > > But I'm afraid that the backup of the whole file does not function > > # /sbin/ufs_copy -a /mnt/fw/testfile /dev/ad0s1g > copying /mnt/fw/testfile to /dev/ad0s1g > > This "copying" takes about one second and hence nothing is there. Did you have any output other than 'copying..' line? How about without '-a' option? I appreciate if you could send me the output of: # truss /sbin/ufs_copy /mnt/fw/testfile /dev/ad0s1g /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html From owner-freebsd-firewire@FreeBSD.ORG Wed Jul 9 02:43:32 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5573937B401 for ; Wed, 9 Jul 2003 02:43:32 -0700 (PDT) Received: from post.webmailer.de (natsmtp01.webmailer.de [192.67.198.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id F02EA43FA3 for ; Wed, 9 Jul 2003 02:43:30 -0700 (PDT) (envelope-from oliver.hoffmann@uw-service.de) Received: from hermes2.uwskoeln.de (sys-82.netsystec.de [194.8.213.82] (may be forged)) by post.webmailer.de (8.12.8/8.8.7) with ESMTP id h699hTSl025663 for ; Wed, 9 Jul 2003 11:43:29 +0200 (MEST) Received: from [192.168.8.25] (helo=uw-service.de) by hermes2.uwskoeln.de with esmtp (Exim 3.35 #1 (Debian)) id 19aBUA-00073i-00 for ; Wed, 09 Jul 2003 11:43:38 +0200 Received: from hoffmann.uwskoeln.de by uw-service.de with SMTP (MDaemon.PRO.v5.0.5.R) for ; Wed, 09 Jul 2003 11:44:55 +0200 From: Oliver Hoffmann To: Hidetoshi Shimokawa Date: Wed, 9 Jul 2003 11:42:47 +0200 User-Agent: KMail/1.5.2 References: <200307021338.18065.oliver.hoffmann@uw-service.de> <200307081354.28017.oliver.hoffmann@uw-service.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307091142.47335.oliver.hoffmann@uw-service.de> X-Return-Path: oliver.hoffmann@uw-service.de X-MDaemon-Deliver-To: freebsd-firewire@freebsd.org cc: freebsd-firewire@freebsd.org Subject: Re: problems getting ufs_copy working X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Vendors pre-release coordination List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 09:43:32 -0000 Hi! > Did you have any output other than 'copying..' line? > How about without '-a' option? Doesn't matter. > I appreciate if you could send me the output of: > # truss /sbin/ufs_copy /mnt/fw/testfile /dev/ad0s1g Ok, thats it: truss: cannot open /proc/curproc/mem: No such file or directory truss: cannot open /proc/620/mem: No such file or directory Mhm, something is missing, right? There is another thing wich is a bit confusing: # ls -ahl total 1306356 drwxr-xr-x 2 root wheel 512B Jul 9 09:17 . drwxr-xr-x 4 root wheel 512B Jul 8 10:36 .. -rw------- 1 root wheel 34G Jul 9 09:21 testfile # du -h 1.2G The files inside that backupfile seize 160M! Hope that helps, Oliver. From owner-freebsd-firewire@FreeBSD.ORG Wed Jul 9 04:00:31 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E134F37B401 for ; Wed, 9 Jul 2003 04:00:31 -0700 (PDT) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07C3D43FCB for ; Wed, 9 Jul 2003 04:00:30 -0700 (PDT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 17D9D2182FE for ; Wed, 9 Jul 2003 20:00:28 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) h69B0SBd004883; Wed, 9 Jul 2003 20:00:28 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3])3.3.5-GR) with ESMTP id AJF89994; Wed, 9 Jul 2003 20:00:27 +0900 (JST) Date: Wed, 09 Jul 2003 20:00:27 +0900 Message-ID: From: Hidetoshi Shimokawa To: Oliver Hoffmann In-Reply-To: <200307091142.47335.oliver.hoffmann@uw-service.de> References: <200307021338.18065.oliver.hoffmann@uw-service.de> <200307081354.28017.oliver.hoffmann@uw-service.de> <200307091142.47335.oliver.hoffmann@uw-service.de> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 11:00:32 -0000 At Wed, 9 Jul 2003 11:42:47 +0200, Oliver Hoffmann wrote: > > Hi! > > > Did you have any output other than 'copying..' line? > > How about without '-a' option? > > Doesn't matter. > > > I appreciate if you could send me the output of: > > # truss /sbin/ufs_copy /mnt/fw/testfile /dev/ad0s1g > > Ok, thats it: > truss: cannot open /proc/curproc/mem: No such file or directory > truss: cannot open /proc/620/mem: No such file or directory > > Mhm, something is missing, right? Is this reproducible? Are you sure you have procfs mounted? If truss(1) doesn't work, try ktrace(1) and send me output of kdump(1). > There is another thing wich is a bit confusing: > # ls -ahl > total 1306356 > drwxr-xr-x 2 root wheel 512B Jul 9 09:17 . > drwxr-xr-x 4 root wheel 512B Jul 8 10:36 .. > -rw------- 1 root wheel 34G Jul 9 09:21 testfile > # du -h > 1.2G > > The files inside that backupfile seize 160M! What makes you confused? 'ls -l' shows size of whole file system. du shows the size of the used block in the filesystem (files + directories + inode + etc.) /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html From owner-freebsd-firewire@FreeBSD.ORG Wed Jul 9 06:36:29 2003 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1267E37B404 for ; Wed, 9 Jul 2003 06:36:29 -0700 (PDT) Received: from post.webmailer.de (natsmtp01.webmailer.de [192.67.198.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E6DA43FBD for ; Wed, 9 Jul 2003 06:36:27 -0700 (PDT) (envelope-from oliver.hoffmann@uw-service.de) Received: from hermes2.uwskoeln.de (sys-82.netsystec.de [194.8.213.82] (may be forged)) by post.webmailer.de (8.12.8/8.8.7) with ESMTP id h69DaOFO028242 for ; Wed, 9 Jul 2003 15:36:25 +0200 (MEST) Received: from [192.168.8.25] (helo=uw-service.de) by hermes2.uwskoeln.de with esmtp (Exim 3.35 #1 (Debian)) id 19aF7R-0007ZT-00 for ; Wed, 09 Jul 2003 15:36:25 +0200 Received: from hoffmann.uwskoeln.de by uw-service.de with SMTP (MDaemon.PRO.v5.0.5.R) for ; Wed, 09 Jul 2003 15:37:07 +0200 From: Oliver Hoffmann To: Hidetoshi Shimokawa Date: Wed, 9 Jul 2003 15:31:28 +0200 User-Agent: KMail/1.5.2 References: <200307021338.18065.oliver.hoffmann@uw-service.de> <200307091142.47335.oliver.hoffmann@uw-service.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307091531.29598.oliver.hoffmann@uw-service.de> X-Return-Path: oliver.hoffmann@uw-service.de X-MDaemon-Deliver-To: freebsd-firewire@freebsd.org cc: freebsd-firewire@freebsd.org Subject: Re: Now it works! X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Vendors pre-release coordination List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 13:36:29 -0000 > Is this reproducible? Yes it is. > Are you sure you have procfs mounted? Right /proc wasn't mounted. They kicked it out because of it's poor security. Didn't knew that. > 'ls -l' shows size of whole file system. > du shows the size of the used block in the filesystem > (files + directories + inode + etc.) All right. # truss /sbin/ufs_copy /mnt/fw/testfile /dev/ad0s1g ... open("/dev/ad0s1g",0x201,0600) ERR#16 'Device busy' ftruncate(0xffffffff,0x0,0x9275e000,0x8) ERR#9 'Bad file descriptor' close(4) = 0 (0x0) exit(0x1) process exit, rval = 256 I think the problem was that the device was mounted. I made a restore with a device wich wasn't mounted and everything is alright now. Now I can test ufs_copy with my backups and see how feasible it is. Thanks, Oliver.