You are not logged in.

#1 2014-01-26 01:24:47

cjewe
Member
Registered: 2014-01-26
Posts: 15

ERROR: Device '/dev/sda3' not found.

This is my first time compiling a custom kernel. I am trying to compile zen kernel 3.12.3. Whenever I try to boot it up, it says this:

                ERROR: device '/dev/sda3' not found. Skipping fsck
                ERROR: Unable to find root device '/dev/sda3'

Then it drops me to a recovery shell. When I look at the contents of '/dev' none of my partitions are found on sda. '/dev/sda' is listed but nothing else. Has anybody else had this problem? /i have read various fixes but none of them have helped.

Sorry this is my first post.

Thanks in advance.

Offline

#2 2014-01-26 02:13:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ERROR: Device '/dev/sda3' not found.

What's the output of 'ls /dev/sd*'?
Check what partition your / is on.

Offline

#3 2014-01-26 02:21:48

cjewe
Member
Registered: 2014-01-26
Posts: 15

Re: ERROR: Device '/dev/sda3' not found.

karol wrote:

What's the output of 'ls /dev/sd*'?

In the recovery shell it just outputs: '/dev/sda'. When I am booted into the regular Arch kernel it outputs:
/dev/sda
/dev/sda1
/dev/sda2
/dev/sda3
/dev/sda4
/dev/sdb(Which I can't figure out why this is here. I do not know if it is a cdrom or what.)

karol wrote:

Check what partition your / is on.

It is /dev/sda3.

Offline

#4 2014-01-26 03:53:00

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: ERROR: Device '/dev/sda3' not found.

Maybe you should use filesystem labels or UUIDs to avoid any problems with potentially random disk naming.

Offline

#5 2014-01-26 04:00:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ERROR: Device '/dev/sda3' not found.

Since you have sdb for some reason, UUIDs could indeed help.
Does your system boot OK with the stock kernel?

Offline

#6 2014-01-26 04:57:10

cjewe
Member
Registered: 2014-01-26
Posts: 15

Re: ERROR: Device '/dev/sda3' not found.

My system boots fine on the stock kernel. How to I find uuids? BTW I am running i686

Offline

#7 2014-01-26 05:02:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ERROR: Device '/dev/sda3' not found.

Offline

#8 2014-01-26 05:08:39

cjewe
Member
Registered: 2014-01-26
Posts: 15

Re: ERROR: Device '/dev/sda3' not found.

cjewe wrote:

My system boots fine on the stock kernel. How to I find uuids? BTW I am running i686

By default grub-mkconfig uses a uuid for root, so I tried to copy that uuid to my custom kernel in grub.conf and it still will not boot. Did I forget to include hardware drivers in my kennel or something?

Offline

#9 2014-01-26 05:42:11

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: ERROR: Device '/dev/sda3' not found.

How did you make the kernel?  Did you use an AUR package, or did you compile it by hand?  If rather sounds as though there is no initramfs for your custom kernel and you also don't have the necessary drivers compiled directly into your kernel.

Offline

#10 2014-01-26 15:22:03

cjewe
Member
Registered: 2014-01-26
Posts: 15

Re: ERROR: Device '/dev/sda3' not found.

WonderWoofy wrote:

How did you make the kernel?  Did you use an AUR package, or did you compile it by hand?  If rather sounds as though there is no initramfs for your custom kernel and you also don't have the necessary drivers compiled directly into your kernel.

I compiled it by hand. mkinitcpio complains that no modules were included in the initramfs. I am still using the initramfs though.

Offline

#11 2014-01-26 16:09:42

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: ERROR: Device '/dev/sda3' not found.

Well, the whole point of the initramfs is to have it load the necessary modules to mount the rootfs.  So if mkinitpcio complains that there are no modules to put in there, that is pretty problematic.

I think you should take a look at the PKGBUILD for the official Arch kernel.  It includes a few lines that allow you to use menuconfig or nconfig or whatever, prior to that actual 'make'.  I think that any time you install things to your system, you should probably be leveraging the package manager in order to properly track the files.  This is particularly true when you are an Arch user and the creation of packages is so damn easy.

Offline

#12 2014-01-26 16:53:29

cjewe
Member
Registered: 2014-01-26
Posts: 15

Re: ERROR: Device '/dev/sda3' not found.

Then would you recommend I compile zen kernel or arch kernel?

Offline

#13 2014-01-26 17:01:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: ERROR: Device '/dev/sda3' not found.

Make whatever you want.  Just package it right, and make a proper mkinitpcio.d file for it.

I'm not sure if it is the patches you are after or the actual customization of the kernel.  But heftig (an Arch developer) has a repo that has linux-zen in it.  Here is the tread.

Offline

#14 2014-01-26 17:07:26

cjewe
Member
Registered: 2014-01-26
Posts: 15

Re: ERROR: Device '/dev/sda3' not found.

WonderWoofy wrote:

Make whatever you want.  Just package it right, and make a proper mkinitpcio.d file for it.

I'm not sure if it is the patches you are after or the actual customization of the kernel.  But heftig (an Arch developer) has a repo that has linux-zen in it.  Here is the tread.

Thanks I will try this when I get home.

Offline

#15 2014-01-27 15:04:08

cjewe
Member
Registered: 2014-01-26
Posts: 15

Re: ERROR: Device '/dev/sda3' not found.

Thanks for your help everyone. I had to recompile my nvidia driver from the abs, but other wise I am fine.

Last edited by cjewe (2014-01-27 15:04:58)

Offline

Board footer

Powered by FluxBB