Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Write protecting the kernel read-only
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
josel
n00b
n00b


Joined: 30 Mar 2011
Posts: 12
Location: z laptopa

PostPosted: Wed Mar 30, 2011 3:32 pm    Post subject: [SOLVED]Write protecting the kernel read-only Reply with quote

Hi,
I am new to linux, but I've got plenty of time to learn that great system, so I decided to install Gentoo as best distro for learning (by reading documentation and hard-working).
So, here's my problem. I've installed gentoo yesterday from minimal cd (mounted to USB). I was using handbook from gentoo.org, everything was going nice, I've compiled the kernel, installed grub, reboot, but when I choose "Gentoo" (I've got windows too) booting ends just like that:

Code:
Ext3 - fs(sda3): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 8:3
Freeing unused kernel memory: 408k fred
Write protecting the kernel text: 4340k
Write protecting the kernel read-only data: 1692k
/ #:


and whatever I write (for example "reboot"), it answer:

Code:
reboot used greatest stack depth. 6223 bytes left


and nothing happens.
What should I do ?
I google it, but no answer was given.

(btw. sorry for my english in which I suck)
Cheers,
_________________
learning linux all day long.


Last edited by josel on Wed Mar 30, 2011 7:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Wed Mar 30, 2011 4:34 pm    Post subject: Reply with quote

Hi josel
A similar problems has been reported in the RedHat Bugzilla archives. This thread is pretty old, however, it can give you some clues. It seems you have to pass a option to kernel.
G'Luck
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Wed Mar 30, 2011 4:54 pm    Post subject: Reply with quote

Your English is fine.

Do you see a an "Oops" when you look at the output of the command "dmesg" ? If so, you would know that it's some kernel error, and where the error might be coming from.

I found another forum thread that might be related:

https://forums.gentoo.org/viewtopic-t-863025-start-0.html
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
josel
n00b
n00b


Joined: 30 Mar 2011
Posts: 12
Location: z laptopa

PostPosted: Wed Mar 30, 2011 6:41 pm    Post subject: Reply with quote

Thanks for reply, I try to check dmesg and I didn't found anything suspicious for my noobish eyes. No errors, oops's and so on. Maybe one thing makes me wonder - when I typed
Quote:
dmesg | grep -i pci
there was plenty of IRQ at the end of the lines, I read something about it, but I don't really know is it bad.
Maybe I'll try to compile kernel again and I have one question. How to do it? Do I must install gentoo again, or there is a way to go to /usr/src/linux and make menuconfig. I tried to do it [quote] but of course
Quote:
make menuconfig
does not work, because it can't make temporary files.
Is there a way to jump from livecd to
Quote:
/usr/src/linux
or smth like that ? Of course if I must I will reinstall gentoo, cause practice makes perfect, right ? :wink:

Cheers,
_________________
learning linux all day long.


Last edited by josel on Wed Mar 30, 2011 6:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Mar 30, 2011 6:42 pm    Post subject: Reply with quote

You probably have init=/bin/sh in your bootloader config. Remove it if it's there.
Back to top
View user's profile Send private message
josel
n00b
n00b


Joined: 30 Mar 2011
Posts: 12
Location: z laptopa

PostPosted: Wed Mar 30, 2011 6:45 pm    Post subject: Reply with quote

I don't have it
_________________
learning linux all day long.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Wed Mar 30, 2011 6:48 pm    Post subject: Reply with quote

1) Having lots of messages about PCI and interrupts in dmesg is normal with newer kernels

2) You should boot into a LiveCD and then you can mount your hard disk inside there. Then, as described in the guidebook, you can chroot into the hard disk root directory for certain critical operations.

Many people have reinstalled Gentoo after not being able to get it to work initially, but I think you might learn more if you get it to work without reinstalling ;)
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Mar 30, 2011 6:50 pm    Post subject: Reply with quote

Well for some reason it's running a shell instead of the normal init there. Did you use genkernel when you installed?
Back to top
View user's profile Send private message
josel
n00b
n00b


Joined: 30 Mar 2011
Posts: 12
Location: z laptopa

PostPosted: Wed Mar 30, 2011 6:53 pm    Post subject: Reply with quote

o, my bootloader somehow add init.
Now I can log in

Ok, I don't really know how it happened. :oops:

Now my problem is solved I think. :oops:

Thanks to you all.

Cheers,
_________________
learning linux all day long.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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