[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can/should I delete /tmp partition?



On 8/10/25 05:57, Default User wrote:
My system has 8 Gb of physical memory.


I assume you mean "8 GB", meaning 8 * 2**30 bytes = 8 GiB (?).



On a 256 Gb SSD, I have:

nvme0n1     259:0    0 238.5G  0 disk
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
├─nvme0n1p2 259:2    0  23.3G  0 part /
├─nvme0n1p3 259:3    0   9.3G  0 part /var
├─nvme0n1p4 259:4    0   977M  0 part [SWAP]
├─nvme0n1p5 259:5    0   1.9G  0 part
└─nvme0n1p6 259:6    0 202.6G  0 part /home

In Debian 13, nvme0n1p5 is no longer auto-mounted
as /tmp.

Can I just:
1) shut down the system
2) boot from a Debian-Live usb drive
3) delete the nvme0n1p5 partition
4) "grow" nvme0n1p4 (the swap partition)
    using the space freed up by deleting
    nvme0n1p5
5) re-boot into the system

After that, there would be no /tmp partition,
and any /tmpfs stuff should be in memory only,
except using the swap partition when necessary.

BTW, here is my current /etc/fstab:
# <file system> <mount point> <type>
<options>          <dump> <pass>

UUID=4fdd4399-6267-404a-a292-cdc7761df3c9  /	
ext4	errors=remount-ro  0	  1
UUID=26EE-0EF5	                           /boot/efi
vfat	umask=0077	   0	  1
UUID=00f0c2db-0490-4354-b949-f9af11a7f001  /home	
ext4	defaults	   0	  2
UUID=8bfeee23-9c09-45b7-a73e-bd2ff43e207c  /var	
ext4	defaults	   0	  2
UUID=e2a56ec3-99d4-4b40-9aa4-24975143cdc7  none	         swap	
sw	           0	  0



???


From a risk/ reward standpoint, the risk is that you will trash you system while attempting to rearrange partitions and swap. The reward is that your swap space will grow from ~1 GB to ~3 GB.


Was your system using swap before upgrading Debian?


Is your system now using swap (after upgrading Debian)?


If the answer to both of the above is "no", then I would not make any changes. Ignore nvme0n1p5.


If the answer to both of the above is "yes", then your best solution is to add memory. Do that and ignore nvme0n1p5.


If the answer to both of the above is "yes" and your computer memory is maxed out, then it is time for a new computer with more memory. Again, ignore nvme0n1p5.


David


Reply to: