Re: moving dir /var from one drive to another

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

 



On Wed, 2004-04-07 at 08:41, James D. Parra wrote:
> Hello,
> 
> We have a drive that is slowly dieing and we need to move the /var directory
> from this drive to the master drive. How can we do this without loosing data
> or trashing the OS after a reboot?
> 
> Thank you in advance,
> 
> James 

I've had to do this recently on an RH9 box.

Install the new drive. Boot into rescue mode from the install CD and
mount as per instructed. Format the new drive as however you desire.
Mount the new drive somewhere - probably under /mnt temporarily. Copy
all the data in /var to the new drive. Remove the old drive and once
again reboot in rescue mode as before. Edit the /etc/fstab to reflect
the new mount as /var.
 
stephen kuhn - owner
==============================
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
------------------------------------------------------------------
  * This message was composed on a 100% Microsoft free computer *
  We expressly refuse to utilise Microsoft DRM encoded documents
------------------------------------------------------------------
One good thing about music, Well, it helps you feel no pain. So hit me
with music; Hit me with music now. -- Bob Marley, "Trenchtown Rock"


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux