<DIV>Step 1:</DIV>
<DIV>Create partitions using fdisk </DIV>
<DIV>e.g fdisk /dev/hdb (for primary slave)</DIV>
<DIV> </DIV>
<DIV>Step 2:</DIV>
<DIV>Create file system using mkfs.ext3 <BR>e.g mkfs.ext /dev/hdb1</DIV>
<DIV> </DIV>
<DIV>Step 3:</DIV>
<DIV>mount partitions </DIV>
<DIV># mkdir /mnt/hd2</DIV>
<DIV># mkdir /mnt/hd3</DIV>
<DIV> </DIV>
<DIV># mount /dev/hdb1 /mnt/hd2</DIV>
<DIV># mount /dev/hdb2 /mnt/hd3</DIV>
<DIV> </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> </DIV>
<DIV>Step 5:</DIV>
<DIV>rename old directories</DIV>
<DIV> </DIV>
<DIV># mv -f /home /homeold</DIV>
<DIV># mv -f /var /varold</DIV>
<DIV> </DIV>
<DIV>Step 6:</DIV>
<DIV>Add to fstab</DIV>
<DIV> </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> </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> </DIV>
<DIV> </DIV>
<DIV>regards</DIV>
<DIV> </DIV>
<DIV> </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>