How to increse /tmp partition size directly without scripts

Firewall 19.2.2015 No Comments

Stop all the service.

# /etc/init.d/mysql stop

# cp -af /var/tmp /var/tmp.bak

# umount /var/tmp

# umount /tmp

# mv /usr/tmpDSK /usr/tmpDSK_bak

Increase /tmp partition size to 2G

# dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=2097195

# mkfs /usr/tmpDSK

# tune2fs -j /usr/tmpDSK

# mount -t ext3 -o nosuid,noexec,loop /usr/tmpDSK /tmp

# mount -o bind,noexec,nosuid /tmp /var/tmp

# cp -a /var/tmp.bak/* /tmp/

# rm -rf /var/tmp.bak

# chmod 1777 /tmp
Start all the service.

by-

eLite Server Management

We Specialize In cPanel Server Management
Affordable 24/7 Technical Support Company

Leave a Reply