Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 721C720E3 for ; Thu, 13 Oct 2022 05:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=cvL+oqPsnEnHg/dDOCME8fDnFaaZfYNNend9fWrdHNo=; b=RTFZ4gY2To5EXMGdDCNB05gK4QxIHlMYdYLdbvOyVoGmKFnfWyJ5NB35 NMpp4Spgju94W5VUBfZ73LnqSxBjflAntXe4+HzA5y2G8nBz4u12NSPeS 99q1hLKjlLmqf7sIg0xxK+nn3okyXGBMmzLH0Yu5tFAMEQ7FcdJ3y/o9S s=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.95,180,1661810400"; d="scan'208";a="29361559" Received: from 51.123.68.85.rev.sfr.net (HELO hadrien) ([85.68.123.51]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2022 07:20:09 +0200 Date: Thu, 13 Oct 2022 07:20:08 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Emily Peri cc: outreachy@lists.linux.dev Subject: Re: Hi from Outreachy Intern In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) Precedence: bulk X-Mailing-List: outreachy@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Wed, 12 Oct 2022, Emily Peri wrote: > Hi everyone, > > My name is Emily and I'm a new Outreachy intern for the upcoming phase. > I'm looking for projects to get involved in and I'm really intersted in > working on Coccinelle! > > I started the first patch tutorial, but ran into an issue. I'm currently > using a dual operating system setup-- I have Ubuntu and Windows on the > same machine. The thing is, I have my Ubuntu filesystem on an external > ssd. The boot parition is on the internal disk. Following the tutorial, after compiling and installing the kernel, > I tried to reboot with it, which caused a kernel panic. The exact error > was (along with the call trace): > Kernel panic -- not syncing: VFS: Unable to mount root fs on unknown-block(0,0) > > From what I read online, one of the problems that may be going on is that the kernel wasn't compiled with the necessary drivers to interact > with the external ssd and filesystem. Am I understanding this correctly? > Can this be solved by recompiling with the necessary settings in > .config? Hello and welcome. Since you already have Linux running on your machine, did you use the same .config as was being used on your machine? You can find it in the /boot directory. make oldconfig should take this .config file automatically. julia > > Another thing I'm seeing is that I need to create an initramfs for the new kernel. Do I need to do both? If the kernel can access the root filesystem on the external ssd, would it still need a temporary filesystem for the boot process? > > Finally, I'm wondering if I need to set the "root" variable for grub when it loads the kernel. Such as, GRUB_CMDLINE_LINUX_DEFAULT="root=/dev/sb3" where sb3 > is the filesystem partition. I'm just not sure if this is necessary > because grub doesn't have trouble loading my current kernel. > > Sorry for so many questions! Hopefully I can figure this out, but any > help is greatly appreciated! > > Best, > Emily > >