Skip to content

Instantly share code, notes, and snippets.

@u007
Last active May 26, 2020 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u007/0a545c73a78d0477164bdff17076d58e to your computer and use it in GitHub Desktop.
Save u007/0a545c73a78d0477164bdff17076d58e to your computer and use it in GitHub Desktop.
resizing /tmp cpanel centos 7 on linode

goto linode dashboard > node

1st, setting > shutdown watchdog > disable

second, boot into rescue mode

disclaimer: i'm not responsible for any problems with your system (but you may contact me)

mkdir /mnt/r
mount /dev/sda /mnt/r

cd /mnt/r/usr
cp tmpDSK tmpDSK2
dd if=/dev/zero bs=1MiB of=tmpDSK2 conv=notrunc oflag=append count=14024# size in MB
e2fsck -yf tmpDSK2 # make sure this works without error
resize2fs -f tmpDSK2 # and this works without error
mv tmpDSK tmpDSKori
mv tmpDSK2 tmpDSK

then, goto linode dashboard, and click on reboot

shell into system

df -h# tada!

once its working, goto linode dashboard, setting > shutdown watchdog > enable

to check for all loop0 devics

/sbin/losetup --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment