RE: moving some directories to the New partition but still preservingthe links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Not sure about hardlinks, but symlinks and file permissions, etc would
all
be preserved using tar or cpio to do the copy.  Rsync is another option
as
well.

To copy using tar:
cd /src/dir; tar cf - . | ( cd /dest/dir && tar xvf - )

To copy using cpio:
cd /src/dir; find . | cpio -pvumd /dest/dir

To copy using rsync:
rsync -avu -S /src/dir /dest/dir 

-Steve

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of bj
Sent: Tuesday, February 22, 2005 8:27 AM
To: redhat-list@xxxxxxxxxx
Subject: moving some directories to the New partition but still
preservingthe links

Hi !

I have Red Hat 8 on a intel P 4 machine with 512 MB memory .

Thanks to all , I was able to partition my 60 GB hard drive creating
extended drives .

Now I want to move some of directories under my root to my extended
partition that has already been formatted with mkfs.ext3.

I have got the procedure to move  /tmp and /var to their own shared
partition .


I want to move /usr , /applications , /backup  , /home , misc , /proc ,
/tmp
.

I want to mount /dev/hda5 as /usr & /dev/hda6 as /home or what ever most
suitable .

But my greatest worry is how to make sure that the previously installed
applications work after the move .

How to preserve the symbolic & hard links as files are moved across
different partitions.

Please advice if it is possible to do a successful move of some of the
directories under / and still preserve the links and make the
applications
work.


Thanks in advance ,

cheers,
bj



My root directory structure is as ffs :-


applications
backup
bin
boot
dev
etc
home
initrd
lib
lost+found
misc
mnt
opt
proc
root
sbin
tftpboot
tmp
usr
var


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux