Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing X and using genkernel/recompiling linux
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rbvim
n00b
n00b


Joined: 27 Nov 2012
Posts: 2

PostPosted: Tue Nov 27, 2012 6:50 pm    Post subject: Installing X and using genkernel/recompiling linux Reply with quote

Hi, I want to install Gentoo with X support built in; and I'm considering using genkernel to do it. On a previous installation, I compiled my kernel manually, but then Gentoo complained about KMS or framebuffer support not being enabled when it was installing the X server (I can't remember the exact error, but when I tried startx it said "no screens found", I've read that the solution is to recompile my kernel).

I'm wondering if I can reinstall Gentoo using genkernel to compile my kernel and install X without any problems. I'm using Intel integrated graphics (4000 HD), so I don't think I need any fancy nVidia drivers.
I'm also wondering (slightly off topic) if I would be able to simply recompile my kernel, enabling the options from http://www.gentoo.org/doc/en/xorg-config.xml. I believe I need to access /boot, but I cannot mount it with "mount /boot" because I get "unknown filesystem ext2").

Thanks in advance.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Nov 27, 2012 7:13 pm    Post subject: Re: Installing X and using genkernel/recompiling linux Reply with quote

rbvim wrote:
I believe I need to access /boot, but I cannot mount it with "mount /boot" because I get "unknown filesystem ext2").
That means that you haven't included ext2 support in your kernel, which means you've created somewhat of a chicken & egg scenario. Yes, you can just modify your kernel .config and recompile the kernel but you're going to need to boot an install CD (minimal install CD, LiveCD, or SystemRescueCD are popular choices; whatever you used on the initial install is fine) to mount your boot partition and copy the newly compiled kernel (and, optionally, initramfs) in there. If you're using genkernel, then it's probably best to re-enter the chroot as described in the Handbook and just run genkernel from there.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Nov 27, 2012 7:22 pm    Post subject: Reply with quote

Actually, you can enable required filesystem support, run
Code:
make modules
followed by
Code:
make modules_install
and you will be able to mount.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Tue Nov 27, 2012 7:25 pm    Post subject: Reply with quote

rbvim,

Welcome to Gentoo.

You can mount your boot but you need to make a kernel module first.
Get into make menuconf, for your currently running kernel. Check
Code:
 uname -r
if you are not sure which kernel that is.

Use the search (Press /) and enter ext2
The kernel will tell you where in the configuration menus that option is.
Go there and set it to <M>. <*> not work, as you still won't be able to mount boot.

Exit menuconfig and save your change. Run
Code:
make modules && make modules_install

You now have the ext2 driver as a loadable module for your kernel.

Code:
modprobe ext2
will load it, now mount /boot should work.

If you want to make ext2 a built it, you must mount /boot while you still have the module, so that you can copy the a new kernel with ext2 set to <*> over to /boot

You don't need your CD after all.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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