What i did to get more space on /tmp on linux.

  • 01 Jan, 2016

Yesterday i was installing a TSM Server for our company. The db2 installer complain about the /tmp size.

The installer need 2,5GB and my /tmp has only 2 GB.

I create a “disk” using dd command with 4GB on a partition with lots of space.

dd if=/dev/zero of=/usr/tmpDSK bs=1024k count=4096 mkfs -t ext3 /usr/tmpDSK file /usr/tmpDSK umount /tmp

mount -o loop,exec,nosuid,rw /usr/tmpDSK /tmp

After the db2 installation i umount the /tmp and mount it back using fstab -a

Related Posts

Error when run dnf install rpm-build

  • 31 Mar, 2025

I was installing the IBM MQ Server on a linux box yesterday. I got the error bellow: \root@gateway MQServer\ dnf install rpm-build
Updating Subscription Management repositories.
Instana 14 B/s | 20 B 00:01
Errors during downloading metadata for repository 'instana-agent': Status code: 401 for https://:[email protected]/agent/rpm/generic/x86\64/repodata/repomd.xml (IP: 34.253.98.124)
Error: Failed to download metadata for repo 'instana-agent': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Solution: Delete the Instana Agent repo: rm /etc/yum.repos.d/Instana-Agent.repo
Clear dnf cache: dnf clean all
run dnf i

Error when run dnf install rpm-buildRead More

How to Install watch on macOS Sequoia

  • 06 Feb, 2025

The watch command is a useful utility in Unix-like systems that allows you to execute a command periodically and display its output. However, macOS does not come with watch pre-installed. If you're running macOS Sequoia and want to use watch, follow the steps below to install it. Recently i switch my mabook to a new MacBook Pro M2 and try to use the command to watch some openshift logs and i got the following result: !(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA6gAAAC6CAYAAACjt2AlAAAAAXNSR0IArs4c6QAAAJBlWElmTU0AKgAAAAgABgEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEaAAUAAAABAAAAVgEbAAUAAAABAAAAXgEoAAMAAAABAAIAAIdpAAQAAAABAAAAZgAAAAAAAACQAAAAAQAAAJAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAA6igAwAEAAAAA

How to Install watch on macOS SequoiaRead More

rsync is faster than scp to copy files between machines

  • 31 Dec, 2024

rsync is generally faster than scp for copying files, especially when transferring a large amount of data or syncing directories. Here's why: 1. Incremental Transfers - rsync: Only transfers the parts of files that have changed, rather than the entire file. This makes subsequent transfers much faster. - scp: Always transfers the entire file, even if only a small part of it has changed. 2. Compression - rsync: Supports compression during the transfer (using the -z option), which reduces the amount of data sent over the network. - scp: Also supports compression (using the -C option), but it doesn't have the same efficiency in skipping unchanged data. 3. Resume Support - rsync: Can

rsync is faster than scp to copy files between machinesRead More