Gentoo post installation questions

Pagina: 1
Acties:

  • RickN
  • Registratie: December 2001
  • Laatst online: 14-06-2025
Ik heb deze vragen gepost op het Gentoo forum, maar na 50 views is er nog niemand die ze heeft (kunnen) beantwoorden. Hier zitten denk ik voornamelijk mensen met al aardig wat ervaring met Linux dus probeer ik het hier ook maar. De vragen zijn eigenlijk niet echt Gentoo specifiek, dus als iemand me ermee kan helpen, graag. De vragen zijn in het Engels omdat ik geen zin had om ze weer te vertalen ;)
Van het Gentoo Forum:
I got Gentoo running now and so far it's going great. But before I go on to installing other packages I would like to get some questions I have cleared up. I'll just post them here and I would appreciate any answers you guys can give me.

1. The first time I compiled the kernel it didn't boot correctly because I disabled tmpfs support. Now that I enabled it, everything works fine, but now the following appears in my mount output:

tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644,size=1024k)
tmpfs on /dev/shm type tmpfs (rw)

The second one I understand, it's in my fstab, but what does the first one do there?

2. Why are there a miljon things in my /dev. In particular why are there so many pty* and tty* entries?

3. I noticed that when compiling the kernel gcc uses different options that the ones I put in make.conf. For example it is only using -O2 eventhough I put -O3 in my make.conf. Why? Is it because kernel compilation is special in that it requires certain options and won't work with to much optimization?

4. Modules. What to make a module? Everything except for some bare neccesities? Soundcard? Parallel port? Serial port? Things like that. Are modules autoloaded when needed? For example: I don't want to manualy have to load a bunch of modules if I want to listen to a mp3, do I have to compile soundcard support in the kernel then?

5. What does fstab do? What should I put in there? Should I put cdrom locations in there? What is the use of putting something in fstab if you specify the noauto option?

6. Where did all my discspace go? I installed a base system with no extra's (yet) and I am already over 1 gig! Are there a bunch of sources I can get rid of or something? I wouldn't think that what I have now requires more that 200 MB, where did the rest go?

Well, that's it, for now ;) Any help is greatly appriciated.

He who knows only his own side of the case knows little of that.


  • odysseus
  • Registratie: Augustus 2000
  • Laatst online: 21:46

odysseus

Debian GNU/Linux Sid

2. Why are there a miljon things in my /dev. In particular why are there so many pty* and tty* entries?
Ik weet niet hoeveel het er zijn, maar standaard zijn het er ongeveer 1500. Dat komt omdat er voor elk mogelijk device een entry in /dev wordt aangemaakt. Je kunt dat voorkomen door gebruik te maken van DevFS, dat gebruikt directories om alles in op te bergen zoals /dev/ide/0/iets/nog_iets/.
3. I noticed that when compiling the kernel gcc uses different options that the ones I put in make.conf. For example it is only using -O2 eventhough I put -O3 in my make.conf. Why? Is it because kernel compilation is special in that it requires certain options and won't work with to much optimization?
De kernel kan daar inderdaad niet goed tegen, ik gok dat er daarom aan de standaardopties wordt vastgehouden. Je zult waarschijnlijk ook nauwelijks voordeel halen bij een kernel die met -O3 wordt gecompileerd.
4. Modules. What to make a module? Everything except for some bare neccesities? Soundcard? Parallel port? Serial port? Things like that. Are modules autoloaded when needed? For example: I don't want to manualy have to load a bunch of modules if I want to listen to a mp3, do I have to compile soundcard support in the kernel then?
In principe moet je alleen de dingen die echt nodig zijn om te booten (filesystem-ondersteuning etc.) in je kernel bouwen, de rest als module. Deze kunnen inderdaad automatisch geladen worden, zie daarvoor het tweede (uit mijn hoofd) scherm bij make {menu,x}config.
5. What does fstab do? What should I put in there? Should I put cdrom locations in there? What is the use of putting something in fstab if you specify the noauto option?
Daarin geef je aan welke partities je hebt. Deze kunnen dan bij het booten gemount worden, tenzij je de optie noauto erbij geeft. In dat geval is er nog steeds een voordeel: je kunt gewoon iets draaien als 'mount /floppy' in plaats van 'mount -t vfat /dev/fd0 /floppy'. De opties die je dan wilt hebben kunnen namelijk uit je /etc/fstab worden gehaald.
6. Where did all my discspace go? I installed a base system with no extra's (yet) and I am already over 1 gig! Are there a bunch of sources I can get rid of or something? I wouldn't think that what I have now requires more that 200 MB, where did the rest go?
Bij gebrek aan ervaring met Gentoo kan ik niet vertellen of er inderdaad nog sources staan, maar het lijkt me waarschijnlijk. Je kunt eens zoeken naar grote directories met commando's als 'du -h --max-depth=1 /'.

Leven is het meervoud van lef | In order to make an apple pie from scratch, you must first create the universe.


Verwijderd

/var/tmp/portage
^^ waarschijnlijk zijn je sources niet verwijderd na het compilen?

/usr/portage/distfiles
^^ hier staan de sources die gedownload zijn tijdens de installatie. Kun je in principe weggooien, alleen gaat ie ze opnieuw binnenhalen als ze weer nodig zijn :)

/usr/portage/packages
^^ als je er eventueel voor gekozen hebt om pakketten te maken van de ports die je installed.

  • RickN
  • Registratie: December 2001
  • Laatst online: 14-06-2025
Bedankt, dit heeft al aardig geholpen.
Op donderdag 02 mei 2002 10:05 schreef odysseus het volgende:

[..]

Ik weet niet hoeveel het er zijn, maar standaard zijn het er ongeveer 1500. Dat komt omdat er voor elk mogelijk device een entry in /dev wordt aangemaakt. Je kunt dat voorkomen door gebruik te maken van DevFS, dat gebruikt directories om alles in op te bergen zoals /dev/ide/0/iets/nog_iets/.
[..]
Ik heb devfs gecompileerd in m'n kernel en ook wordt ie automatisch geboot. Maar er staan nog steeds een hele hoop van die tty en pty entries. Ze staan me niet in de weg hoor, ik vraag me alleen af wat het zijn.

He who knows only his own side of the case knows little of that.


  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

Op donderdag 02 mei 2002 10:17 schreef RickN het volgende:
Ik heb devfs gecompileerd in m'n kernel en ook wordt ie automatisch geboot. Maar er staan nog steeds een hele hoop van die tty en pty entries. Ze staan me niet in de weg hoor, ik vraag me alleen af wat het zijn.
Voor elke login-mogelijk wordt een terminal gemaakt. En aangezien standaard er iig 256 loginopties zijn, zal devfs er ook 256 aanmaken... ;)