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.60) (envelope-from <gentoo-user+bounces-54882-garchives=archives.gentoo.org@gentoo.org>) id 1GkosG-00061H-FU for garchives@archives.gentoo.org; Thu, 16 Nov 2006 21:34:20 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAGLWBjv007033; Thu, 16 Nov 2006 21:32:11 GMT Received: from mail.askja.de (mail.askja.de [83.137.103.136]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAGLU4Y9001721 for <gentoo-user@lists.gentoo.org>; Thu, 16 Nov 2006 21:30:05 GMT Received: from xdsl-213-168-119-106.netcologne.de ([213.168.119.106] helo=zone.wonkology.org) by mail.askja.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.60) (envelope-from <wonko@wonkology.org>) id 1Gkoo7-0001Dh-AJ for gentoo-user@lists.gentoo.org; Thu, 16 Nov 2006 22:30:03 +0100 Received: from weird.wonkology.org (weird.wonkology.org [::ffff:192.168.1.4]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by zone.wonkology.org with esmtp; Thu, 16 Nov 2006 22:30:05 +0100 id 000303D7.455CD85D.00006DAA From: Alex Schuster <wonko@wonkology.org> Organization: Wonkology To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Resize / Date: Thu, 16 Nov 2006 22:30:03 +0100 User-Agent: KMail/1.9.5 References: <794831050611160955s2cd593f0pb2c1fdb8b6057bcc@mail.gmail.com> <455CB20A.2070403@yahoo.fr> <794831050611161253p19322807k99ef6d70afbb3de9@mail.gmail.com> In-Reply-To: <794831050611161253p19322807k99ef6d70afbb3de9@mail.gmail.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611162230.03967.wonko@wonkology.org> X-Archives-Salt: 2e469b98-53c6-49df-a91d-bc4fa553f572 X-Archives-Hash: fe1b832e895dd9a46cd602947ab205d9 jakommo writes: > On 11/16/06, geistteufel <geistteufel@yahoo.fr> wrote: > > If you have opt in your / I suggest to move it and doing a symlink > > > > like cd /; mv opt usr; ln -s usr/opt . > For now I think maybe its better to make some new partitions and copy the > stuff to them by using a live cd and then adjust fstab and/or make > symlinks. the problem is the maschine is a server and I dont want it to > be down for a long time, its only used for cups at the moment, but I > think its more secure to quit the idea of resizing and do it the mount > and symlink way. another benefit of this way is I can prepare everything > so I only need to reboot with a live cd to copy the files and thats it. I don't think there is a neeed to boot from CD for that. Just copy /usr (or whatever directory you like) to its new destination, rename /usr and create the symlink instantly after that: cp -pr /usr /newdrive/ mv /usr /usr.old && /usr.old/bin/ln -s /newdrive/usr / This makes /usr unavailable for a fraction of seconds only. Programs currently using files in /usr should not be affected, when the files are still open it should not matter if they are renamed as long as they stay on the same partition. Alex -- gentoo-user@gentoo.org mailing list