Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 2009 15:44:05 -0800
From:      "Colin Dick" <cdick@ocis.net>
To:        Garance A Drosihn <drosih@rpi.edu>,freebsd-ppc@freebsd.org
Subject:   Problems with ext2fs mount. Was: FreeBSD 7 Install on an older Mac Mini
Message-ID:  <20090204232015.M67846@ocis.net>
In-Reply-To: <p06240805c5a57096ff7f@[128.113.24.47]>
References:  <20090105162138.M45881@ocis.net> <1231178414.24576.32.camel@horst-tla>	<20090127000528.M4693@ocis.net> <p06240802c5a43899e098@[128.113.24.47]> <20090127235026.M44901@ocis.net> <p06240802c5a5574c1220@[128.113.24.47]> <20090128015649.M62384@ocis.net> <p06240805c5a57096ff7f@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <vendor 0x05e3 USB TO IDE, class 0/0, rev 2.00/0.33, addr 2> 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: <Maxtor 6 Y160P0 0811> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090204232015.M67846>