<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks ... it really helped, but for copying file 
system i used the following:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>cd /home</FONT></DIV>
<DIV><FONT face=Arial size=2>pax -pe -rvw . /mnt/hd2</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and after step 5 /home directory needs to be 
created, i was thinking that it get created automatically</FONT></DIV>
<DIV><FONT face=Arial size=2>mkdir /home</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=sendtoimtiaz@yahoo.com href="mailto:sendtoimtiaz@yahoo.com">IAK 
  Tanoli</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=redhat-list@redhat.com 
  href="mailto:redhat-list@redhat.com">General Red Hat Linux discussion list</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, April 11, 2004 10:14 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Additional HardDisk</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT 
  face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
  <DIV>Step 1:</DIV>
  <DIV>Create partitions using fdisk </DIV>
  <DIV>e.g fdisk /dev/hdb (for primary slave)</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV>Step 2:</DIV>
  <DIV>Create file system using mkfs.ext3 <BR>e.g mkfs.ext /dev/hdb1</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV>Step 3:</DIV>
  <DIV>mount partitions </DIV>
  <DIV># mkdir /mnt/hd2</DIV>
  <DIV># mkdir /mnt/hd3</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV># mount /dev/hdb1 /mnt/hd2</DIV>
  <DIV># mount /dev/hdb2 /mnt/hd3</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV>Step 4:</DIV>
  <DIV>copy dir. to that paritions</DIV>
  <DIV># cp -rf /home /mnt/hd2</DIV>
  <DIV># cp -rf /var /mnt/hd3</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV>Step 5:</DIV>
  <DIV>rename old directories</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV># mv -f /home /homeold</DIV>
  <DIV># mv -f /var /varold</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV>Step 6:</DIV>
  <DIV>Add to fstab</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV># vi /etc/fstab</DIV>
  <DIV>/dev/hdb1    /home auto defaults 0 
  0<BR>/dev/hdb2    /var auto defaults 0 0<BR></DIV>
  <DIV>Step 7:</DIV>
  <DIV>Reboot system and make sure that every this is ok and all data in /home 
  and /var is there.</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV>Step 8:</DIV>
  <DIV>After surity of step 7 delete /homeold and /varold</DIV>
  <DIV># rm -rf /homeold</DIV>
  <DIV># rm -rf /varold</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV>regards</DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <P><B><I></I></B> </P>
  <P><STRONG><EM></EM></STRONG> </P>
  <DIV>
  <DIV><B><I>Bilal Dar <bdar@pbad.sbg.com.sa></I></B> wrote:</DIV></DIV>
  <BLOCKQUOTE class=replbq 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
    <META content="MSHTML 6.00.2800.1400" name=GENERATOR>
    <STYLE></STYLE>

    <DIV><FONT face=Arial size=2>Dear All,</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT> </DIV>
    <DIV><FONT face=Arial size=2>My harddrive got full, so I added another one. 
    Now I do not know how to expand the older filesystems, I just made 
    partitions using filesystem. How can I format it using ext3 and move /home 
    /var to the new harddisk.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT> </DIV>
    <DIV><FONT face=Arial size=2>Thanks.</FONT></DIV>-- <BR>redhat-list mailing 
    list<BR>unsubscribe 
    mailto:redhat-list-request@redhat.com?subject=unsubscribe<BR>https://www.redhat.com/mailman/listinfo/redhat-list<BR></BLOCKQUOTE><BR><BR>--<BR><BR>________________<BR>Imtiaz 
  Ahmed Khan<BR>Sr. System Consultant<BR>ANTS Consultiing<BR><BR><BR>Org: ANTS 
  Consulting<BR>URL: http://ants.com.pk/<BR>Eml: sendtoimtiaz@yahoo.com<BR>Mob: 
  +92300-2128278 <BR>___________________________________
  <P>
  <HR SIZE=1>
  <FONT face=arial size=-1>Do you Yahoo!?<BR>Yahoo! Tax Center - <A 
  href="http://taxes.yahoo.com/filing.html">File online by April 15th</A>
  <P>
  <HR>

  <P></P>-- <BR>redhat-list mailing list<BR>unsubscribe 
  mailto:redhat-list-request@redhat.com?subject=unsubscribe<BR>https://www.redhat.com/mailman/listinfo/redhat-list<BR></BLOCKQUOTE></FONT></BODY></HTML>