View previous topic :: View next topic |
Author |
Message |
FarkR n00b
Joined: 01 Oct 2015 Posts: 11
|
Posted: Thu Oct 01, 2015 2:35 am Post subject: Gentoo end Kernel panic - not syncing. |
|
|
Code: | CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.0.5-gentoo #1
Hardware name: Apple Inc. MacBookPro11, 1/Mac-189A3D4F975D5FFC, BIOS MBP11.88Z138.B11.1408291433 08/29/14
0000000000008001 ffff88026e0ffdc8 fffffffff814d5905 000000000000006b
ffffffff815c74e1 ffff88026e0ffe48 fffffffff814d2f6b ffffffff816aa440
ffff880200000010 ffff88026e0ffe58 ffff88026e0ffdf8 ffff0035316d6172
Call Trace:
[<ffffffff814d5905>] dump_stack+0x45/0x57
[<ffffffff814d2f6b>] panic+0xb9/0x1dc
[<ffffffff816e83bb>] mount_block_root+0x286
[<ffffffff816e858b>] mount_root+0xa2/0xa6
[<ffffffff816e86fc>] prepare_namespace+0x16d/0x1a6
[<ffffffff816e805b>] kernel_init_freeable+0x1ca/0x1da
[<ffffffff816e77a1>] ? initcall_blacklist+0xa3/0xa3
[<ffffffff814d09db>] ? rest_init+0x6f/0x6f
[<ffffffff814d09e4>] kernel_init+0x9/0xd0
[<ffffffff814da988>] ret_from_fork+0x58/0x90
[<ffffffff814d09db>] ? ret_from_fork+0x58/0x90
Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000
-0xffffffff9fffffff)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(8,36)
|
I'm on a retina Macbook Pro 13 inch running Windows 8 (I did a clean install, no OSX exists) in BIOS legacy mode. Gentoo is being booted from an external microsd card using LILO and partitioned with fdisk.
Any help would be appreciated, especially since I spent at least 10 minutes typing this entire damn error message.
Some info may be cut off because I typed this by looking at a photo I took with my phone. I imagine if you know what you're looking at, you'll know what's missing. |
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Thu Oct 01, 2015 11:31 am Post subject: |
|
|
(8,36) - this means it is looking for / on sdc4. Is this correct, your root is on sdc4? Please note, when booting from SD card your device enumeration may change. |
|
Back to top |
|
|
FarkR n00b
Joined: 01 Oct 2015 Posts: 11
|
Posted: Thu Oct 01, 2015 8:32 pm Post subject: |
|
|
Yes, it has changed. I'll try changing my fstab to /dev/sdb and see what happens
Here's a copy of my fdisk /dev/sdb partitions
Code: | Disk /dev/sdb: 59.6 GiB, 64021856256 bytes, 125042688 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7da604f7
Device Boot Start End Blocks Id System
/dev/sdb1 2048 6143 2048 ef EFI (FAT-12/16/32)
/dev/sdb2 * 6144 268287 131072 83 Linux
/dev/sdb3 268288 1316863 524288 82 Linux swap / Solaris
/dev/sdb4 1316864 125042687 61862912 83 Linux |
|
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Thu Oct 01, 2015 8:51 pm Post subject: |
|
|
fstab is not read yet when kernel boots, you need to pass correct root=/dev/sdXX to your kernel, it goes to lilo.conf. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Oct 01, 2015 9:07 pm Post subject: |
|
|
FarkR,
With grub, its easy to do trial and error.
At the boot menu, hilight your selection and press 'e'
Follow the on screen instructions and edit the root=/dev/sdc4, them boot.
Try other values if you still get
This can also be caused bf the root filesystem driver not being available, or your partition table type not being in the kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
FarkR n00b
Joined: 01 Oct 2015 Posts: 11
|
Posted: Thu Oct 01, 2015 10:51 pm Post subject: |
|
|
I just tried installing GRUB2 but even after downloading, I get the following error
Code: | (chroot) livecd / # grub2-install /dev/sdb
bash: grub2-install: command not found |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Oct 02, 2015 6:09 pm Post subject: |
|
|
FarkR,
Type grub then press the tab key.
Its called tab completion. In some shells its two fast taps of the tab key. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
FarkR n00b
Joined: 01 Oct 2015 Posts: 11
|
Posted: Sat Oct 03, 2015 3:55 am Post subject: |
|
|
Okay, so I've figured out how to download Grub2, but I can't seem to install it onto my SD card. I've tried all of the following parameters
Code: | (chroot) livecd / # grub2-install /dev/sdc
Installing for x86-64-efi platform
grub2-install: error: cannot find EFI directory.
|
Code: | (chroot) livecd / # grub2-install --target=x86_64-efi --efi-directory=/boot
Installing for x86_64-efi platform
grub2-install: error: /boot doesn't look like an efi partition
|
know that /dev/sdc2 is mounted onto /boot.
Code: | (chroot) livecd / # grub2-install --target=x86_64-efi --efi-directory=/dev/sdc1
Installing forx86_64-efi platform
grub2-install: error: failed to get canonical path of 'udev'
|
Code: | (chroot) livecd / # grub2-install /dev/sdc1
Installing for x86-64-efi platform
grub2-install: error: cannot find EFI directory.
|
Code: | (chroot) livecd / # grub2-install /dev/sdc2
Installing for x86-64-efi platform
grub2-install: error: cannot find EFI directory.
|
I'm a bit confused as to where I should install GRUB2 to begin with.
Looking at the handbook, it would seem they want it on partition 2, which is a linux ext2 filesystem.
But Grub2 seems to be looking for an EFI partition, which is partition 1.
Did the handbook mess something up?
Thanks for your help so far, btw. You have no idea how much a appreciate it |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Oct 03, 2015 9:42 am Post subject: |
|
|
FarkR,
Grub2 installs to the MBR of whatever disk you point it at and needs a small amount of space outsiide of the MBR too.
This space need not have a filesystem on it as grub will use it raw anyway. That means that any filesystem there will be destroyed.
On systems with BIOS and a MSDOS disk label, the 'wasted' space is between the MBR and the start of the first partition is used.
On systems using a GPT disk lable, this space does not exist, the GPT partition table starts in LBA 1, so you must make a small partition for grub to use.
A few MB is plenty.
Its covered in The Handbook under Default partitioning scheme.
If you don't have a BIOS boot partition, grub can use an fallback mode but it will warn that horrible things will happen.
Essentially, you must reinstall grub to the MBR every time grub is updated. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|