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

Hard-disk Change



Hi,
I have two harddisks on which (together) a linux system is installed (/,
/var and /home on one, /usr on the other).
These disks are quite old and are malfunctioning frequently.
I have a new harddisk with a capacity greater than the two together.
I wish to move all the system from those disks to the new disk, maintaining
seperate partitions for / /var /home and /usr like on the old disks.
Here comes the question:
When  moving all files, is using tar okay?
(cd /usr; tar cf - . | tar xCf /new/usr -), or should I use something else?
I also plan to copy the root partition this way, so what I really need to
know is if tar can correctly copy the files in /dev and other special files
maintaining all attributes and ownerships.


Regards,
Yannai.

----------------------------------------------------------------------------
Yannai A. Gonczarowski    System Administrator    yannaigo@leyada.jlm.k12.il
The Hebrew University High School    http://www.leyada.jlm.k12.il/~yannaigo/

Si vis pacem, para bellum
----------------------------------------------------------------------------