LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   kernel panic LFS7.7, first boot unable to mount root unknown block 8,1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/kernel-panic-lfs7-7-first-boot-unable-to-mount-root-unknown-block-8-1-a-4175548606/)

KeeganDeathman 07-22-2015 02:46 AM

kernel panic LFS7.7, first boot unable to mount root unknown block 8,1
 
I am having a bit of a problem.
I turn on my pc, go into the boot menu, select my externel hard drive which has lfs on it,
go into grub, remove the /boot/ from the file, run. Yay!
Nope. I get a kernel panic saying it can't mount root on an unknown block 8,1.
not 0,0, 8,1.
What does that even mean?
Help.

spiky0011 07-22-2015 03:01 AM

It would help with more info, what partition is lfs on. sdbx?
Post grub.cfg and fstab,
Did you enable all the correct drivers in the kernel
Where did you install grub? sda or sdb. Do you have a seperate boot partition.

KeeganDeathman 07-22-2015 03:04 AM

Quote:

Originally Posted by spiky0011 (Post 5394695)
It would help with more info, what partition is lfs on. sdbx?
Post grub.cfg and fstab,
Did you enable all the correct drivers in the kernel

lfs is on sdb1, boot is sdb2 though.
grub:
Code:

# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,2)

menuentry "GNU/Linux, Linux 3.19-lfs-7.7" {
        linux  /boot/vmlinuz-3.19-lfs-7.7 root=/dev/sda1 ro
}

fstab:
Code:

# Begin /etc/fstab

# file system  mount-point  type    options            dump  fsck
#                                                              order

/dev/sda1      /            ext4    defaults            1    1
/dev/sda2      /boot        ext4    defaults            1    1
/dev/sda3      swap        swap    pri=1              0    0
proc          /proc        proc    nosuid,noexec,nodev 0    0
sysfs          /sys        sysfs    nosuid,noexec,nodev 0    0
devpts        /dev/pts    devpts  gid=5,mode=620      0    0
tmpfs          /run        tmpfs    defaults            0    0
devtmpfs      /dev        devtmpfs mode=0755,nosuid    0    0

# End /etc/fstab

Note, since I boot into the external, sdb becomes sda.
So theres that.
I didn't do much in kernel config, just did make defconfig and then disabled uevent.

spiky0011 07-22-2015 03:15 AM

Ok I would check through kernel conf that all the relevent to your machine is enabled, Before I have set a rootdelay to boot line
Code:

linux  /boot/vmlinuz-3.19-lfs-7.7 root=/dev/sda1 rootdelay=15 ro
the reason for the delay is so the usb can have time to be detected.
But that has let me down recently and I built initramfs.
I would check through kernel 1st, lspci will give you the info you need.

KeeganDeathman 07-22-2015 04:11 AM

Okay im in the config menu, and i have lspci from my host, but I'm not sure how that translates into options i need in kernel.

spiky0011 07-22-2015 04:16 AM

did you run makemenuconfig?
http://www.linuxfromscratch.org/lfs/...08/kernel.html

KeeganDeathman 07-22-2015 04:17 AM

yes. I have that in one terminal and lspci in a separate one.

spiky0011 07-22-2015 04:29 AM

You have to go through it and check that the stuff you require is enabled "Y". There is a hlp section that will help along with google.

KeeganDeathman 07-22-2015 04:53 AM

Okay I enabled quite a few things, amd, nvidia, sata, thunderbolt, pci things.
Will get back to you after next boot.

KeeganDeathman 07-22-2015 05:27 AM

http://i.imgur.com/MacFOmh.jpg
That's what I got.
_OSC failed (AE_NOT_FOUND); disabling ASPM is the last line

spiky0011 07-22-2015 05:31 AM

If you still have the old kernel in boot dont delete it, I,m sure the kernel line should read

root=/dev/sda1 root=/dev/sdb1 as the root is still on sdb grub will look at it as sda1 then root is on sdb, give that a try.

KeeganDeathman 07-22-2015 05:35 AM

So change sdax to sdbx? That shouldn't work. The hard drive becomes sda when in hot into it, bit if I boot into Ubuntu, lfs is on sdb.

spiky0011 07-22-2015 05:42 AM

Ha now you got me thinking i,m not in front of my lfs which has grub on 2nd drive as well, it cant hurt to try it tho.

I think it works that grub reads the drive as hd0, then looks to root as the drives are ubuntu sda1 lfs sdb1

KeeganDeathman 07-22-2015 05:44 AM

Well neither am i. I'm in front of my phone watching hulu. I'll try tomorrow, or later. Do t expect much. Had to edit grub anyway

spiky0011 07-22-2015 06:44 AM

Another option use host grub to make sure system boots ok


All times are GMT -5. The time now is 11:08 AM.