/tmp read only

ARUN Posted in DISK RELATED
0

When /tmp is read only, we can fix that without rebooting the server using the steps below :

umount /tmp

umount -l /tmp (umount -l forces an umount, even if it’s busy)

df -h

fsck -yf /dev/sda2      (y = answer yes to everything)

fsck -yf /dev/sda2        (run it a second time to double check)

df -h

mount /dev/sda2 /tmp

touch /tmp/hello

Server architecture

ARUN Posted in DISK RELATED, LINUX COMMANDS
0

[arun@localhost ~]$ uname -i

?i386            –> This means server is X86  32 bit

updatedb

ARUN Posted in DISK RELATED, LINUX COMMANDS
0

The database file updated by default while running “updatedb”  is

/var/lib/mlocate/mlocate.db   ( Can be cleared to free disk space )

To find in MB size of particular file

ARUN Posted in DISK RELATED
0

ls -alh | grep suphp

Disk usage of each partition on entire server.

ARUN Posted in DISK RELATED
0

df -h

To find in MB the size of a folder that we are in

ARUN Posted in DISK RELATED
0

du -sh