From: Bastien Nocera <hadess@hadess.net>
To: Tom Rini <trini@kernel.crashing.org>
Cc: "Kevin B. Hendricks" <khendricks@ivey.uwo.ca>,
yellowdog-devel@lists.yellowdoglinux.com,
"linuxppc-dev@lists.linuxppc.org"
<linuxppc-dev@lists.linuxppc.org>
Subject: Re: Final question: best wasy to move /, /usr, /home, etc?
Date: 18 Feb 2002 16:20:18 +0000 [thread overview]
Message-ID: <1014049219.24786.12.camel@dozo> (raw)
In-Reply-To: <20020218161603.GB25078@opus.bloom.county>
On Mon, 2002-02-18 at 16:16, Tom Rini wrote:
> On Mon, Feb 18, 2002 at 02:36:01AM +0000, Bastien Nocera wrote:
> >
> > On Mon, 2002-02-18 at 02:17, Kevin B. Hendricks wrote:
> > >
> > > I am finally at the point I want to give up my old external scsi hard
> > > drives. Unfrotunately, my current /, /usr, /home, etc all exist on scsi
> > > drives.
> > >
> > > I recently purchased a 60 gig hard drive (ide) and have now installed it.
> > >
> > > What is the best way to move all of the files and directories, and special
> > > device files, and etc from the scsi drive to new partitions on the IDE
> > > drives?
> > >
> > > Can I simply use a recursive "cp" with -a? Should I use "tar"? What
> > > about "parted" and its partition copies?
> > >
> > > Or is there some way I can run an linux distribution installer from within
> > > linux and make it install to the ide drive instead of the scsi?
> > >
> > > Or is there some way to make "rpm" nicely redirect where it installs
> > > things?
> > >
> > >
> > > In fact, with som much space, I would love to have Debian, SuSE, and
> > > YellowDog distribution sets so I can run and test OpenOffice.org against
> > > those distributions easily (shared build drives) with different
> > > distribution installations.
> > >
> > > This is my last step to get a working system so any hints on the best way
> > > to move so much data (and special device files) from one partition to
> > > another preserving the owner,group,word, permissions, file ownership,
> > > setuid root bits, etc. would be greatly appreciated.
> >
> > I've done this several times, to install xfs support on live machines
> > (ie. on my desktop and laptop that were already full of crap junk and
> > other kind of files).
> >
> > rsync -av --exclude /proc --exclude /home/ / /newroot/
> >
> > Exclude every mount point from the rsync and do this for every
> > partition. Best is to do this from a separate root, or a rescue/boot
> > disk, in which case rsync -av /oldroot/ /newroot/ is easy enough without
> > having to care.
> >
>
> I _think:
> rsync -av -x / /newroot/
> will get just the / partition (-x means one fs, cp and a few others take
> this arg).
the man page has it indeed. The good thing is that you can run it
multiple times, or stop it in the middle and restart where you left off,
which you can't with the other solutions.
Cheers
--
/Bastien Nocera
http://hadess.net
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-02-18 16:20 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 1:08 new G4 dual 1 gig is here - how to install? Kevin B. Hendricks
2002-02-13 1:20 ` Tony 'Nicoya' Mantler
2002-02-13 1:55 ` Kevin B. Hendricks
2002-02-13 8:00 ` Olaf Hering
2002-02-13 13:49 ` Kevin B. Hendricks
2002-02-14 2:29 ` Kevin B. Hendricks
2002-02-14 3:53 ` Ani Joshi
2002-02-15 11:08 ` Kevin B. Hendricks
2002-02-16 9:30 ` Kevin B. Hendricks
2002-02-16 14:44 ` SMP kernel configuration question? Kevin B. Hendricks
2002-02-16 19:26 ` Benjamin Herrenschmidt
2002-02-16 15:39 ` SMP kernel seems to work fine Kevin B. Hendricks
2002-02-16 19:24 ` new G4 dual 1 gig is here - how to install? Benjamin Herrenschmidt
2002-02-14 13:53 ` Kevin B. Hendricks
2002-02-14 18:08 ` benh
2002-02-14 19:31 ` Christopher C. Chimelis
2002-02-13 2:25 ` Tom Rini
2002-02-13 5:37 ` Olaf Hering
2002-02-16 2:24 ` Kevin B. Hendricks
2002-02-16 19:19 ` Benjamin Herrenschmidt
2002-02-17 18:22 ` radeonfb.c flakiness Kevin B. Hendricks
2002-02-17 21:51 ` Benjamin Herrenschmidt
2002-02-18 20:55 ` Kevin B. Hendricks
2002-02-19 0:04 ` Benjamin Herrenschmidt
2002-02-16 23:59 ` question on best way to install other ide drives? Kevin B. Hendricks
2002-02-17 0:11 ` Tom Rini
2002-02-17 20:16 ` Timothy A. Seufert
2002-02-17 20:38 ` question: "disabling IRQ 54 defensively?" Kevin B. Hendricks
2002-02-17 21:53 ` Benjamin Herrenschmidt
2002-02-18 2:17 ` Final question: best wasy to move /, /usr, /home, etc? Kevin B. Hendricks
2002-02-18 2:36 ` Bastien Nocera
2002-02-18 16:16 ` Tom Rini
2002-02-18 16:20 ` Bastien Nocera [this message]
2002-02-18 3:12 ` Jeramy B. Smith
2002-02-18 8:42 ` Giuliano Pochini
2002-02-18 14:52 ` Derrik Pates
2002-02-18 15:05 ` Gabriel Paubert
2002-02-18 23:18 ` Michael Heironimus
2002-02-18 17:31 ` David A. Gatwood
2002-02-17 21:52 ` question on best way to install other ide drives? Benjamin Herrenschmidt
2002-02-17 23:19 ` Tom Rini
2002-02-16 2:40 ` Weird bug problems with timing of NIC driver loading? Kevin B. Hendricks
2002-02-16 19:22 ` Benjamin Herrenschmidt
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=1014049219.24786.12.camel@dozo \
--to=hadess@hadess.net \
--cc=khendricks@ivey.uwo.ca \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=trini@kernel.crashing.org \
--cc=yellowdog-devel@lists.yellowdoglinux.com \
/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;
as well as URLs for NNTP newsgroup(s).