<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amanmool on Medium]]></title>
        <description><![CDATA[Stories by Amanmool on Medium]]></description>
        <link>https://medium.com/@amanmool384?source=rss-3f6389ab7a60------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Y2kxnNb1KV6yshpt</url>
            <title>Stories by Amanmool on Medium</title>
            <link>https://medium.com/@amanmool384?source=rss-3f6389ab7a60------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:06:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amanmool384/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How a Failed Nvidia Driver Update Broke My Ubuntu Boot — And How I Fixed It]]></title>
            <link>https://medium.com/@amanmool384/how-a-failed-nvidia-driver-update-broke-my-ubuntu-boot-and-how-i-fixed-it-c459870ab73e?source=rss-3f6389ab7a60------2</link>
            <guid isPermaLink="false">https://medium.com/p/c459870ab73e</guid>
            <category><![CDATA[reboot]]></category>
            <category><![CDATA[ubuntu-20-04]]></category>
            <category><![CDATA[initramfs]]></category>
            <category><![CDATA[black-box]]></category>
            <category><![CDATA[fix]]></category>
            <dc:creator><![CDATA[Amanmool]]></dc:creator>
            <pubDate>Sat, 23 May 2026 12:28:33 GMT</pubDate>
            <atom:updated>2026-05-23T12:28:33.624Z</atom:updated>
            <content:encoded><![CDATA[<p>The one missing package that took 3 hours to find</p><p>I was trying to update my Nvidia driver on Ubuntu 24.04 when the installation failed midway. I restarted my laptop expecting it to boot normally. Instead, I was greeted with this:</p><pre>ALERT! UUID=xxxx-xxxx does not exist. Dropping to a shell!<br><br>BusyBox v1.36.1 (Ubuntu) built-in shell (ash)<br>(initramfs) _BusyBox v1.36.1 (Ubuntu) built-in shell (ash)<br>(initramfs) _</pre><p>Three hours later, after trying almost everything, I finally found the fix — and it was a single command. This article documents every step so you never have to go through the same thing.</p><p>If you want to know the solution that helped directly without going through all the process that failed go to the solution directly at the end of article.</p><h3>The Setup</h3><ul><li><strong>Device:</strong> Acer Nitro (laptop)</li><li><strong>OS:</strong> Ubuntu 24.04 LTS</li><li><strong>Broken kernel:</strong> 6.17.0–29-generic</li><li><strong>Working kernel:</strong> 6.17.0–23-generic</li><li><strong>Nvidia driver that failed:</strong> nvidia-595</li></ul><h3>What Was Happening</h3><p>When I tried to boot into my newer kernel (6.17.0–29), the system couldn’t find the root filesystem and dropped into an initramfs emergency shell. The older kernel (6.17.0–23) booted perfectly fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iB_9XzBi1vcMDeBKH9EYFQ.jpeg" /></figure><blockquote>The GRUB Advanced Options menu — 6.17.0–29 was broken, 6.17.0–23 worked fine</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0aJOfgZoaX8bu0xHHeABxw.jpeg" /></figure><blockquote>The dreaded initramfs shell — the system couldn’t find the drive</blockquote><h3>Everything I Tried (That Didn’t Work)</h3><h3>Attempt 1 — fsck and blkid from initramfs</h3><p>The first instinct was to check the filesystem and find the drive:</p><pre>blkid<br>fdisk -l</pre><p>Both returned <strong>nothing</strong>. Completely empty. The drive was invisible to the system.</p><h3>Attempt 2 — Removing Nvidia Packages</h3><p>Booted into the working 6.17.0–23 kernel and purged all Nvidia packages:</p><pre>sudo apt remove --purge nvidia-* -y<br>sudo apt autoremove -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J13gJXz3mSCXAaKbCGj2BQ.jpeg" /></figure><blockquote>All Nvidia packages removed successfully — initramfs rebuilt automatically</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sImmduzNj6QL1wsIkzpsMQ.jpeg" /></figure><blockquote>Leftover dependencies cleaned up</blockquote><p>Rebooted into 6.17.0–29. Still dropped to initramfs. The drive was still invisible.</p><h3>Attempt 3 — Checking dmesg</h3><p>From the initramfs shell, I ran</p><pre>dmesg | grep -i nvme<br>dmesg | tail -20</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rgYlvgNROWIdDKW9DZI3g.jpeg" /></figure><blockquote>dmesg output — only USB devices visible. Zero NVMe activity.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxJ5iEewnYWI26pPHoY8Qg.jpeg" /></figure><blockquote>The boot parameters were correct — same UUID, same paths as the working kernel</blockquote><p>The NVMe driver simply wasn’t loading. The kernel couldn’t see the drive at all.</p><h3>Attempt 4 — Adding NVMe Modules to initramfs</h3><p>Checked if the NVMe modules existed:</p><pre>ls /lib/modules/6.17.0-29-generic/kernel/drivers/nvme/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ADDhNbKwkURtZQIPEPhMuw.jpeg" /></figure><blockquote>The NVMe module files existed — common, host, target directories all present</blockquote><p>Added them explicitly to initramfs:</p><pre>echo &quot;nvme&quot; | sudo tee -a /etc/initramfs-tools/modules<br>echo &quot;nvme_core&quot; | sudo tee -a /etc/initramfs-tools/modules<br>sudo update-initramfs -u -k 6.17.0-29-generic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rp8N-l4Hw5vgWBUOIcWcLQ.jpeg" /></figure><blockquote>Modules added and initramfs rebuilt successfully</blockquote><p>Then I verified they were actually inside the initramfs image:</p><pre>lsinitramfs /boot/initrd.img-6.17.0-29-generic | grep nvme</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*ePrqN2xt6uuXju3s47Q79Q.jpeg" /></figure><blockquote><strong><em>[Insert image: lsinitramfs showing nvme modules present]</em></strong><em> </em>The nvme.ko.zst and nvme-core.ko.zst files were physically inside the initramfs</blockquote><p>The modules were there. But the drive still wasn’t detected. Something else was wrong.</p><h3>Attempt 5 — Checking initramfs Configuration</h3><p>bash</p><pre>cat /etc/initramfs-tools/initramfs.conf | grep MODULES</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*aJFu_byGCXgHbI-ToT3IDA.jpeg" /></figure><blockquote><strong><em>[Insert image: MODULES=most output]</em></strong><em> </em>Already set to MODULES=most — the most inclusive setting. Not the cause.</blockquote><h3>Attempt 6 — Checking GRUB Config</h3><p>bash</p><pre>sudo grep -A3 &quot;6.17.0-29&quot; /boot/grub/grub.cfg | head -20</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPbhdsy2OSdJvNEgXZwryg.jpeg" /></figure><blockquote><strong><em>[Insert image: GRUB config output]</em></strong><em> </em>Boot parameters were identical for both kernels — same UUID, same initrd. Not the issue.</blockquote><h3>Attempt 7 — Reinstalling the Kernel</h3><p>bash</p><pre>sudo apt install --reinstall linux-image-6.17.0-29-generic linux-modules-6.17.0-29-generic<br>sudo update-initramfs -u -k 6.17.0-29-generic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thNwv8XsNAdD75VvapBxYA.jpeg" /></figure><blockquote><strong><em>[Insert image: kernel reinstall output]</em></strong><em> </em>Kernel reinstalled and initramfs rebuilt. Still didn’t fix it.</blockquote><h3>Attempt 8 — Manually Loading NVMe from initramfs</h3><p>bash</p><pre>modprobe nvme<br>blkid</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3pvb_27ma_t7hGTsB8PUQ.jpeg" /></figure><blockquote><strong><em>[Insert image: modprobe returning nothing]</em></strong><em> </em>modprobe ran silently. blkid still empty. Even manual module loading didn’t help.</blockquote><h3>Attempt 9 — Rebuilding Module Dependencies</h3><p>bash</p><pre>sudo depmod -a 6.17.0-29-generic<br>sudo update-initramfs -u -k 6.17.0-29-generic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvAS5lL5kBIwPbSHaob6Dw.jpeg" /></figure><blockquote><strong><em>[Insert image: depmod success]</em></strong><em> </em>depmod ran successfully. initramfs rebuilt. Boot still failed</blockquote><h3>Finding the Root Cause</h3><p>After 9 failed attempts, I ran a simple check:</p><p>bash</p><pre>dpkg -l | grep linux-modules | grep 29</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oxtDs5u-8KoSWfvBJ-aUQg.jpeg" /></figure><blockquote><strong><em>[Insert image: dpkg output showing missing package]</em></strong><em> </em>The key finding — linux-modules-extra-6.17.0-29-generic was completely missing from the installed packages list</blockquote><p>There it was. linux-modules-extra-6.17.0-29-generic was <strong>never installed</strong>.</p><p>Ubuntu splits kernel modules into two packages:</p><p>PackageContentslinux-modules-&lt;version&gt;-genericCore modules for basic bootlinux-modules-extra-&lt;version&gt;-genericAdditional drivers — <strong>including NVMe</strong></p><p>The failed Nvidia installation had never installed the extra modules package. Every initramfs rebuild was missing the NVMe driver. The drive was invisible because the driver simply didn’t exist in the boot environment.</p><h3>The Fix</h3><p>One command:</p><p>bash</p><pre>sudo apt install linux-modules-extra-6.17.0-29-generic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GXhHTfE0XQVRfSKoDFXQA.jpeg" /></figure><blockquote><strong><em>[Insert image: extra modules installation output]</em></strong><em> </em>123MB of additional kernel modules installed. initramfs rebuilt automatically. GRUB updated. On the next reboot, 6.17.0–29 booted perfectly.</blockquote><p>That’s it. After 3 hours of debugging, the fix was a single apt install.</p><h3>After the Fix — Reinstall Nvidia Properly</h3><p>Once the system was booting correctly, I reinstalled the Nvidia driver the right way:</p><p>bash</p><pre>sudo ubuntu-drivers autoinstall<br>sudo reboot</pre><p>Then verified it was working:</p><p>bash</p><pre>nvidia-smi</pre><h3>The Full Fix (TL;DR)</h3><p>If you’re in the same situation, here’s the complete fix:</p><p><strong>Step 1 — Boot the working older kernel from GRUB</strong></p><p>Hold Shift (BIOS) or Esc (UEFI) at boot → Advanced Options → select the older working kernel.</p><p><strong>Step 2 — Remove broken Nvidia packages</strong></p><p>bash</p><pre>sudo apt remove --purge nvidia-* -y<br>sudo apt autoremove -y</pre><p><strong>Step 3 — Install the missing extra modules package</strong></p><p>bash</p><pre>sudo apt install linux-modules-extra-$(uname -r)<br><br>e.g. sudo apt install linux-modules-extra-6.17.0-29-generic</pre><blockquote><em>Replace </em><em>$(uname -r) with your broken kernel version if fixing a different kernel than the one you&#39;re currently on.</em></blockquote><p><strong>Step 4 — Reboot and test</strong></p><pre>sudo reboot</pre><p>Select the previously broken kernel at GRUB.</p><p><strong>Step 5 — Reinstall Nvidia properly</strong></p><p>bash</p><pre>sudo ubuntu-drivers autoinstall<br>sudo reboot</pre><p><strong>Step 6 — Verify</strong></p><p>bash</p><pre>nvidia-smi</pre><h3>How to Diagnose This Issue</h3><p>If you land in initramfs, run these to confirm it’s the same problem:</p><p>CommandWhat it tells youblkidIf empty: drive not detecteddmesg | grep -i nvmeIf empty: NVMe driver not loadingmodprobe nvme &amp;&amp; blkidIf still empty: modules package likely missingdpkg -l | grep linux-modules-extraCheck if the extra modules package is installed</p><h3>How to Prevent This</h3><p><strong>Always use </strong><strong>ubuntu-drivers instead of manually installing Nvidia packages:</strong></p><p>bash</p><pre>sudo ubuntu-drivers autoinstall</pre><p><strong>Before installing any driver, ensure extra modules are installed:</strong></p><p>bash</p><pre>sudo apt install linux-modules-extra-$(uname -r)</pre><p><strong>After any failed installation, fix broken packages:</strong></p><p>bash</p><pre>sudo apt install -f<br>sudo dpkg --configure -a<br>sudo apt install linux-modules-extra-$(uname -r)</pre><p><strong>Keep your older kernel in GRUB</strong> — Ubuntu keeps the last 2 by default. Don’t remove old kernels immediately after getting a new one.</p><h3>The Key Takeaway</h3><blockquote><em>A failed Nvidia driver installation can leave </em><em>linux-modules-extra-&lt;kernel&gt; uninstalled. This package contains critical storage drivers — including NVMe — without which the kernel cannot detect any drives at boot. Simply removing Nvidia and rebuilding the initramfs is not enough. You must ensure </em><em>linux-modules-extra-&lt;kernel&gt; is installed.</em></blockquote><p><em>Found this helpful? If you hit the same issue, drop a comment — would love to know if this saved you some time.</em></p><p><strong>Tags:</strong> Ubuntu, Linux, Nvidia, Boot, NVMe, initramfs, Troubleshooting, Linux Kernel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c459870ab73e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>