On 3/5/06, kghosh <[EMAIL PROTECTED]> wrote:
> I was trying to make a boot-cd of my debian installation, using
> 'bootcdwrite'.
> I get a complain that /var/spool/bootcd is required to be greater than
> 665600 bytes, at present it is 4779680 bytes.
> How to increase the size of /var ?

I cannot provide a complete answer without knowing the exact state of
your system. Do you have /var on a separate partition? Is /var on the
same partition as your /?

Anyway, assuming you have a spare partition (say, /dev/hda4) that you
would like to make into your /var, here is what you need to do (change
as per your tastes):

Boot into single user mode or rescue mode. Use fdisk to create the
partition /dev/hda4 (if it does not exist). Write the data to disk.

Create the filesystem (i.e. format) on /dev/hda4:
# mke2fs /dev/hda4

Mount /dev/hda4 somewhere:
# mkdir /newvar
# mount /dev/hda4 /newvar

Copy the files (preserving ownerships and permissions) from old var to new var:
# (cd /var && tar zcvfp .) | (cd /newvar && tar zxvfp)

Go grab a coffee.

Rename /var to something else
# mv /var /oldvar

Create a new /var
# mkdir /var

Edit /etc/fstab to have a line like so:
/dev/hda4       /var               ext3    defaults    0       1

Stir. Reboot. Et Voila!

Thaths
--
"Bart! With $10,000 we'd be millionaires! We could buy all kinds of
       useful things... like love." -- Homer J. Simpson


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to