<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title>Krrish Ghimire - Blog</title>
	<link href="https://krrishg.com/blog/index.html"/>
	<link href="https://krrishg.com/blog/feed.xml" rel="self" type="application/atom+xml"/>
	<id>https://krrishg.com/blog/index.html</id>
	<updated>2026-10-08T10:00:03+05:45</updated>
	<author>
		<name>Krrish Ghimire</name>
	</author>

	<entry>
		<title>How I Upgraded Vaultwarden</title>
		<link href="https://krrishg.com/blog/how-i-upgraded-vaultwarden.html"/>
		<id>https://krrishg.com/blog/how-i-upgraded-vaultwarden.html</id>
		<published>2026-10-10T12:15:00+05:45</published>
		<updated>2026-10-10T12:15:00+05:45</updated>
		<content type="html">
			<![CDATA[
				<p>I had Vaultwarden server running since 4 years. I had never upgraded it before. Recently, I was facing issues logging in to the server using Firefox plugin and Android app. It was working on web though. It was probably due to the compatibility issue with bitwarden client and vaultwarden server. So, I decided to upgrade it to latest version. Here is how I did it.</p>

				<p>First, I stopped the currently running container: <code>docker stop vaultwarden</code></p>
				<p>Then, I copied the data directory to another location in a tar file so that it stays even if I messed something up: <code> tar -C $HOME -czf "$HOME/vaultwarden-backup-$(date +%F-%H%M%S).tar.gz" vaultwarden</code></p>
				<p>Thereafter, I pulled the latest vaultwarden docker image: <code>docker pull vaultwarden/server:latest</code></p>
				<p>After that, I removed the current vaultwarden container: <code>docker rm vaultwarden</code></p>
				<p>Now, it is time to run the latest version: <code>docker run -d --name vaultwarden --restart unless-stopped -p 9999:80 -v "$HOME/vaultwarden:/data" vaultwarden/server:latest</code></p>
				<p>I am now running the latest version with the login issues fixed.</p>
			]]>
		</content>
	</entry>

	<entry>
		<title>GNU/Linux Disk Space Analysis</title>
		<link href="https://krrishg.com/blog/gnu-linux-disk-space-analysis.html"/>
		<id>https://krrishg.com/blog/gnu-linux-disk-space-analysis.html</id>
		<published>2026-08-26T00:00:00+05:45</published>
		<updated>2026-08-26T00:00:00+05:45</updated>
		<content type="html">
			<![CDATA[
				<p>When GNU/Linux disk space is full, there are few things to do to know what is taking up the space. After that you can decide what to keep, what to delete, or what to move to backup devices. First, check which device is taking up space by running this command <code>df -h</code>. Check the available space, used space, used percentage. Once you know which device is taking space, check the mount point of the device in the output of above mentioned command. Now, you know which directory to dig.</p>

					<p>Next step is to dig deeper to the exact directory which is taking up space. Use this command: <code>sudo du -xhd1 / 2>/dev/null | sort -h</code>. <code>du</code> is the command to check disk usage. <code>x</code> tells it to skip files in other filesystems. <code>h</code> makes the output human readable. <code>d1</code> shows just 1 depth of directory i.e. current directory and its immediate subdirectories. <code>/</code> is the root filesystem. Feel free to replace it with the directory you want to explore. <code>2>/dev/null</code> discards all the errors. <code>sort -h</code> sorts the output by human readable sizes.</p>

					<p>Basically, you will get list of sorted directories by used size. Use the same command by replacing the directory until you find the exact directory that needs to be checked. Then, it is upto you to what to do with the files that is taking up space. Delete it, backup it to another device or do anything you want.</p>
			]]>
		</content>
	</entry>
</feed>
