On Thu, 31 Jan 2002, chandrasekar wrote: > Anyway I recently got a new hard disk and I want to move my /usr, a > non empty directory to the new hard disk.Any suggestions please on how
First create a partition on your new hard disk, and mount this somewhere that is not in the same tree as /usr. /mnt/newdisk should be good. Then, cp -R /usr/* /mnt/newdisk Then, just remount /mnt/newdisk onto /usr (no need to delete the files yet). Work for a while, if everything is fine, then unmount /usr, delete all files under it, and remount. Don't forget the umount step. > i) when the non empty directory is not a mount point any directory - even non empty ones can be mount points. you just have to mount something there. > ii) when it is already a mount point When you mount a partition on a directory, the previous contents of the directory are hidden and not accessible until the partition is unmounted. -- linux: because a PC is a terrible thing to waste ([EMAIL PROTECTED] put this on Tshirts in '93) _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
