From owner-freebsd-questions@FreeBSD.ORG Mon Aug 20 15:17:23 2007 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 3FB9216A421 for ; Mon, 20 Aug 2007 15:17:23 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id D1B1813C457 for ; Mon, 20 Aug 2007 15:17:22 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l7KFHEaj023274; Mon, 20 Aug 2007 10:17:14 -0500 (CDT) Message-Id: <6.0.0.22.2.20070820101558.0257ddc8@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 20 Aug 2007 10:16:36 -0500 To: Michael S , FreeBSD Mailing List From: Derek Ragona In-Reply-To: <748444.92682.qm@web88301.mail.re4.yahoo.com> References: <748444.92682.qm@web88301.mail.re4.yahoo.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Trying to move /usr 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: Mon, 20 Aug 2007 15:17:23 -0000 At 10:10 AM 8/20/2007, Michael S wrote: >Good morning everyone, > >I am trying to migrate my /usr to a newly installed >SCSI drive. Up until yesterday I had /, /var, /usr on >a 5 Gig drive and my /home was on another 60 Gig >drive, which was fine because it had no GUI and >functioned mostly as a server. > >Last night I added a third drive, with a capacity >around 18G; since my other two drives are hard-wired >in /boot/device.hints, there were no problems with >device numbering. I wrote down the device name >(/dev/da2) and proceeded to sysinstall to first create >a FreeBSD partition and then the only slice within >that partition. I named it /user. > >I then tarred up /usr >Tar =ADcf /user/usr.tar /usr > >Extracted the tar file and moved everything one >directory up, because otherwise everything were under >/user/usr. > >I made the necessary adjustnments in /etc/fstab, that >is I switched /usr and /user around. > >After reboot, I wasn=92t getting the prompt, since the >binaries for displaying the prompt are located under >/usr/bin (or /usr/sbin?) and my guess was that /usr >wasn=92t mounting properly. I restarted the machine, >this time going into single user mode. Trying to mount >=ADa gave me an error message: Error mounting /usr/home. >I then created home directory under the new /usr, I >tried mount =ADa, this time it worked, but when I >rebooted, I wasn=92t getting my home directory. When I >login as an unprivileged user =AD michael, the message >is something like: =93User has no home directory=94. > >For now I reverted to using the old /usr. > >Anyone attempted to migrate /usr and fell for similar >kind of problems? Any suggestions will be appreciated. > >P.S. I am not next to that machine right now, so I >can=92t provide the exact fstab or dmesg output. > >Thanks in advance, >Michael When you un-tarred did you use -p to be sure the perms were all correct? -Derek --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.