Hi Siju, On Tue, May 24, 2005 at 06:41:17PM +0530, Siju George wrote: > Thankyou so much Ionut for the continuing help :-)
You're welcome :-) Playing around with partition tables is one of my
favourites.
> # /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
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 61 489951 83 Linux
> /dev/hda2 62 365 2441880 82 Linux swap
> /dev/hda3 366 3404 24410767+ 83 Linux
> /dev/hda4 3405 4870 11775645 5 Extended
> /dev/hda5 3405 3647 1951866 83 Linux
> /dev/hda6 3648 3890 1951866 83 Linux
> /dev/hda7 3891 3914 192748+ 83 Linux
> /dev/hda8 3915 4870 7679038+ 83 Linux
I was hoping for an unsorted partition table, but unfortunately you
cannot glue /var and /var/log together because they're too far away. And
moving /home is quite risky (I think it's possible with dd, but I
haven't tried it yet)
Now: is this a server? you have a huuuuge /var! I would just move
/var/log to /var and glue /dev/hda7 to /dev/hda6 if this is a server how
it seems. Or, move /var/log and /tmp to /var (don't forget ln -s
/var/tmp /tmp) and then glue /dev/hda6 and /dev/hda7 to /dev/hda5
>
> meanwhile I tried your steps on a similar but got stuck here
>
> # umount log
> umount: /var/log: device is busy
hmm, this shouldn't be the case in single user mode, but anyway, try
init 1
to make sure. then:
ps aux
and see what processes are running. try
kill -15 PID
If they're still there, than trash them :-)
kill -9 PID
you could also try
lsof | grep /var/log
to see who's writing to /var/log
Hope it helps.
Ionut
--
***************
* 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

