Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rm /sys/* - during boot up
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
ziggie216
n00b
n00b


Joined: 06 Feb 2006
Posts: 19

PostPosted: Mon Feb 06, 2006 5:23 pm    Post subject: rm /sys/* - during boot up Reply with quote

during start up, I see a long and yet very fast display of rm /sys/something and at the end of each remove is permission deny. I tried to remove the folders manually but even I got the permission deny (as root). I tried booting from the install cd, mount the drive, but then sys folder was empty. Does anyone know when were those file generated and what can I do about it during the start up.
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Mon Feb 06, 2006 5:41 pm    Post subject: Reply with quote

/sys is a special filesystem provided by the kernel and you can't delete any files from it (same thing with /proc).
If /sys is empty when looked at from the livecd that means the directory used as mount point (the dir on the filesystem) does not contain any files.

Can you tell which init script is trying to do that rm? I looked over my /etc/init.d but coundn't find anything. Except for the /sbin/rc, which does some cleanups in $svcdir. Did you set something strange for the svc* variables in /etc/conf.d/rc ?
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Feb 06, 2006 5:42 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.

/sys/ contains files for communicated with the kernel. On startup the kernel creates entries there.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 644
Location: Fife, Scotland

PostPosted: Mon Feb 06, 2006 11:59 pm    Post subject: Reply with quote

I had a similar problem back at the start of January - it arrived with a genkernel or udev upgrade I think. I eventually switched from genkernel to doing manual builds and that cured it. [I have to say, the /sys deletes never seemed to cause any harm though]
Back to top
View user's profile Send private message
ziggie216
n00b
n00b


Joined: 06 Feb 2006
Posts: 19

PostPosted: Tue Feb 07, 2006 4:14 am    Post subject: Reply with quote

wjb wrote:
I had a similar problem back at the start of January - it arrived with a genkernel or udev upgrade I think. I eventually switched from genkernel to doing manual builds and that cured it. [I have to say, the /sys deletes never seemed to cause any harm though]


I'm more interested in doing a manual build, but I'm not too sure which modules/drivers I would need
Back to top
View user's profile Send private message
Po0ky
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2005
Posts: 142
Location: Belgium

PostPosted: Tue Feb 07, 2006 7:52 am    Post subject: Reply with quote

Check what modules are in use when you booted with a livecd or with your working kernel version.
(Ignore most of the sata devices and just pick the one you need, it's kinda anoying the livecd always detects them all, but hey, who are we to complain)

Also: use the lspci command (emerge pciutils) to determine what hardware you have inside.
"lspci -v" will give you even morge information. (Use to determine the real chip used on a pci-card)
Use the dmesg | grep -i "acpi\|apm" to get some information on your power management system

Use www.google.com/linux for other hardware issues

And then it's just a question of going over all kernel options and use the help button to get info on an option... With drivers, you'll find the hardware it supports in there pretty often.
_________________
-- I'll eat it--
Back to top
View user's profile Send private message
ziggie216
n00b
n00b


Joined: 06 Feb 2006
Posts: 19

PostPosted: Tue Feb 07, 2006 9:22 am    Post subject: Reply with quote

yea i'm a little amazed how livecd does a better job than compiling it myself... also I just notice that when I insert the usb drive (memory stick) some kind of detection message came up...

so from what I read in the manual.. i'll need to use menuconfig and find-pick the drivers & modules right?
Back to top
View user's profile Send private message
Po0ky
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2005
Posts: 142
Location: Belgium

PostPosted: Tue Feb 07, 2006 9:44 am    Post subject: Reply with quote

Indeed. If you can't handle the ncurses driven menu, you can use make gconfig (gtk) or make xconfig (qt-libs) also.

Start with removing everything you KNOW you don't have :)
_________________
-- I'll eat it--
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 644
Location: Fife, Scotland

PostPosted: Wed Feb 08, 2006 2:02 pm    Post subject: Reply with quote

You don't need to change the config much to switch to a manual build - you do need to make sure that things the system needs to boot are built-in to the kernel rather than left as modules. Then its probably best to start with a make clean so it doesn't get confused by anything the previous genkernel build left lying around

Take a look at the Gentoo Handbook section
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