Paul Puri dixit: > >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< > > On 3/9/99, 6:32:06 PM, Shao Zhang <[EMAIL PROTECTED]> wrote regarding Re: > Maximal Mount Count: > > > Paul Puri wrote: > > > > What is the command that I use to mv /usr to /dev/hda2? > > > > > > I tried 'mv /usr /hda2/usr', but that gave me the error, 'mv: cannot > > > move '/usr' across filesystems: Not a regular file. > > > > > > Thank you... > > > > > > did you mount your /dev/hda2 on /hda2?? If you did, you may try cp > -R after that, > > you can then delete the /usr > > I typed, 'cp -R /usr /hda2/usr > It is in the process of copying
I also passed the -a option to the `cp' command, it preserves files and directory permissions, quite important I believe. > When it done, what can I do to make /hda2/usr, just plain /usr? add the following line to /etc/fstab: # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/hda2 /usr ext2 defaults 0 2 Make sure you just copied the contents inside /usr to the new location, not /usr as well. Then, you should have an empty /usr directory. When you reboot, /dev/hda2 will be mounted in /usr. Last time I did this, I copied /usr as well, and I ended up having /usr/usr... > > > > /usr > > > > /home > > > > /var /usr/local /usr/doc ... you might also make a new directory called /opt, in a separate partition, and install there new *big* programs instead of /usr/local Regards, Horacio.