View previous topic :: View next topic |
Author |
Message |
tipp98 Tux's lil' helper
Joined: 28 Jan 2007 Posts: 113
|
Posted: Sat Feb 23, 2008 11:59 pm Post subject: Why so many tty's & pty's? |
|
|
when I "ls /dev" about all I see are pty* ram* tty* vcs*. Sure I can pipe it to less, but then I loose columns & all the fancy colors. I have tty-ttyzf, same with my pty's. I am sure I don't need all of these but where do they come from and how can I get rid of them? |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Feb 24, 2008 1:00 am Post subject: |
|
|
That has to do with the kernel configuration. I'm guessing that you used genkernel to build your current running kernel. There are options in the configuration for including or excluding the old pseudo-ttys. If you check your kernel config "zcat /proc/config.gz | grep -i pty", you'll probably see that you have "CONFIG_LEGACY_PTYS=y". They don't hurt anything, so I wouldn't bother with it unless you just want to learn to manually configure your kernel.
Here is what my /dev looks like, just for comparison:
Code: | /home/daffy $ ls /dev
1 cdrom1 fd i2c loop1 nvidia0 ram14 root shm tty13 tty24 tty35 tty46 tty57 usb usbdev4.1_ep81 vcsa12
2 cdrw fd0 i2c-0 loop2 nvidiactl ram15 rtc snd tty14 tty25 tty36 tty47 tty58 usbdev1.1_ep00 vcs vcsa2
3 cdrw1 floppy i2c-1 loop3 port ram2 sda sound tty15 tty26 tty37 tty48 tty59 usbdev1.1_ep81 vcs1 vcsa3
4 console full i2c-2 loop4 ppp ram3 sda1 stderr tty16 tty27 tty38 tty49 tty6 usbdev2.1_ep00 vcs12 vcsa4
5 core hda i2c-3 loop5 ptmx ram4 sda10 stdin tty17 tty28 tty39 tty5 tty60 usbdev2.1_ep81 vcs2 vcsa5
6 disk hda1 initctl loop6 pts ram5 sda5 stdout tty18 tty29 tty4 tty50 tty61 usbdev2.2_ep00 vcs3 vcsa6
admmidi dmmidi hda2 input loop7 ram0 ram6 sda6 tty tty19 tty3 tty40 tty51 tty62 usbdev2.2_ep81 vcs4 vcsa7
adsp dsp hda3 kmem mem ram1 ram7 sda7 tty0 tty2 tty30 tty41 tty52 tty63 usbdev2.3_ep00 vcs5 zero
amidi dvd1 hda4 kmsg midi ram10 ram8 sda8 tty1 tty20 tty31 tty42 tty53 tty7 usbdev2.3_ep81 vcs6
audio dvdrw1 hdb log misc ram11 ram9 sda9 tty10 tty21 tty32 tty43 tty54 tty8 usbdev3.1_ep00 vcs7
bus fb hdc loop mixer ram12 random sequencer tty11 tty22 tty33 tty44 tty55 tty9 usbdev3.1_ep81 vcsa
cdrom fb0 hpet loop0 null ram13 rd sequencer2 tty12 tty23 tty34 tty45 tty56 urandom usbdev4.1_ep00 vcsa1
|
|
|
Back to top |
|
|
tipp98 Tux's lil' helper
Joined: 28 Jan 2007 Posts: 113
|
Posted: Tue Feb 26, 2008 3:44 am Post subject: |
|
|
Oh nice, thanks for pointing out that /proc/config.gz My pty's are gone and my tty's are down to 64 like your's I still think that's past overkill and toward clutter for a desktop system, but I didn't see any options in the kernel for this. At least not when searching for "tty" or "64". I also turned down my number of ram devices to 8.
And no, I am using gentoo-sources, amd64. I do have the habit of changing things that I don't fully understand the implications of but I don't imagine I would have enabled some legacy "BSD" option so I'm guessing it's in the stock config.
Thanks again! |
|
Back to top |
|
|
|