Hi Sasa, 

 (My mail got garbled, probably due to a single dot on one of the lines, so 
I am resending it. Funny bug in the mail list software that I encountered 
before. :)

> Now I am experiencing some 
> problems with my hard disk so what I want to do is to copy entire hard disk
> to a new one.

 Just partition the new disk with fdisk and copy all partitions to the new 
disk. You probably want to preserve permissions, so use the -a flag like in 
cp -a <source>/* <dest>
 .  

 Also, if you copy the current system to a new location you want to ommit 
certain directories like /mnt and /proc and probably /tmp and /var/tmp. If 
you ommit /tmp and /var/tmp remember to create them with the correct 
permissions (chmod 1777). 

 If you change the partition layout of the new disk you will need to adjust 
the /etc/fstab  to reflect the changes. 

 Last thing to take care of is that before you swap the disks you either 
need to setup the bootloader (grub-install or lilo) or create a bootdisk 
(mkbootdisk). Use "man" to get the manual pages for the various commands. 

Bye, Leonard. 


--
How clean is a war when you shoot around nukelar waste?
Stop the use of depleted uranium ammo!
End all weapons of mass destruction.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to