From owner-freebsd-ppc@FreeBSD.ORG Wed Feb 4 23:44:06 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4709D106566B for ; Wed, 4 Feb 2009 23:44:06 +0000 (UTC) (envelope-from cdick@ocis.net) Received: from mail.ocis.net (mail.ocis.net [209.52.173.152]) by mx1.freebsd.org (Postfix) with ESMTP id 2A3508FC08 for ; Wed, 4 Feb 2009 23:44:05 +0000 (UTC) (envelope-from cdick@ocis.net) Received: from localhost ([127.0.0.1] helo=mail.ocis.net) by mail.ocis.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LUrPZ-000PEE-GV; Wed, 04 Feb 2009 15:44:05 -0800 From: "Colin Dick" To: Garance A Drosihn ,freebsd-ppc@freebsd.org Date: Wed, 4 Feb 2009 15:44:05 -0800 Message-Id: <20090204232015.M67846@ocis.net> In-Reply-To: References: <20090105162138.M45881@ocis.net> <1231178414.24576.32.camel@horst-tla> <20090127000528.M4693@ocis.net> <20090127235026.M44901@ocis.net> <20090128015649.M62384@ocis.net> X-Mailer: OpenWebMail 2.53 X-OriginatingIP: 209.52.175.38 (cdick) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: Subject: Problems with ext2fs mount. Was: FreeBSD 7 Install on an older Mac Mini X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 23:44:06 -0000 Hey all, I have successfully got my hosting server up and running. As Garance suggested once it was installed and you know how to boot by breaking into OFW and issuing the appropriate boot command, the rest runs just like the i386 FreeBSD system. I have upgraded my kernel, installed exim/vexim, mysql, apache, php, roundcube, bind and a few other ports with no issues at all. I have moved over my few domains from my i386 server and everything seems to be working just fine. Thanks to everyone who helped to get me going. Now I am having trouble with something else. I don't know/think this is PPC related, but more FreeBSD users. However, excuse my non-desire to signup to yet another mailing list in hopes someone here has run into this issue before... and who knows, maybe it *is* PPC specific? I couldn't find a suitable answer in Google. I had an ext2 disk in my i386 system and I want to mount it in FreeBSD-ppc. I have recompiled the kernel with: options EXT2FS I have loaded the ext2 disk into an external USB chassis and plugged it in: Feb 4 21:54:47 macmini kernel: umass0: on uhub5 Feb 4 21:54:47 macmini root: Unknown USB device: vendor 0x05e3 product 0x0702 bus uhub5 Feb 4 21:54:47 macmini kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Feb 4 21:54:47 macmini kernel: da0: Fixed Direct Access SCSI-0 device Feb 4 21:54:47 macmini kernel: da0: 40.000MB/s transfers Feb 4 21:54:47 macmini kernel: da0: 156334MB (320173056 512 byte sectors: 255H 63S/T 19929C) I see /dev/da0 and /dev/da0s1 now exist. I have installed the sfdisk port and with "sfdisk /dev/da0" I see: Disk name: da0 FDISK Partition Editor DISK Geometry: 19929 cyls/255 heads/63 sectors = 320159385 sectors (156327MB) Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 320159322 320159384 da0s1 13 unknown 0 320159385 13671 320173055 - 12 unused 0 However, when I try to mount, I see: [root@macmini ~]# mount -t ext2fs /dev/da0s1 /mnt mount: /dev/da0s1 : Invalid argument In /var/log/messages, this appears: Feb 4 21:56:30 macmini kernel: ext2fs: da0s1: wrong magic number 0x53ef (expected 0xef53) Can someone explain what this means and how I can get the 'magic number' from 0x53ef to the expected 0xef53 which I hope will solve my problem. Thanks in advance. -- Colin Dick On Tue, 27 Jan 2009 21:24:20 -0500, Garance A Drosihn wrote > At 5:56 PM -0800 1/27/09, Colin Dick wrote: > > I have just run portsnap fetch/extract and I am ready to start > >building ports. Before I begin and break things, is there > >anything special I have to do before building or can I now just > >start to run this thing like I would any i386 device > > In my case, after I got past the initial install than I treat my PPC > mini-mac install pretty much the same way I do for all my other > FreeBSD installs. Of course, that's no guarantee that you won't > run into other issues. In particular, I don't run X11 on *any* of > my FreeBSD machines, so I don't know what the state of X11, KDE, > or GNOME is on FreeBSD/PPC. > > Hopefully it will work fine for you, and it'll be worth all the > initial trouble in setting it up! :-) > > -- > Garance Alistair Drosehn = gad@gilead.netel.rpi.edu > Senior Systems Programmer or gad@freebsd.org > Rensselaer Polytechnic Institute or drosih@rpi.edu