Hi There, the O/P of df on my PC is as follows: - Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 349989 162741 169179 50% / /dev/hda5 980308 896632 33880 97% /usr /dev/hda8 666480 414096 252384 63% /mnt/d-dos Is it possible for me to use some of the disk space of / to the /usr without affecting data on either one? BTW, If we need to add some extra space to any partition, without affecting the data, how do we do it? Thnx in advance... Bye, SP
Sometime Today, Kompalli SuryaPrakash assembled some asciibets to say:
Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 349989 162741 169179 50% / /dev/hda5 980308 896632 33880 97% /usr /dev/hda8 666480 414096 252384 63% /mnt/d-dos Is it possible for me to use some of the disk space of / to the /usr without affecting data on either one? BTW, If we need to add some extra space to any partition, without affecting the data, how do we do it? Thnx in advance...
Create a directory called /local in / mv /usr/local/* /local rmdir /usr/local ln -s /local /usr/local
Or do something similar.
Hi,
--- Philip S Tellis philip.tellis@iname.com wrote:
Sometime Today, Kompalli SuryaPrakash assembled some asciibets to say:
Filesystem 1k-blocks Used Available
Use% Mounted on
/dev/hda7 349989 162741 169179
50% /
/dev/hda5 980308 896632 33880
97% /usr
/dev/hda8 666480 414096 252384
63% /mnt/d-dos
Is it possible for me to use some of the disk
space of / to the
/usr without affecting data on either one? BTW, If we need to add some extra space to any
partition,
without affecting the data, how do we do it? Thnx
in advance...
Create a directory called /local in / mv /usr/local/* /local rmdir /usr/local ln -s /local /usr/local
Or do something similar.
There is a program available called "ext2resize" which may be available on your system, else you can get it and friends from http://ext2resize.sourceforge.net/.
I quote from the description of the program ( a cut and paste from the website):
<snip>
GNU ext2resize is a package which allows resizing ext2 filesystems (both shrinking and growing). The ext2resize tool is for resizing unmounted filesystems, and ext2online is for growing a mounted filesystem (it needs a kernel patch to work, however).
The ext2resize tools are included in quite a few distributions, including Red Hat 6.1 (on the powertools CD) and the Debian "Woody" release.
Please note that like any program that messes with your hard disk, this program has the possibility to totally destroy your disk, or even turn it into a sperm whale. There is NO WARRANTY for this program! See the GPL for the rest of the story.
Having said that, there have not been any reports of data-corrupting errors in either the offline or online resizing tools (at least not as far as I can remember).
<endsnip>
Regards,
Krishnan
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/