From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 19 11:07:14 2011 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 653DE106568F for ; Mon, 19 Sep 2011 11:07:14 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 531608FC14 for ; Mon, 19 Sep 2011 11:07:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8JB7ECw073629 for ; Mon, 19 Sep 2011 11:07:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8JB7Dnl073626 for freebsd-sparc64@FreeBSD.org; Mon, 19 Sep 2011 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Sep 2011 11:07:13 GMT Message-Id: <201109191107.p8JB7Dnl073626@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2011 11:07:14 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f sparc/145211 sparc64 [panic] Memory modified after free o sparc/142102 sparc64 [nfs] [panic] FreeBSD 8.0 kernel panics on sparc64 whe o sparc/141918 sparc64 [ehci] ehci_interrupt: unrecoverable error, controller s sparc/139134 sparc64 kernel output corruption f sparc/108732 sparc64 ping(8) reports 14 digit time on sparc64 s sparc/107087 sparc64 [hang] system is hung during boot from CD o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/80890 sparc64 [panic] kmem_malloc(73728): kmem_map too small running o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 10 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Fri Sep 23 09:25:34 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FD18106564A for ; Fri, 23 Sep 2011 09:25:34 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 5CCD88FC16 for ; Fri, 23 Sep 2011 09:25:34 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1R71iR-0004Mn-Q3 for freebsd-sparc64@freebsd.org; Fri, 23 Sep 2011 10:06:56 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1R71iR-0006g7-KJ for freebsd-sparc64@freebsd.org; Fri, 23 Sep 2011 10:06:39 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id p8N96dcm054320 for ; Fri, 23 Sep 2011 10:06:39 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id p8N96dxo054319 for freebsd-sparc64@freebsd.org; Fri, 23 Sep 2011 10:06:39 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 23 Sep 2011 10:06:39 +0100 From: Anton Shterenlikht To: freebsd-sparc64@freebsd.org Message-ID: <20110923090639.GA54307@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: mount usb flash drive - files inconsistent with amd64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 09:25:34 -0000 I've got a usb flash drive, on which I recorded some data on a Windows box. I'm trying to mount in on FreeBSD now to read the data. I get a different set of files, depending on whether I mount on amd64 or on sparc64. On amd64 r220040: The flash drive is identified as: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 1967MB (4029440 512 byte sectors: 255H 63S/T 250C) I get da0s1 device: # ls -al /dev/da0* crw-r----- 1 root operator 0, 111 Sep 23 09:53 /dev/da0 crw-r----- 1 root operator 0, 112 Sep 23 09:53 /dev/da0s1 I can mount it as MSDOS FS, and get my files: # mount -t msdosfs /dev/da0s1 /mnt/ # df | grep mnt /dev/da0s1 4021560 369072 3652488 9% /mnt # ls -al /mnt/ total 2148 drwxr-xr-x 1 root wheel 4096 Dec 31 1979 . drwxr-xr-x 24 root wheel 512 Sep 23 00:16 .. -rwxr-xr-x 1 root wheel 394393 Apr 6 15:50 debbie.csv -rwxr-xr-x 1 root wheel 523776 Apr 6 15:49 debbie.xls drwxr-xr-x 1 root wheel 69632 Apr 7 16:52 x80-a01-190psi drwxr-xr-x 1 root wheel 102400 Apr 7 11:20 x80-t01-190bar # du -sh /mnt/ 160M /mnt/ I cannont mount /dev/da0 itself: # umount /mnt/ # mount /dev/da0 /mnt/ mount: /dev/da0 : Invalid argument # mount -t msdosfs /dev/da0 /mnt/ mount_msdosfs: /dev/da0: Invalid argument However, on sparc64 r216048, the situation is reversed. The drive is identified exactly as on amd64: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 1967MB (4029440 512 byte sectors: 255H 63S/T 250C) But there is no da0s1 device: # ls -al /dev/da0* crw-r----- 1 root operator 0, 109 Sep 23 09:59 /dev/da0 Instead I can mount da0 directly, and it's UFS, not msdosfs: # mount /dev/da0 /mnt/ mech-anton240# df |grep mnt /dev/da0 1949518 6 1793552 0% /mnt And the files I get are different: # ls -al /mnt/ total 8 drwxr-xr-x 3 root wheel 512 Aug 19 12:59 . drwxr-xr-x 22 root wheel 512 Aug 1 15:35 .. drwxrwxr-x 2 root operator 512 Aug 19 12:58 .snap -rw-r--r-- 1 root wheel 17 Aug 19 12:59 zzz # du -sh /mnt/ 6.0K /mnt/ # What's going on? Is this expected? Or has this flash drive got corrupted somehow? Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 From owner-freebsd-sparc64@FreeBSD.ORG Fri Sep 23 13:28:39 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 023E7106564A for ; Fri, 23 Sep 2011 13:28:39 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9]) by mx1.freebsd.org (Postfix) with ESMTP id A2E908FC13 for ; Fri, 23 Sep 2011 13:28:38 +0000 (UTC) Received: by uriah.heep.sax.de (Postfix, from userid 107) id 2980127; Fri, 23 Sep 2011 15:10:52 +0200 (MET DST) Date: Fri, 23 Sep 2011 15:10:52 +0200 From: Joerg Wunsch To: freebsd-sparc64@freebsd.org Message-ID: <20110923131052.GW45024@uriah.heep.sax.de> References: <20110923090639.GA54307@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110923090639.GA54307@mech-cluster241.men.bris.ac.uk> X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: mount usb flash drive - files inconsistent with amd64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Wunsch List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 13:28:39 -0000 As Anton Shterenlikht wrote: > What's going on? > Is this expected? > Or has this flash drive got corrupted somehow? My guess is that you've mixed two filesystems on it, a UFS on the entire stick, and a FAT fs on a slice. The AMD64 cannot mount the UFS because of the reverse byte order. On the Sparc, are you sure you actually enabled fdisk partitions? Otherwise, it would not be surprising that it doesn't recognize the slice. Both filesystems likely mutually corrupt each other when you try to write to them. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-sparc64@FreeBSD.ORG Fri Sep 23 13:29:00 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DD34106566C for ; Fri, 23 Sep 2011 13:29:00 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id EEF418FC08 for ; Fri, 23 Sep 2011 13:28:59 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1R75o7-0003Md-PT; Fri, 23 Sep 2011 14:28:53 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1R75nk-00025H-CW; Fri, 23 Sep 2011 14:28:24 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id p8NDSOPr003081; Fri, 23 Sep 2011 14:28:24 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id p8NDSO63003080; Fri, 23 Sep 2011 14:28:24 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 23 Sep 2011 14:28:24 +0100 From: Anton Shterenlikht To: Joerg Wunsch Message-ID: <20110923132823.GA3053@mech-cluster241.men.bris.ac.uk> References: <20110923090639.GA54307@mech-cluster241.men.bris.ac.uk> <20110923131052.GW45024@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110923131052.GW45024@uriah.heep.sax.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: mount usb flash drive - files inconsistent with amd64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 13:29:00 -0000 On Fri, Sep 23, 2011 at 03:10:52PM +0200, Joerg Wunsch wrote: > As Anton Shterenlikht wrote: > > > What's going on? > > Is this expected? > > Or has this flash drive got corrupted somehow? > > My guess is that you've mixed two filesystems on it, a UFS on the > entire stick, and a FAT fs on a slice. The AMD64 cannot mount the UFS > because of the reverse byte order. On the Sparc, are you sure you > actually enabled fdisk partitions? I've no idea I had to do this, so I guess no. Where can I read more about enabling fdisk partitions on sparc? I need this usb stick to be recognised by Windows systems, so I guess I have to format is with fdisk first? I definitely haven't done it manually. So I guess when I wrote data on it on a Windows system, the FAT slice was created by Windows. Is this likely? Many thanks -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 From owner-freebsd-sparc64@FreeBSD.ORG Fri Sep 23 13:40:33 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BDDC106564A for ; Fri, 23 Sep 2011 13:40:33 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9]) by mx1.freebsd.org (Postfix) with ESMTP id F3FA18FC0C for ; Fri, 23 Sep 2011 13:40:32 +0000 (UTC) Received: by uriah.heep.sax.de (Postfix, from userid 107) id 9F92748; Fri, 23 Sep 2011 15:40:31 +0200 (MET DST) Date: Fri, 23 Sep 2011 15:40:31 +0200 From: Joerg Wunsch To: Anton Shterenlikht Message-ID: <20110923134031.GX45024@uriah.heep.sax.de> References: <20110923090639.GA54307@mech-cluster241.men.bris.ac.uk> <20110923131052.GW45024@uriah.heep.sax.de> <20110923132823.GA3053@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110923132823.GA3053@mech-cluster241.men.bris.ac.uk> X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-sparc64@freebsd.org Subject: Re: mount usb flash drive - files inconsistent with amd64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Wunsch List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 13:40:33 -0000 As Anton Shterenlikht wrote: > > On the Sparc, are you sure you > > actually enabled fdisk partitions? > > I've no idea I had to do this, so I guess no. > Where can I read more about enabling fdisk partitions on sparc? I had to boot my Sparc machine to find out. ;-) Try "kldload geom_mbr". Unlike on the AMD64, this is probably not part of a standard kernel on FreeBSD/sparc64. > I need this usb stick to be recognised by Windows systems, > so I guess I have to format is with fdisk first? Well, it's already got an fdisk slice table, as you can see on the AMD64 machine. You just have to make sure that the UFS access did not already corrupt something in the FAT filesystem. It's probably best to start over with a fresh "newfs_msdos /dev/da0s1", I think. > I definitely haven't done it manually. So I guess when I wrote data > on it on a Windows system, the FAT slice was created by Windows. > Is this likely? Yes, it is. The only question is where (and why) you UFS formatted it on the Sparc. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-sparc64@FreeBSD.ORG Fri Sep 23 13:52:40 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F337106566B for ; Fri, 23 Sep 2011 13:52:40 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id DF7508FC08 for ; Fri, 23 Sep 2011 13:52:39 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1R76BB-00024c-Df; Fri, 23 Sep 2011 14:52:38 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1R76BB-0002fL-6a; Fri, 23 Sep 2011 14:52:37 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id p8NDqaHP003754; Fri, 23 Sep 2011 14:52:36 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id p8NDqaAA003753; Fri, 23 Sep 2011 14:52:36 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 23 Sep 2011 14:52:36 +0100 From: Anton Shterenlikht To: Joerg Wunsch Message-ID: <20110923135236.GA3739@mech-cluster241.men.bris.ac.uk> References: <20110923090639.GA54307@mech-cluster241.men.bris.ac.uk> <20110923131052.GW45024@uriah.heep.sax.de> <20110923132823.GA3053@mech-cluster241.men.bris.ac.uk> <20110923134031.GX45024@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110923134031.GX45024@uriah.heep.sax.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: SOLVED: Re: mount usb flash drive - files inconsistent with amd64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 13:52:40 -0000 On Fri, Sep 23, 2011 at 03:40:31PM +0200, Joerg Wunsch wrote: > As Anton Shterenlikht wrote: > > > > On the Sparc, are you sure you > > > actually enabled fdisk partitions? > > > > I've no idea I had to do this, so I guess no. > > Where can I read more about enabling fdisk partitions on sparc? > > I had to boot my Sparc machine to find out. ;-) > > Try "kldload geom_mbr". Unlike on the AMD64, this is probably not > part of a standard kernel on FreeBSD/sparc64. Yes, this is what I didn't realise. "kldload geom_part_mbr" did it. Many thanks -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423