From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FI92K-0007fN-NL for garchives@archives.gentoo.org; Sat, 11 Mar 2006 18:41:57 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with SMTP id k2BIelI8016643; Sat, 11 Mar 2006 18:40:47 GMT Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.179]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with ESMTP id k2BIaZmF021836 for ; Sat, 11 Mar 2006 18:36:38 GMT Received: by pproxy.gmail.com with SMTP id i49so523741pyi for ; Sat, 11 Mar 2006 10:36:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BJF67oii5lv2zjvl69hUQIRlSXaSDcjslMKoApFat9uPsT8lpXV0GKhqljFDMwSXBnwcb47vm6WrpSeL/HHVZmCJD6Ev6t0S1ZaqdXPoBknUD/X0sZy/axQdf4LzSAcXRxDoJ31W4jceadtZR85o9nkzzC1BtdK1E5day7D388Y= Received: by 10.35.60.15 with SMTP id n15mr1366529pyk; Sat, 11 Mar 2006 10:36:35 -0800 (PST) Received: by 10.35.31.3 with HTTP; Sat, 11 Mar 2006 10:36:35 -0800 (PST) Message-ID: <5bdc1c8b0603111036g3524fc67r1c3a777ab032359b@mail.gmail.com> Date: Sat, 11 Mar 2006 10:36:35 -0800 From: "Mark Knecht" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] moving /usr In-Reply-To: <5bdc1c8b0603101137v7bf4215exce9d5debe767f027@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <20060310154329.1964.qmail@web25503.mail.ukl.yahoo.com> <5bdc1c8b0603100943r6639e727nbf68b0e1760bc140@mail.gmail.com> <200603101949.52686.sp_rm_it@yahoo.it> <5bdc1c8b0603101137v7bf4215exce9d5debe767f027@mail.gmail.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k2BIaZmF021836 X-Archives-Salt: bb7e23c5-b043-4348-9a26-51a1d84f722f X-Archives-Hash: b4df302842fbd60e625bd2ecf4baaa21 On 3/10/06, Mark Knecht wrote: > On 3/10/06, Sergio Polini wrote: > > Mark Knecht: > > > Well...I did my best, but it wasn't good enough. The machine no > > > longer boots to any level that a user could use. I'm told there are > > > lots of messages on the screen about being unable to find files. > > > (/usr/bin, /usr/sbin sort of things...) > > > > That happened to me too ;-) > > But the reason was quickly clear: I had deleted /usr instead > > of /usr/*! > > Remember: > > OK, so far I cannot get into the machine so I don't know how to double > check that but I'm pretty sure I didn't do this. > > The issue in and around these instructions, for me was that: > > 1) I'm in a completely out of disk space situation > 2) I'm trying to move /usr > 3) /usr includes /usr/bin and /usr/sbin which is where all commands > are to basically use the machine and make the changes. (mv, cp, ls and > all the normal stuff.) > > so I > > 1) Copied everything to the new partition > 2) Removed everything from the original /usr except /usr/bin and > /usr/lib. The only copy of /usr/sbin is on the new partition. /usr/lib > had to remain for me to use vim to edit fstab. > 3) The new partition was labeled using e2label > 4) fstab was edited to mount the new partition at the existing /usr > direcotry which still contained /usr/bin and /usr/lib > 5) As a backup, since I had removed most of /usr to create space I now > made a new directory /usrBACKUP and placed a copy of what was left in > /usr there so I could get to it if I needed to. > 6) Unmounted /mnt/usr_temp and rebooted. > > The messages (I'm told over the phone by a 78 year old man who is hard > of hearing) are in and around not being able to find /usr/sbin. I > don't know what they really say as we didn't try to get that detailed. > > He has decided to ship the machine to me via FedEx and I'll have to > fix it here when it arrives. He didn't want to mess with Knoppix or > the Gentoo install disk as he felt it was way beyond what he could do. > > Again, thanks for the ideas below, but since the machine is 350 miles > away it's hard to do the experiements below. I'll do them when it > arrives next week. > > Cheers, > Mark > > > > > > 9. delete the old /usr directory to free the unused space: > > > cd /mnt/something/usr > > > rm -rf * > > > NB: do not delete /usr itself, just its contents, as /usr is the > > > mount point for the new partition; > > > > Let us suppose that your /etc/fstab looks like: > > > > /dev/hda1 /boot > > /dev/hda2 / > > /dev/hda3 /usr > > > > The first and simplest try: reboot from a livecd, then: > > > > mount /dev/hda2 /mnt/something > > ls /mnt/something/usr > > > > If /mnt/something/usr doesn't exist, then: > > > > mkdir /mnt/something/usr > > reboot > > > > You could check that the new /usr partition is there, before > > rebooting: > > > > mount /dev/hda3 /mnt/something_else > > ls /mnt/something_else > > > > The old /usr contents should be there. Why not? > > So, if your reboot doesn't work, reboot again from a livecd and > > check /etc/fstab. > > > > Let me/us know! > > > > Sergio Hi Sergio, OK, the machine arrived here about an hour ago overnight express. It's now up and running. The mistake was mine, but I think it wasn't something that was very clearly warned about in the online docs, or at least I don't remember being warned about this. I created a new partition and copied all the information over. I labeled the partition USR using e2label and then carefully copied an existing line from elsewhere in the fstab file and changed the specifics to mount the partition, or so I thought. When the machine arrived here and I booted the new partition was not mounted, but I was able to immediately mount it by hand. Inspecting the fstab file quickly revealed that the line I had copied from elsewhere in the fstab file had the options 'noauto,noatime' sort of line. I removed noauto, rebooted, and the machine appears to be working fine. Since the machine is here I'll do a thorough set of updates and hopefully get it shipped out again on Monday. Live and learn! Thanks for your help! Thanks, Mark -- gentoo-user@gentoo.org mailing list