Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[help] sommergere (ancora!) il kernel [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Sep 04, 2004 12:21 pm    Post subject: [help] sommergere (ancora!) il kernel [risolto] Reply with quote

ok, la domanda é sempre la stessa, ma continuo a nutrire dubbi, sorry :roll:

Code:
Saltatempo src # qpkg -I -v gentoo-dev-sources
sys-kernel/gentoo-dev-sources-2.6.8-r3 *
sys-kernel/gentoo-dev-sources-2.6.7-r13 *
Saltatempo src #


bon, eliminamo quello che non serve:

Code:
Saltatempo src # emerge -C gentoo-dev-sources-2.6.7-gentoo-r13
Saltatempo src # cd /usr/src
Saltatempo src # rm -rvf linux-2.6.7-r13


ok. Dovrebbe essere tutto a posto, giusto ?
ma, allora, di questo che ne faccio ?

Code:
Saltatempo src # ls -lah /lib/modules/2.6.7-gentoo-r13/
total 40K
drwxr-xr-x  4 root root 4.0K Sep  2 19:59 .
drwxr-xr-x  3 root root   25 Aug 15 17:00 ..
lrwxrwxrwx  1 root root   27 Aug 15 15:40 build -> /usr/src/linux-2.6.7-gentoo-r13
drwxr-xr-x  8 root root   76 Aug 15 15:40 kernel
-rw-r--r--  1 root root  900 Sep  2 19:59 modules.alias
-rw-r--r--  1 root root   69 Sep  2 19:59 modules.ccwmap
-rw-r--r--  1 root root 2.2K Sep  2 19:59 modules.dep
-rw-r--r--  1 root root   73 Sep  2 19:59 modules.ieee1394map
-rw-r--r--  1 root root  132 Sep  2 19:59 modules.inputmap
-rw-r--r--  1 root root   81 Sep  2 19:59 modules.isapnpmap
-rw-r--r--  1 root root  372 Sep  2 19:59 modules.pcimap
-rw-r--r--  1 root root 2.8K Sep  2 19:59 modules.symbols
-rw-r--r--  1 root root 1.6K Sep  2 19:59 modules.usbmap
lrwxrwxrwx  1 root root   27 Aug 15 15:40 source -> /usr/src/linux-2.6.7-gentoo-r13
drwxr-xr-x  2 root root   22 Aug 15 17:04 video
Saltatempo src #


lo posso eliminare, e chi s'e' visto s'e' visto ? O ho saltato qualche procedimento, che mi avrebbe eliminato direttamente tutto il tree dei moduli ?

Coda


Last edited by codadilupo on Sat Sep 04, 2004 12:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
_sys/sid
Guru
Guru


Joined: 27 Aug 2004
Posts: 346
Location: Asola (Mantova)

PostPosted: Sat Sep 04, 2004 12:25 pm    Post subject: Reply with quote

Elimina senza paura:
[CODE]
# rm -rf /lib/modules/KERNEL
# rm /boot/KERNEL (initrd e kernel)
[CODE
_________________
http://th30z.netsons.org/
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sat Sep 04, 2004 12:28 pm    Post subject: Re: [help] sommergere (ancora!) il kernel Reply with quote

codadilupo wrote:

Code:
Saltatempo src # emerge -C gentoo-dev-sources-2.6.7-gentoo-r13
Saltatempo src # cd /usr/src
Saltatempo src # rm -rvf linux-2.6.7-r13



ti consiglio di fare i comandi al contrario :) (anche se poco ortodosso)
Sara' tutto + veloce

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Sep 04, 2004 1:28 pm    Post subject: Re: [help] sommergere (ancora!) il kernel Reply with quote

xchris wrote:
ti consiglio di fare i comandi al contrario :) (anche se poco ortodosso)
Sara' tutto + veloce


eheh.. ci credo: non trova nulla, non toglie nulla, finisce subito ;-)

Coda
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sat Sep 04, 2004 1:48 pm    Post subject: Re: [help] sommergere (ancora!) il kernel Reply with quote

codadilupo wrote:

eheh.. ci credo: non trova nulla, non toglie nulla, finisce subito ;-)


si ma l'operazione totale (emerge -C + rm) e' + lenta di rm+emerge -C!

questo perche' emerge -C rimuove i file specificandoli uno a uno..
sicuramente rm -r dir e' + veloce :)

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Sep 04, 2004 1:56 pm    Post subject: Re: [help] sommergere (ancora!) il kernel Reply with quote

xchris wrote:
si ma l'operazione totale (emerge -C + rm) e' + lenta di rm+emerge -C!

questo perche' emerge -C rimuove i file specificandoli uno a uno..
sicuramente rm -r dir e' + veloce :)

ciao


ehmm... credevo di aver detto la stessa cosa :roll:

siccome rm -rf toglie tutti i file... prima, emerge -C fa "meno fatica" poi

Coda
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Sat Sep 04, 2004 1:56 pm    Post subject: Reply with quote

Io rimuovo cosi'
Code:
# rm /usr/src/KERNEL
# rm /lib/modules/KERNEL
# emerge -C KERNEL

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
motaboy
Developer
Developer


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Sep 04, 2004 2:08 pm    Post subject: Reply with quote

Quelli che ti restano sono i files creati da depmod, e la dir video sono probabilmente i driver proprietari dell'nvidia.
_________________
...
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Sep 04, 2004 2:10 pm    Post subject: Reply with quote

motaboy wrote:
Quelli che ti restano sono i files creati da depmod, e la dir video sono probabilmente i driver proprietari dell'nvidia.


si', l'immaginavo... quello che i chiedevo, era se si potessero rimuovere senza fallo, oppure se cio' potesse comportare problemi... anche solo di warning...

Coda
Back to top
View user's profile Send private message
motaboy
Developer
Developer


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Sep 04, 2004 2:19 pm    Post subject: Reply with quote

Sono stato un pó impreciso, quello che vedi é TUTTO il tree dei moduli, infatti l' "emerge kernelblablabla" ti ha installato SOLO i sorgenti e quindi ti disinstalla solo i files che lui ha installato.

Proprio per questo, puoi benissimi disinstallare l'ebuild e tenerti comunque il tuo kernel funzionante.

Inoltre visto che tu vuoi rimuoverlo, oltre ai moduli dovresti rimuovere anche il kernel sotto /boot (tanto senza moduli funzionerebbe abbastanza male...).
_________________
...
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sat Sep 04, 2004 2:32 pm    Post subject: Re: [help] sommergere (ancora!) il kernel Reply with quote

codadilupo wrote:

ehmm... credevo di aver detto la stessa cosa :roll:



si ahem...siamo d'accordo :)
ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Sep 04, 2004 2:42 pm    Post subject: Reply with quote

motaboy wrote:
Sono stato un pó impreciso, quello che vedi é TUTTO il tree dei moduli, infatti l' "emerge kernelblablabla" ti ha installato SOLO i sorgenti e quindi ti disinstalla solo i files che lui ha installato.

Proprio per questo, puoi benissimi disinstallare l'ebuild e tenerti comunque il tuo kernel funzionante.


ehmm... di quale ebuild parli ?

vediamo di fare un po' d'ordine ;-):

Code:
# qpkg -I -v kernel
# rm -rvf kernel_da_rimuovere
# rm -rvf /boot/kernel_da_rimuovere
# rm -rvf /lib/modules_kernel_tree_da_rimuovere
# emerge -C kernel_da_rimuovere


ci abbiamo capiti ;-) ?

Coda


Last edited by codadilupo on Sat Sep 04, 2004 2:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
motaboy
Developer
Developer


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Sep 04, 2004 2:46 pm    Post subject: Reply with quote

codadilupo wrote:
motaboy wrote:
Sono stato un pó impreciso, quello che vedi é TUTTO il tree dei moduli, infatti l' "emerge kernelblablabla" ti ha installato SOLO i sorgenti e quindi ti disinstalla solo i files che lui ha installato.

Proprio per questo, puoi benissimi disinstallare l'ebuild e tenerti comunque il tuo kernel funzionante.


ehmm... di quale ebuild parli ?


Parlo dell'ebuild del kernel che hai emerso.
Lui installa SOLO i sorgenti e ovviamente disinstalla solo quello che ha installato (=> sorgenti). questo da quello che avete scritto non sembrava che fosse chiaro.
Quindi quando dai "emerge -C kernelblablabla" TUTTI i moduli ed il kernel in /boot rimangono e puoi usarli benissimo.

Quote:

Code:

# rm -rvf /boot


ci abbiamo capiti ;-) ?


sicuro di volere cancellare tutta la directory di boot?
_________________
...


Last edited by motaboy on Sat Sep 04, 2004 2:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Sat Sep 04, 2004 2:47 pm    Post subject: Reply with quote

codadilupo wrote:
ehmm... di quale ebuild parli ?
di quello del kernel presumo[quote="codadilupo"]
vediamo di fare un po' d'ordine ;-):

Code:
... DON'T TRY THIS AT HOME!!
# rm -rvf /boot
...

8O 8O 8O 8O coda?

al max vai di
Code:
rm kernel-VERSIONEKERNEL initrd-VERSIONEKERNEL

_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)


Last edited by .:deadhead:. on Sat Sep 04, 2004 3:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Sep 04, 2004 2:50 pm    Post subject: Reply with quote

oops ! :roll:

corretto ;-)

P.S.: si', l'ebuild.. okey.. ma disinstallare l'ebuild mi suonava parecchio male... visto che l'ebuild é solo un minuscolo file di testo ;-)

Coda
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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