<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><div class="gmail_default"><div class="gmail_default" style="color:rgb(80,0,80)"><span style="font-family:arial,sans-serif">On Fri, Mar 4, 2016 at 3:56 PM, Kristof Provost </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:kristof@sigsegv.be" target="_blank">kristof@sigsegv.be</a>></span><span style="font-family:arial,sans-serif"> wrote:</span><br></div><div class="gmail_extra" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On 04 Mar 2016, at 23:50, Patrick <<a href="mailto:plafratt@gmail.com" target="_blank">plafratt@gmail.com</a>> wrote:</div><div><div dir="ltr"><div class="gmail_extra"><div style="font-family:georgia,serif;font-size:small">Thanks for the response. I had seen that StackOverflow post and done that a couple of days ago. I was hoping there was another answer, since I wouldn't be able to do that if I weren't using QEMU.</div><div style="font-family:georgia,serif;font-size:small"><br></div></div></div></div></blockquote>If you weren’t using Qemu I’d point you at netconsole. The first step in debugging panics is always to figure out what the panic is.</div><div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div style="font-family:georgia,serif;font-size:small">When I looked at the output from QEMU a couple of days ago, the kernel was saying that it couldn't find a device to mount with the root filesystem. So I generated an initrd image on the host Linux system, and I used that on the guest which got me to a BusyBox prompt. But this was totally a hack, since I didn't even know if getting an initrd image was really the next thing I needed to do. I was hoping someone might be able to point me to something that might explain what to do to get the kernel to mount a device with the root filesystem.</div><div style="font-family:georgia,serif;font-size:small"><br></div></div></div></blockquote>You want to pass the ‘root=/dev/foo’ option to your kernel. Obviously change /dev/foo into whatever device you’re booting from.</div><div><br></div><div>Regards,</div><div>Kristof</div></div></blockquote><div> </div></div></div></div><div class="gmail_default">Ok, thanks. I will try to look into netconsole.</div><div class="gmail_default"><br></div><div class="gmail_default">I had tried changing the "root" option. I had noticed that the QEMU output showed the kernel printing out this:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">[ 4.312088] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6</div><div class="gmail_default">[ 4.322029] Please append a correct "root=" boot option; here are the available partitions:</div><div class="gmail_default">[ 4.327850] 0100 65536 ram0 (driver?)</div><div class="gmail_default">[ 4.337399] 0101 65536 ram1 (driver?)</div><div class="gmail_default">[ 4.345170] 0102 65536 ram2 (driver?)</div><div class="gmail_default">[ 4.345691] 0103 65536 ram3 (driver?)</div><div class="gmail_default">[ 4.346251] 0104 65536 ram4 (driver?)</div><div class="gmail_default">[ 4.346825] 0105 65536 ram5 (driver?)</div><div class="gmail_default">[ 4.347442] 0106 65536 ram6 (driver?)</div><div class="gmail_default">[ 4.350055] 010a 65536 ram10 (driver?)</div><div class="gmail_default">[ 4.352624] 010b 65536 ram11 (driver?)</div><div class="gmail_default">[ 4.353597] 010c 65536 ram12 (driver?)</div><div class="gmail_default">[ 4.354517] 010d 65536 ram13 (driver?)</div><div class="gmail_default">[ 4.354977] 010e 65536 ram14 (driver?)</div><div class="gmail_default">[ 4.358393] 010f 65536 ram15 (driver?)</div><div class="gmail_default">[ 4.359420] 0b00 1048575 sr0 driver: sr</div><div class="gmail_default">[ 4.360499] 0800 102400 sda driver: sd</div><div class="gmail_default">[ 4.367898] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)</div><div class="gmail_default"><br></div><div class="gmail_default">I hadn't noticed "sda" before. So I tried pointing root at this. Then I got this:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">[ 4.375721] List of all partitions:</div><div class="gmail_default">[ 4.383491] 0100 65536 ram0 (driver?)</div><div class="gmail_default">[ 4.386418] 0101 65536 ram1 (driver?)</div><div class="gmail_default">[ 4.388736] 0102 65536 ram2 (driver?)</div><div class="gmail_default">[ 4.390931] 0103 65536 ram3 (driver?)</div><div class="gmail_default">[ 4.391266] 0104 65536 ram4 (driver?)</div><div class="gmail_default">[ 4.391726] 0105 65536 ram5 (driver?)</div><div class="gmail_default">[ 4.392812] 0106 65536 ram6 (driver?)</div><div class="gmail_default">[ 4.393340] 0107 65536 ram7 (driver?)</div><div class="gmail_default">[ 4.393932] 0108 65536 ram8 (driver?)</div><div class="gmail_default">[ 4.394906] 0109 65536 ram9 (driver?)</div><div class="gmail_default">[ 4.396283] 010a 65536 ram10 (driver?)</div><div class="gmail_default">[ 4.399212] 010b 65536 ram11 (driver?)</div><div class="gmail_default">[ 4.400067] 010c 65536 ram12 (driver?)</div><div class="gmail_default">[ 4.401832] 010d 65536 ram13 (driver?)</div><div class="gmail_default">[ 4.402775] 010e 65536 ram14 (driver?)</div><div class="gmail_default">[ 4.403572] 010f 65536 ram15 (driver?)</div><div class="gmail_default">[ 4.404046] 0800 102400 sda driver: sd</div><div class="gmail_default">[ 4.412148] 0b00 1048575 sr0 driver: sr</div><div class="gmail_default">[ 4.413323] No filesystem could mount root, tried: ext3 ext2 ext4 vfat fuseblk</div><div class="gmail_default">[ 4.415310] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,0)</div><div class="gmail_default"><br></div><div class="gmail_default">So, I think maybe now the kernel is missing some things it needs on /dev/sda. Right now, I don't think there is anything on it other than the bootloader. Do you happen to know where I can find what the kernel needs to proceed?</div><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div><div class="gmail_default">Patrick</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div><br></div></div>