breaking a mount point and setting up a new one

George Toft plug-discuss@lists.plug.phoenix.az.us
Sat, 07 Dec 2002 05:28:38 -0500


Scott H wrote:
> 
> I have a RH 7.3 box with a portion of the
> partition table resembling this:
> 
> /dev/ida/c0d0p2 mounted at /
> /dev/ida/c0d0p6 mounted at /var/spool
> 
> I want to reclaim the /var/spool partition for
> other uses.  So I copy the contents of it to
> /var/spool2 and edit /etc/fstab to remove the
> mount of  /var/spool at boot time.  Now how do I
> get spool2 renamed to spool so when it reboots
> spool will be on  partition c0c0p2, under / , and
> c0d0p6 will be unused, so I can work with it?  (I
> can't umount /var/spool, the device is always "in
> use".  At least I can't find what is holding on
> to it.  I shut down mail programs and anacron and
> I'm not in the directory...
> 
> Thanks for any help!
> 
> Scott
> 
> .


Use the rescue disk and mount your filesystems under /mnt.  This uses a
ramdisk so your hard drive is completely untouched.  I migrated an
antire disk this way - /usr, /var, /boot, and /.

George

-- 
This e-mail message certified virus-free
as it was generated on a Linux system.

http://www.georgetoft.com/linux/index.html