<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Bilal Dar wrote:
<blockquote cite="mid002601c41fa6$dea983e0$730410ac@ITHANYANTVRUS"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2800.1400" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">Dear all,</font></div>
  <div> </div>
  <div><font face="Arial" size="2">I am having this problem, my
harddrive got full so i added another one to my machine. Now i don't
know how to move my /home /var to the new drive. Can someone guide me,
i just made the partitions using fdisk. </font></div>
  <div> </div>
  <div><font face="Arial" size="2">Thanks.</font></div>
</blockquote>
What I do normally is:<br>
<small><tt><br>
# mkdir <newdrive>/var<br>
# mv /home/var /home/var.old<br>
# ln -s <newdrive>/var/home/var<br>
# cd /home/var<br>
# find . | cpio -dump <newdrive>/var<br>
// you could also use tar nowadays for it<br>
# reboot    // because of open file descriptors of /home/var<br>
// then<br>
// make a spare backup of /home/var.old, one never knows<br>
# cd /home<br>
# rm -rf var.old<br>
// it should work now</tt></small><br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Vink
</pre>
</body>
</html>