Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Cannot get kernel to show anything post grub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
GSF1200S
n00b
n00b


Joined: 26 May 2010
Posts: 8

PostPosted: Sat Jun 14, 2014 12:02 pm    Post subject: [SOLVED] Cannot get kernel to show anything post grub Reply with quote

**EDIT** Just FYI, this is with the hardened no multilib setup (x86_64). This shouldnt matter as the system doesnt even get a chance to boot.

I have been beating my head against the wall on this. I think my problem has to be with the kernel configuration as ive never manually built a kernel on this hardware. I dont even get a print out of what the kernel sees- just a hard lock and nothing. Its almost as if the kernel cant even see my SATA controller. Note: I do see "Loading Gentoo kernel.." and "Loading initramfs..." being echoed from grub, and then nothing. Ive never had an issue with my desktop so my procedure should be right, though it has totally different hardware.

First, heres the results of lspci -k from a working linux install (arch):
Code:
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
   Subsystem: Lenovo Device 21f6
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
   Subsystem: Lenovo Device 21f5
   Kernel driver in use: i915
   Kernel modules: i915
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_hcd
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: mei_me
   Kernel modules: mei_me
00:16.3 Serial controller: Intel Corporation 7 Series/C210 Series Chipset Family KT Controller (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: serial
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
   Subsystem: Lenovo Device 21f3
   Kernel driver in use: e1000e
   Kernel modules: e1000e
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: ehci-pci
   Kernel modules: ehci_pci
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: ehci-pci
   Kernel modules: ehci_pci
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: lpc_ich
   Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: ahci
   Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: i801_smbus
   Kernel modules: i2c_i801
02:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 08)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: sdhci-pci
   Kernel modules: sdhci_pci
02:00.3 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 PCIe IEEE 1394 Controller (rev 04)
   Subsystem: Lenovo Device 21f6
   Kernel driver in use: firewire_ohci
   Kernel modules: firewire_ohci
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 3e)
   Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi

and heres the results of cat /proc/cpuinfo:
Code:
processor   : 0
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 0
cpu cores   : 4
apicid      : 0
initial apicid   : 0
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 0
cpu cores   : 4
apicid      : 1
initial apicid   : 1
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 2
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 1
cpu cores   : 4
apicid      : 2
initial apicid   : 2
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 3
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 1
cpu cores   : 4
apicid      : 3
initial apicid   : 3
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 4
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 2
cpu cores   : 4
apicid      : 4
initial apicid   : 4
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 5
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 2
cpu cores   : 4
apicid      : 5
initial apicid   : 5
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 6
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 3
cpu cores   : 4
apicid      : 6
initial apicid   : 6
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 7
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
stepping   : 9
microcode   : 0x19
cpu MHz      : 1208.250
cache size   : 8192 KB
physical id   : 0
siblings   : 8
core id      : 3
cpu cores   : 4
apicid      : 7
initial apicid   : 7
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips   : 5389.19
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


Heres a pastebin of my kernel config used to build the kernel:
http://paste.debian.net/104922/

I am using btrfs, and btrfs has been built in. I have the intel stuff and framebuffer support, AHCI support, EFI GUID partition table support, EFI/EFI stub support, etc.

In terms of the partition itself, its btrfs as I said with the following layout:
subvolid=0
|
rootfs____ / (gentoos root, including /boot).
|
home
|
snapshots

Now for grub related. First, heres the printout from blkid (while booted into arch):
Code:
/dev/sda1: UUID="ECA4-222B" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="bb177cf0-7bb0-4f32-8556-bb047d925edb"
/dev/sda3: UUID="1C8EA5018EA4D494" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="195b6ea8-f3ad-4dfa-9831-241569ee9286"
/dev/sda4: LABEL="Debian" UUID="c582d2ff-7b8e-48cc-b45c-9c2dfb8e12c5" UUID_SUB="44310760-df5c-4faf-8718-85ba946555e9" TYPE="btrfs" PARTUUID="277fa897-3727-4440-bdc4-17b34ce29d3f"
/dev/sda5: LABEL="Arch" UUID="d8497bf8-54c6-4f45-8ae0-4931f9045da9" UUID_SUB="7bf5cd6f-2240-44e5-8da3-95c899a79eef" TYPE="btrfs" PARTUUID="461af65b-fa5d-4c10-ba70-34f7c0fb13c8"
/dev/sda6: LABEL="Gentoo" UUID="f1a2ea72-91f9-444c-8784-d8a30b3a5e6c" UUID_SUB="83df9166-6619-4056-b1f9-11e4e79d035b" TYPE="btrfs" PARTUUID="a280bb9d-f577-4d14-92a1-ec0b2058c21a"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="0048e29e-8135-4f03-87e5-5d1946cb2617"

and heres the relevant entry from my grub.cfg:
Code:
menuentry 'Gentoo Linux (Hardened)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'f1a2ea72-91f9-444c-8784-d8a30b3a5e6c' {
   load_video
   set gfxpayload=keep
   insmod gzio
   insmod part_gpt
   insmod btrfs
   set root='hd0,gpt6'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  f1a2ea72-91f9-444c-8784-d8a30b3a5e6c
   else
     search --no-floppy --fs-uuid --set=root f1a2ea72-91f9-444c-8784-d8a30b3a5e6c
   fi
   echo   'Loading Gentoo kernel ...'
   linux   /rootfs/boot/vmlinuz-3.14.5-hardened-r2 root=/dev/sda6 rw quiet rootfstype=btrfs rootflags=subvol=rootfs
   echo   'Loading initramfs...'
   initrd   /rootfs/boot/initramfs-genkernel-x86_64-3.14.5-hardened-r2
}


The initramfs image was a last resort to get something, but im not sure genkernel can even generate one using the hardened profile. Ive tried omitting it even though that shouldnt help, and still no joy. Ive tried changing root=/dev/sda6 to root=UUID=<the uuid of /dev/sda6>. Ive tried without rootfstype=btrfs, without rootflags=subvol=rootfs (even though it should need this), and still nothing.

My efi partition is /dev/sda1, and it works fine. Debian and Arch boot fine. Debian and Arch both also have the same subvolume scheme, and I even copied one of my other grub entries and changed the UUID numbers, kernel line, and init line just in case I missed something.

Im pretty sure grub is finding the kernel fine- if I arbitrarily change the kernel line to the wrong name, grub complains as it should. So grubs pointing to the kernel, but I am missing something. Inevitably whenever I post to a forums ive missed something really stupid, so what is it?

Finally, im pretty sure its not fstab related since im not getting anything. I would at least get "cannot find root filesystem" if it were (I think). Nevertheless, heres /etc/fstab from the gentoo partition:
Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda6         /            btrfs        rw,noatime,ssd,discard,space_cache   0 0
/dev/sda6      /home        btrfs        rw,noatime,ssd,discard,space_cache,subvol=home   0 0


Ive also tried using UUIDs here, but nothing. My issue is probably in the make menuconfig step- any ideas? Let me know if you need any other printouts..


Last edited by GSF1200S on Sun Jun 15, 2014 7:07 am; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4259

PostPosted: Sat Jun 14, 2014 4:13 pm    Post subject: Reply with quote

I don't know what you miss, but are you sure it's a good idea to have
linux /rootfs/boot/vmlinuz-3.14.5-hardened-r2 root=/dev/sda6 rw quiet rootfstype=btrfs rootflags=subvol=rootfs
With a problem as :
I dont even get a print out of what the kernel sees- just a hard lock and nothing
Back to top
View user's profile Send private message
GSF1200S
n00b
n00b


Joined: 26 May 2010
Posts: 8

PostPosted: Sat Jun 14, 2014 6:50 pm    Post subject: Reply with quote

krinn wrote:
I don't know what you miss, but are you sure it's a good idea to have
linux /rootfs/boot/vmlinuz-3.14.5-hardened-r2 root=/dev/sda6 rw quiet rootfstype=btrfs rootflags=subvol=rootfs
With a problem as :
I dont even get a print out of what the kernel sees- just a hard lock and nothing

Apologies, I should have mentioned that I had not put quiet on the kernel line originally. It got put in there after I copied the grub entry from Arch (where interestingly quiet doesnt do anything) when I was trying everything to get some feedback.

Just to confirm, booting with quiet gone results in exactly the same issue (no feedback from the kernel).
Back to top
View user's profile Send private message
vaxbrat
Guru
Guru


Joined: 05 Oct 2005
Posts: 596
Location: DC Burbs

PostPosted: Sun Jun 15, 2014 1:44 am    Post subject: split off your /boot Reply with quote

You probably have a catch-22 going on since you have your /boot inside your root. Grub2 can be a bit brittle, and I find it can have problems getting a btrfs root fs up and plumbed. Here's an example from one of my ssd based boxes:

Code:
tube ~ # gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 500118192 sectors, 238.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): FD999B21-5639-44BD-BE36-AC0E264ACBFC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            8191   3.0 MiB     EF02  biosboot
   2            8192         1032191   500.0 MiB   8300  boot
   3         1032192       500118158   238.0 GiB   8300  root


I have a 250gb ssd and 3 4tb drives on this box. Here's the fstab

Code:
tube ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda3               /systemraid         btrfs   defaults,noatime,ssd        0 0
/dev/sda2               /boot               btrfs   defaults,noatime,ssd        0 0
/dev/sda3               /                   btrfs   defaults,noatime,ssd,compress=lzo,subvol=activeroot 0 0

/dev/sr0                /mnt/cdrom      auto        noauto,users,ro     0 0

#
#  3x4tb raid1/raid1 btrfs.  /dev/sdb1,c1 has alternative grub2bios and /dev/sdb2,c2 has alternative /boot
#
/dev/sdb3                /tuberaid                      btrfs   defaults,noatime,compress=lzo,autodefrag                0 0
/dev/sdb3                /home                          btrfs   subvol=home,defaults,noatime,compress=lzo,autodefrag    0 0
/dev/sdb3                /mythtv                        btrfs   subvol=mythtv,autodefrag,defaults,noatime               0 0
/dev/sdb3                /vm                            btrfs   subvol=vm,compress=lzo,autodefrag,default,noatime       0 0



Notice that I have /boot living in /sda2 all by itself and don't do anything that might give grub2 reason to barf when trying to find and mount it. Because of that, I can shove the root fs into a subvolume with lzo compression enabled. I don't even need an outboard or embedded initramfs to get this to work. Here's the default section of my grub.cfg:

Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simpl
e-eb002ef0-90f4-45b5-927d-8c473b27a8c1' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod btrfs
        set root='hd0,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --
hint='hd0,gpt2'  50228899-24f0-4ebc-a127-2d2a863e2e07
        else
          search --no-floppy --fs-uuid --set=root 50228899-24f0-4ebc-a127-2d2a863e2e07
        fi
        echo    'Loading Linux 3.12.21-gentoo-r1 ...'
        linux   /kernel-3.12.21-gentoo-r1 root=/dev/sda3 ro rootflags=subvol=activeroot 
}
Back to top
View user's profile Send private message
GSF1200S
n00b
n00b


Joined: 26 May 2010
Posts: 8

PostPosted: Sun Jun 15, 2014 7:06 am    Post subject: Reply with quote

Solved. It was due to security settings in the kernel config! I would have thought that I would get something regardless of whats in here, but it turns out that is not the case. I built a kernel with no security settings enabled and it booted. The really strange thing is not even genkernel boots on this hardware (but the liveCD does?!). I tried genkernel twice and I get nothing post grub. I ended up copying the security settings portion (only) from Arch's linux-grsec kernel and it booted with most features enabled. I will have to try a few kernel builds to find out what security option exactly causes the problem.

X/i3 works. Wicd isnt able to bring up interfaces and my wireless card doesnt work despite having the right drivers built as a module in the kernel (iwlwifi), but modprobing the iwlwifi driver turns the wireless light on (but I nor wicd can scan)? These are topics for other posts though :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum