how to increase /root space

Andrew Mathews andrew_mathews
Mon May 17 11:51:52 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Swapana Ghosh wrote:
|
| I am sorry , i can't say how it is inceasing but this
| servers' kernel was upgraded few days back. Suddenly
| while checking i found that /boot is almost 99% full -
| while comparing the other servers i found it is not ok
| so.....

I would look at the contents of /boot and remove any unused kernel
images before trying to grow the filesystem. Much less painful.

|>>How much free disk space do you have left?
|
|
|
| [root at server root]# df -k
| Filesystem           1k-blocks      Used Available
| Use% Mounted on
| /dev/sda7               505605    215026    264475
| 45% /
| /dev/sda3                23333     21846       283
| 99% /boot
| none                    644860         0    644860
| 0% /dev/shm
| /dev/sda9                62193      5092     53890
| 9% /tmp
| /dev/sda5             42354768   8756324  31446944
| 22% /usr
| /dev/sda6             25403224   3489336  20623472
| 15% /var
| /dev/sda2              1035692    842020    141060
| 86% /home
| [root at server root]#
|

That only shows current disk usage, you need to find out how much
unallocated space is left. (df and du only shows allocated space)

Try fdisk -l /dev/hdX or sdX where X is the disk and look for free
space. df -h gives easier to read info:
[root at linus root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3             191M   99M   92M  52% /
/dev/hda5              10G  320K  9.9G   1% /backup
/dev/hda1              11M  4.9M  6.1M  45% /boot
/dev/hda6              10G  1.6G  8.4G  16% /home
none                  125M     0  125M   0% /dev/shm
/dev/hda11             97M  1.9M   95M   2% /tmp
/dev/hda7             4.0G  1.8G  2.2G  43% /usr
/dev/hda2             348M  192M  156M  55% /usr/local
/dev/hda9             191M   53M  138M  28% /var

What's the output of "mount|column -tx"? It will show the filesystem type.

| [root at server root]# lsmod
| Module                  Size  Used by    Not tainted
| autofs                 11172   0  (autoclean) (unused)
| e1000                  50912   1  (autoclean)
| usb-ohci               20192   0  (unused)
| usbcore                71072   1  [usb-ohci]
| ext3                   64768   6
| jbd                    47892   6  [ext3]
| aacraid                28532   7
| sd_mod                 12832  14
| scsi_mod              104800   2  [aacraid sd_mod]

Since the ext3 module is loaded, it may be an all ext3 filesystem. If
so, good luck. I don't know of a native ext3 filesystem tool to grow it.

| If you want to know more info - pl. tell me... Also
| plese give me some hints where can i check to solve
| this problem...
|
| Best regards.
| -Swapna
|

- --
Andrew Mathews
- ---------------------------------------------------------------------
~ 10:22am  up 12 days,  8:59, 11 users,  load average: 1.05, 1.41, 1.67
- ---------------------------------------------------------------------
Eloquence is logic on fire.
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQE/UNu9idHQ0m/kEssRAp+kAJ9QxYFiBkep4ZQqRmhjgt6N9Icv2gCfZROh
IfR1IuaotrSb+ZyOuFm2Fq8=
=pX/4
-----END PGP SIGNATURE-----



More information about the Linux-users mailing list