lkml.org 
[lkml]   [1996]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Moving Linux
Date
> I'd like to move my existing linux system to another partition -- I've got a 
> disk going bad.
>
> I've done "cp -rpPd" on all directoried except /proc, /dev, and /home/ftp/dev
>
> What should I do for these directories? No "cp" options seem feasable.

For similar purposes I use tar.
It seems you should run tar to create archive from /
and extract on destination file system with preserving
permissions.

/proc should be skipped.
dev entryes will be created by tar correctly.

You may say from / being root as following:

tar cf - . --exclude proc --exclude mnt | tar xpf - -C mnt

where mnt is a directory on which your new drive is mounted.

Andrey V.
Savochkin


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.067 / U:0.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site