From owner-freebsd-questions@FreeBSD.ORG Sun Jan 11 10:58:14 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 9C2661065670 for ; Sun, 11 Jan 2009 10:58:14 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.freebsd.org (Postfix) with ESMTP id 49F748FC0A for ; Sun, 11 Jan 2009 10:58:13 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id n0BAwCM6062044; Sun, 11 Jan 2009 11:58:12 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 0BCCDBA89; Sun, 11 Jan 2009 11:58:12 +0100 (CET) Date: Sun, 11 Jan 2009 11:58:11 +0100 From: Roland Smith To: William Gordon Rutherdale Message-ID: <20090111105811.GA33194@slackbox.xs4all.nl> References: <4968EDAF.40108@utoronto.ca> <3a142e750901101153x66d0099dxa871dce07df32175@mail.gmail.com> <49694724.6090705@utoronto.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <49694724.6090705@utoronto.ca> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Cannot get ethernet off the ground 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: Sun, 11 Jan 2009 10:58:14 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 10, 2009 at 08:11:00PM -0500, William Gordon Rutherdale wrote: > I have to use paper-sneakernet because > - no network connectivity yet > - tried plugging in a memory stick; it flashed but nothing showed up=20 > with the 'mount' command It won't mount automatically, unless you have the automounter configured. If you want to mount USB drives as a normal user, you have to run the command 'sysctl vfs.usermount=3D1' as root. To make this change permanent, put 'vfs.usermount=3D1' in /etc/sysctl.conf. Next, you have to make a directory to mount it. I would suggest /mnt/$USER (where $USER is your username). Make sure that _you_ own that directory. Next, you'll need read/write access to the devices. I would suggest to create a group called usb, and make yourself a member of this group. See pw(8). With that done, you chould add a rule to /etc/devfs.rules. See the EXAMPLES in devfs.rules(5). If all of that is sorted, you should see one or more /dev/daXsY devices appear when you plug in the USB drive, X and Y being numbers, e.g. /dev/da0s1. This means first slice [s1] on the first da(4) device [da0= ]. To mount this device if it is formatted as FAT partition do: mount_msdosfs -m 644 -M 755 -l -o noatime -o sync -o noexec -o nosuid \ /dev/da0s1 /mnt/$USER > none2@pci0:2:0:0: class=3D0x020000 card=3D0x2abf103c chip=3D0x816810ec=20 > rev=3D0x02 hdr=3D0x00 > vendor =3D 'Realtek Semiconductor' > device =3D 'RTL 8168/8111 PCI-E Gigabit Ethernet NIC' > class =3D network > subclass =3D ethernet This should be recognized by the re(4) driver. This driver is present in the generic kernel. Are you running a custom kernel? ('uname -i' can tell you the name of the kernel you are running) If so, try running 'kldload if_re.ko'. The device should then show up as /dev/net/re0. If this works, you'll have to load the module on the next boot, by adding 'if_re_load=3D"YES"' to /boot/loader.conf. You will also have to configure the device in etc/rc.conf. This is covered in the handbook. You can find the english version at [1]. It is also available on the FreeBSD site. If you are running the GENERIC kernel and it does not recognize this chip, try upgrading to the latest release. If that doesn't work, you should probably file a problem report with send-pr(1). Roland [1: file:///usr/share/doc/en_US.ISO8859-1/books/handbook/index.html] =20 --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklp0MMACgkQEnfvsMMhpyW2YQCgjlQvL8ZNDMj6SQpJnM+M3b35 U24An1TJCAgzgNkoYRwOkYhda4/S9QAV =S/rp -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--