Please send fdisk -l /dev/hda. Judging by your /etc/fstab, you can't do anything because you have /home and /tmp between /var and /var/log. The best you cand do is to move /tmp and /var/log to /var and extend /home :-)
I will describe the next steps anyway: First: ext3 must resized offline. Second, if you modify the partition table while running you have to reboot anyway, because the kernel cannot reload the partition table while the disk is being used. You can combine these two into 2 steps: cp -r /var/log /home/log.bak adjust partition table. delete the /var/log line in /etc/fstab reboot into single user mode What happens: after reboot, /dev/hda3 will be larger, but the filesystem has not changed yet. Being in single user mode, no program is running at all so you can just umount /var ext2resize /dev/hda3 mount /var done now you just need to copy log mount -o remount,rw /home rmdir /var/log mv /home/log.bak /var/log reboot Ionut On Tue, May 24, 2005 at 05:42:34PM +0530, Siju George wrote: > Thankyou so much Ionut for the detailed steps :-) > > On 5/24/05, Ionut Georgescu <[EMAIL PROTECTED]> wrote: > > cd /var > > cp -r log log.bak # or cp -r log /home/log.bak is /var is too small > > umount log > > rmdir log > > mv log.bak log > > > > I understood the steps but I have a doubt. > > What will hape When I restart the system???? > > Should I remove any thing from fstab???? before I restart??? > > ---------------------------------------------------------- > > # /etc/fstab: static file system information. > # > # <file system> <mount point> <type> <options> <dump> <pass> > /dev/hda1 / ext3 errors=remount-ro 0 1 > /dev/hda2 none swap sw 0 0 > proc /proc proc defaults 0 0 > /dev/fd0 /floppy auto user,noauto 0 0 > /dev/cdrom /cdrom iso9660 ro,user,noauto 0 0 > /dev/hda3 /var ext3 defaults 0 2 > /dev/hda5 /home ext3 defaults 0 2 > /dev/hda6 /tmp ext3 defaults 0 2 > /dev/hda7 /var/log ext3 defaults 0 > 2 > /dev/hda8 /usr ext3 defaults 0 2 > /etc/fstab (END) > > ---------------------------------- > > the line > > /dev/hda7 /var/log ext3 defaults 0 > > is my suspect :-) > > Is it O.K to remove that line??? or should I leave it there??? is that > enough? or should i be removing somehing else also some where else?? > > Thankyou so much once again :-)) > > kind regards > > Siju > > > -- *************** * Ionuţ Georgescu * Max-Planck-Institut für Physik komplexer Systeme * Noethnitzer Str. 38, D-01187 Dresden * Phone: +49 (351) 871-2209 * Fax: +49 (351) 871-1999
signature.asc
Description: Digital signature