From owner-freebsd-questions@FreeBSD.ORG Fri Aug 21 11:59:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0029C106568E for ; Fri, 21 Aug 2009 11:59:26 +0000 (UTC) (envelope-from mailinglists@martinlaabs.de) Received: from relay01.alfahosting-server.de (relay01.alfahosting-server.de [80.86.191.73]) by mx1.freebsd.org (Postfix) with ESMTP id 576648FC3F for ; Fri, 21 Aug 2009 11:59:26 +0000 (UTC) Received: by relay01.alfahosting-server.de (Postfix, from userid 1001) id 0F76020094EE8; Fri, 21 Aug 2009 13:38:00 +0200 (CEST) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=0.1 required=7.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.1.7-deb3 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [82.197.146.36]) by relay01.alfahosting-server.de (Postfix) with ESMTP id 9BA0A200951CE for ; Fri, 21 Aug 2009 13:37:54 +0200 (CEST) Received: from pc.martinlaabs.de (p5B0ECCBE.dip.t-dialin.net [91.14.204.190]) by alfa3018.alfahosting-server.de (Postfix) with ESMTP id 4C052515D280 for ; Fri, 21 Aug 2009 13:37:54 +0200 (CEST) Message-ID: <4A8E870E.70205@martinlaabs.de> Date: Fri, 21 Aug 2009 13:37:50 +0200 From: Martin Laabs User-Agent: Thunderbird 2.0.0.22 (X11/20090808) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.94.2/9724/Fri Aug 21 05:27:53 2009 Subject: g_vfs_done() WRITE error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 11:59:27 -0000 Hi, I have a brand new HDD and I copied my system and home directory to it. While copying my home directory I got the following errors at dmesg and /var/log/messages: Aug 21 08:49:16 pc kernel: g_vfs_done():ufs/home[WRITE(offset=50879299584, length=32768)]error = 1 Aug 21 08:49:51 pc last message repeated 12 times Aug 21 08:51:51 pc last message repeated 19 times Aug 21 08:55:25 pc last message repeated 35 times Aug 21 08:55:29 pc kernel: g_vfs_done():ufs/home[WRITE(offset=50879315968, length=16384)]error = 1 Aug 21 08:55:29 pc last message repeated 4 times Errno 1 would mean access denied. However - this makes no sense to me for the hardware access to the harddisk. The partition is encrypted via gbde. So /dev/ufs/home points to the same partition /dev/label/home.bde which is the "decrypted" /dev/label/home. (And /dev/label/home points to /dev/ad4s4e) smartctrl -a /dev/ad4 reports no errors (i.e. sector defects) uname -a: FreeBSD pc.martinlaabs.de 7.2-STABLE FreeBSD 7.2-STABLE #1: Sat Aug 15 18:48:58 CEST 2009 martin@pc.martinlaabs.de:/usr/obj/usr/src/sys/GENERIC i386 Can you explain me that error? Thank you, Martin L. PS: Here is my dmesg (the "medium not present" error at sa0 is ok since it is a streamer without a tape) Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-STABLE #1: Sat Aug 15 18:48:58 CEST 2009 martin@pc.martinlaabs.de:/usr/obj/usr/src/sys/GENERIC module_register: module uhub/uftdi already exists! Module uhub/uftdi failed to register: 17 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) II X2 240 Processor (2795.97-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x100f62 Stepping = 2 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x37ff TSC: P-state invariant Cores per package: 2 real memory = 2012938240 (1919 MB) avail memory = 1947013120 (1856 MB) ACPI APIC Table: <040909 APIC1950> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: <040909 RSDT1950> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of fefe1000, 1000 (3) failed acpi0: reservation of fee01000, ff000 (3) failed acpi0: reservation of fec00000, 1000 (3) failed acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: port 0x1f00-0x1fff at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) pci0: at device 1.3 (no driver attached) ohci0: mem 0xfbe7f000-0xfbe7ffff irq 22 at devic e 2.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 6 ports with 6 removable, self powered ehci0: mem 0xfbe7ec00-0xfbe7ecff irq 23 at d evice 2.1 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb1: EHCI version 1.0 usb1: companion controller, 12 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: on usb1 uhub1: 6 ports with 6 removable, self powered ohci1: mem 0xfbe7d000-0xfbe7dfff irq 20 at devic e 4.0 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb2: OHCI version 1.0, legacy support usb2: SMM does not respond, resetting usb2: on ohci1 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 6 ports with 6 removable, self powered ehci1: mem 0xfbe7e800-0xfbe7e8ff irq 21 at d evice 4.1 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controller, 12 ports each: usb2 usb3: on ehci1 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0 x177,0x376,0xffa0-0xffaf at device 6.0 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] hdac0: mem 0xfbe78000-0xfbe7bfff irq 22 at device 7.0 on pci0 hdac0: HDA Driver Revision: 20090624_0136 hdac0: [ITHREAD] pcib1: at device 8.0 on pci0 pci1: on pcib1 pcib2: at device 10.0 on pci1 pci2: on pcib2 asr0: mem 0xf6000000-0xf7ffffff irq 10 at device 10. 1 on pci1 asr0: [GIANT-LOCKED] asr0: [ITHREAD] asr0: ADAPTEC 2100S FW Rev. 370F, 1 channel, 256 CCBs, Protocol I2O atapci1: port 0xf80-0xf87,0xf00-0xf03,0 xe80-0xe87,0xe00-0xe03,0xdc00-0xdc0f mem 0xfbe76000-0xfbe77fff irq 23 at device 9.0 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.10 controller with 4 ports detected ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] nfe0: port 0xd880-0xd887 mem 0xfbe7c000 -0xfbe7cfff,0xfbe7e400-0xfbe7e4ff,0xfbe7e000-0xfbe7e00f irq 20 at device 10.0 on pci0 miibus0: on nfe0 rgephy0: PHY 3 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-F DX, auto nfe0: Ethernet address: 00:19:66:db:c0:ec nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] pcib3: at device 11.0 on pci0 pci3: on pcib3 pcib4: at device 12.0 on pci0 pci4: on pcib4 pcib5: at device 13.0 on pci0 pci5: on pcib5 pcib6: at device 14.0 on pci0 pci6: on pcib6 pcib7: at device 15.0 on pci0 pci7: on pcib7 pcib8: at device 16.0 on pci0 pci8: on pcib8 pcib9: at device 17.0 on pci0 pci9: on pcib9 vgapci0: mem 0xfa000000-0xfaffffff,0xe0000000-0xeffffff f,0xf9000000-0xf9ffffff irq 21 at device 18.0 on pci0 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] acpi_button0: on acpi0 sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: port 0x2f8-0x2ff irq 3 flags 0x10 on acpi 0 sio0: type 16550A sio0: [FILTER] fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi 0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sio1: configured irq 4 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 4 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 sio1: type 16550A sio1: [FILTER] cpu0: on acpi0 cpu1: on acpi0 pmtimer0 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 ppbus0: [ITHREAD] lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub0 ums0: 3 buttons and Z dir. uhub4: on uhub2 uhub4: 4 ports with 4 removable, bus powered ugen0: on uh ub4 ugen1: on uhub4 uhid0: on uhub2 Timecounters tick every 1.000 msec ad0: 76319MB at ata0-master UDMA100 ad1: 76319MB at ata0-slave UDMA133 ad4: 476940MB at ata2-master SATA300 hdac0: HDA Codec #0: Realtek ALC662 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 (probe0:asr0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:asr0:0:0:0): CAM Status: SCSI Status Error (probe0:asr0:0:0:0): SCSI Status: Check Condition (probe0:asr0:0:0:0): UNIT ATTENTION asc:29,0 (probe0:asr0:0:0:0): Power on, reset, or bus device reset occurred (probe0:asr0:0:0:0): Retrying Command (per Sense Data) (probe0:asr0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:asr0:0:0:0): CAM Status: SCSI Status Error (probe0:asr0:0:0:0): SCSI Status: Check Condition (probe0:asr0:0:0:0): NOT READY asc:3a,0 (probe0:asr0:0:0:0): Medium not present (probe0:asr0:0:0:0): Unretryable error sa0 at asr0 bus 0 target 0 lun 0 sa0: Removable Sequential Access SCSI-3 device SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad1s1a WARNING: / was not properly dismounted WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted nfe0: link state changed to UP fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 WARNING: /media was not properly dismounted WARNING: /home was not properly dismounted WARNING: R/W mount of /ns denied. Filesystem is not clean - run fsck g_vfs_done():ufs/home[WRITE(offset=50879299584, length=32768)]error = 1