From owner-freebsd-questions@FreeBSD.ORG Mon Aug 20 16:08:08 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 17C2E16A41A for ; Mon, 20 Aug 2007 16:08:08 +0000 (UTC) (envelope-from msherman77@yahoo.com) Received: from web88310.mail.re4.yahoo.com (web88310.mail.re4.yahoo.com [216.39.53.233]) by mx1.freebsd.org (Postfix) with SMTP id D336613C48D for ; Mon, 20 Aug 2007 16:08:07 +0000 (UTC) (envelope-from msherman77@yahoo.com) Received: (qmail 25160 invoked by uid 60001); 20 Aug 2007 16:08:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=X/YjwBK7Ldc65TfZHLntFd+CHPQOvvz8pESHDo5xE62q1w/w5aTYWJH9A2YAdX7igUACuSGVl6IoqCQ7k3iUjkholyE6SxhYzrXkbKoUb1TM525lERgB+GB2i0bix1gd8jM4rzcanTAoATdFDkbopbihgy8vMAcg1M+CoWwNz5I=; X-YMail-OSG: _s44BewVM1mcBbKK9unNevt0CKZkEXF6Lt1KG.q.ZyXZqaq.p0m5qvs0idnha7U66IujaWoHizJnCTjxoCjhfioAdkqyfXxk0C.Hj8sns3_3vsQ7ALQIrE0jXhFFZQ-- Received: from [204.253.245.126] by web88310.mail.re4.yahoo.com via HTTP; Mon, 20 Aug 2007 12:08:06 EDT Date: Mon, 20 Aug 2007 12:08:06 -0400 (EDT) From: Michael S To: Jerry McAllister , FreeBSD Mailing List In-Reply-To: <20070820152109.GD44640@gizmo.acns.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <71851.24788.qm@web88310.mail.re4.yahoo.com> 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 16:08:08 -0000 Jerry, *** When I untarred the file I had everything under /user/usr. I was under /user/usr and then I did mv * .. I then edited fstab and changed /dev/da2s1d to be /usr, instead of /user And of course the old /usr I switched to /user Thanks in advance --- Jerry McAllister wrote: > On Mon, Aug 20, 2007 at 11:10:12AM -0400, 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. > > You have that backwards. You created one slice on > the disk > and one partition within that slice. Minor thing, > but can > confuse communication. > > > I then tarred up /usr > > Tar –cf /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. > > I am not completely sure just what you mean by > 'moved one directory up' > and 'switched /usr and /user around'. > It sounds an awful lot like you are saying you > modified /etc/fstab to mount > this new partition (probably /dev/da2s1a, though > the 'a' might be > something else) as /user instead of /user/usr. > > But, the new partition needs to be mounted as /usr > > > > After reboot, I wasn’t 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’t mounting properly. I restarted the machine, > > this time going into single user mode. Trying to > mount > > –a gave me an error message: Error mounting > /usr/home. > > I then created home directory under the new /usr, > I > > tried mount –a, this time it worked, but when I > > rebooted, I wasn’t getting my home directory. When > I > > login as an unprivileged user – michael, the > message > > is something like: “User has no home directory”. > > > > 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’t provide the exact fstab or dmesg output. > > I guess we need the actual /etc/fstab to be sure > just what > has been done. Maybe also some dmesg output that > shows the > disk devices could be useful too. > > ////jerry > > > > > Thanks in advance, > > Michael > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > >