From owner-freebsd-questions Mon Feb 12 11:45:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from the.outroad.org (the.outroad.org [206.152.117.186]) by hub.freebsd.org (Postfix) with ESMTP id 3E07337B491 for ; Mon, 12 Feb 2001 11:45:37 -0800 (PST) Received: (from bweaver@localhost) by the.outroad.org (8.11.1/8.11.1) id f1CJmjA07621; Mon, 12 Feb 2001 13:48:45 -0600 (CST) (envelope-from bweaver) Date: Mon, 12 Feb 2001 13:48:45 -0600 From: Ben Weaver To: Kathy Quinlan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Newbie Questions Message-ID: <20010212134845.D7350@tranquility.net> References: <01c101c09525$cefd28c0$fe00a8c0@kat.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="xB0nW4MQa6jZONgY" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01c101c09525$cefd28c0$fe00a8c0@kat.lan>; from katinka@magestower.com on Tue, Feb 13, 2001 at 02:58:36AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --xB0nW4MQa6jZONgY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ###On Tue, Feb 13, 2001 at 02:58:36AM +0800, Kathy Quinlan wrote: > Hi all a few questions. >=20 > #1 I have recompiled my kernel and now get these messages on boot up, and > would like to get rid of them: >=20 > Feb 13 02:30:21 serverbsd /kernel: config> di sn0 > Feb 13 02:30:22 serverbsd /kernel: No such device: sn0 > Feb 13 02:30:22 serverbsd /kernel: Invalid command or syntax. Type `?' f= or (snip...) You can get rid of these by editing /boot/kernel.conf and removing the offe= nding lines. For the error above, remove the "di sn0" line. > #2 I currently have a 773mb hdd which is nearly full due to new kernel, i= f I > was to add a 4.3 GB to the box, can I shift my /usr over easily (it is a > netserver also running netatalk). Can I also resize the / partition to fi= ll > the hole left by /usr ? You should first fdisk, label, and newfs the 4.3GB HD. You may use /stand/= sysinstall to do this, or the command line utilities. See http://www.freeb= sd.org/handbook/disks-adding.html for more information. Don't make an /etc= /fstab entry for it yet unless you really want to. Now, drop down into single-user mode. (The command "shutdown now" will wor= k) Make sure all of the partitions on your 773Mb HD are mounted read/write. M= ount the 4.3GB HD on something like /mnt or /new. Assuming you mount it as= /new, issue this command to copy the existing /usr to the /new: tar cf - -C /usr . | tar xvf - -C /new Now, edit /etc/fstab so that /usr gets automatically mounted from the new 4= .3GB drive. Then umount /new and umount /usr, then mount /usr (Since you m= odified /etc/fstab already. it knows that "mount /usr" means to mount the 4= .3GB drive on /usr). Do a "df" to confirm that the right drive is mounted,= then I'd recommend rebooting the computer just to make sure it comes up th= e way you expect it to. I'm not sure about resizing the root partition to absorb the old /usr. =20 -Ben --xB0nW4MQa6jZONgY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6iD4dlLyqskZtc9ERAkXJAJ9tqZQMreL0qbJiyi9mzzws4Is47gCfZHEn ZGVmq1uuTzqpUvP404ZMcK4= =Awsr -----END PGP SIGNATURE----- --xB0nW4MQa6jZONgY-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message