public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Resize /
Date: Thu, 16 Nov 2006 22:30:03 +0100	[thread overview]
Message-ID: <200611162230.03967.wonko@wonkology.org> (raw)
In-Reply-To: <794831050611161253p19322807k99ef6d70afbb3de9@mail.gmail.com>

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



  reply	other threads:[~2006-11-16 21:34 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 17:55 [gentoo-user] Resize / jakommo
2006-11-16 18:02 ` Ryan Crisman
2006-11-16 18:03 ` Richard Fish
2006-11-16 18:10 ` Neil Bothwick
2006-11-16 18:28 ` Alan McKinnon
2006-11-16 18:46 ` geistteufel
2006-11-16 20:53   ` jakommo
2006-11-16 21:30     ` Alex Schuster [this message]
2006-11-16 21:56       ` jakommo
2006-11-17  7:01         ` Dirk Heinrichs
2006-11-17 19:43           ` [gentoo-user] " Alexander Skwar
2006-11-17 22:30             ` Dale
2006-11-18 17:54               ` [gentoo-user] " Alexander Skwar
2006-11-19  1:46                 ` Dale
2006-11-19  9:54                   ` [gentoo-user] LVM (was: Resize /) Alexander Skwar
2006-11-19 10:16                     ` [gentoo-user] LVM Dale
2006-11-19 17:53                       ` [gentoo-user] LVM Alexander Skwar
2006-11-20  6:54                     ` [gentoo-user] LVM (was: Resize /) Dirk Heinrichs
2006-11-20  7:47               ` [gentoo-user] Re: Resize / Dirk Heinrichs
2006-11-21  5:55                 ` Dale
2006-11-21  6:44                   ` geistteufel
2006-11-21  7:20                   ` Dirk Heinrichs
2006-11-21  8:38                     ` Dale
2006-11-21  9:01                       ` Dirk Heinrichs
2006-11-21  9:56                         ` Dirk Heinrichs
2006-11-21 12:36                         ` Dale
2006-11-21 14:33                           ` Dirk Heinrichs
2006-11-21 19:00                             ` Dale
2006-11-22  1:37                               ` Dale
2006-11-23  0:26                                 ` Dale
2006-11-22  7:53                               ` Dirk Heinrichs
2006-11-21  9:34                       ` Geistteufel
2006-11-21 10:14                         ` Dirk Heinrichs
2006-11-21 10:47                           ` Geistteufel
2006-11-23 11:38                     ` [gentoo-user] EVMS (was: Resize /) Alexander Skwar
2006-11-23 11:55                       ` [gentoo-user] EVMS Dale
2006-11-23 13:20                       ` [gentoo-user] EVMS (was: Resize /) Dirk Heinrichs
2007-01-03  4:01                         ` [gentoo-user] EVMS Dale
2006-11-17  6:53 ` [gentoo-user] Re: Resize / Alexander Skwar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200611162230.03967.wonko@wonkology.org \
    --to=wonko@wonkology.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox