LINUX.ORG.RU

[gentoo] куда делася /dev/ ? 0_o

 


0

0

собственно сабж
странно гентачка себя ведет
содержимое /dev/

ls /dev
agpgart          network_latency     tty1   tty28  tty46  tty7     vcs8
autofs           network_throughput  tty10  tty29  tty47  tty8     vcs9
bsg              null                tty11  tty3   tty48  tty9     vcsa
char             nvram               tty12  tty30  tty49  ttyS0    vcsa1
console          oldmem              tty13  tty31  tty5   ttyS1    vcsa10
core             port                tty14  tty32  tty50  ttyS2    vcsa11
cpu              ptmx                tty15  tty33  tty51  ttyS3    vcsa12
cpu_dma_latency  pts                 tty16  tty34  tty52  urandom  vcsa2
fd               random              tty17  tty35  tty53  usbmon0  vcsa3
full             rtc0                tty18  tty36  tty54  vcs      vcsa4
fuse             sequencer           tty19  tty37  tty55  vcs1     vcsa5
gpmctl           sequencer2          tty2   tty38  tty56  vcs10    vcsa6
hpet             sg0                 tty20  tty39  tty57  vcs11    vcsa7
initctl          shm                 tty21  tty4   tty58  vcs12    vcsa8
input            snd                 tty22  tty40  tty59  vcs2     vcsa9
kmem             stderr              tty23  tty41  tty6   vcs3     vga_arbiter
kmsg             stdin               tty24  tty42  tty60  vcs4     zero
log              stdout              tty25  tty43  tty61  vcs5
mcelog           tty                 tty26  tty44  tty62  vcs6
mem              tty0                tty27  tty45  tty63  vcs7



mount
kam ~ # mount
rootfs on / type rootfs (rw)
/dev/sda1 on / type ext3 (rw,relatime,errors=continue,data=writeback)
proc on /proc type proc (rw,relatime)
rc-svcdir on /lib/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)

странно то что нету даже /dev/sda*
но система работает исправно, лиж, только примантировать ничего не могу, даже своп...а все остально хорошо, даже иксы с дровами nvidia бегают...и сеть


в чем прикол, и как вернуть /dev/?

★★

Ответ на: комментарий от Sylvia

[code]
uname -a
Linux kam.home.decanet.ru 2.6.33-gentoo-kam-0.1 #2 SMP Tue Mar 23 19:14:33 MSK 2010 i686 Intel(R) Celeron(R) CPU 420 @ 1.60GHz GenuineIntel GNU/Linux

sys-fs/udev-151-r1 USE=«devfs-compat extras old-hd-rules (-selinux) -test»


dmesg |grep udev
[ 10.871053] udev: starting version 151


[/code]

kam ★★
() автор топика
Ответ на: комментарий от Sylvia
kam ~ # /etc/init.d/udev restart
 * WARNING: you are stopping a sysinit service
 * Stopping udevd ...                                                     [ ok ]
 * Starting udevd ...                                                     [ ok ]
 * Populating /dev with existing devices through uevents ...              [ ok ]
 * Waiting for uevents to be processed ...                                [ ok ]
 * Device initiated services: net.eth0
kam ~ # ls /dev/
agpgart          network_latency     tty1   tty28  tty46  tty7     vcs8
autofs           network_throughput  tty10  tty29  tty47  tty8     vcs9
bsg              null                tty11  tty3   tty48  tty9     vcsa
char             nvram               tty12  tty30  tty49  ttyS0    vcsa1
console          oldmem              tty13  tty31  tty5   ttyS1    vcsa10
core             port                tty14  tty32  tty50  ttyS2    vcsa11
cpu              ptmx                tty15  tty33  tty51  ttyS3    vcsa12
cpu_dma_latency  pts                 tty16  tty34  tty52  urandom  vcsa2
fd               random              tty17  tty35  tty53  usbmon0  vcsa3
full             rtc0                tty18  tty36  tty54  vcs      vcsa4
fuse             sequencer           tty19  tty37  tty55  vcs1     vcsa5
gpmctl           sequencer2          tty2   tty38  tty56  vcs10    vcsa6
hpet             sg0                 tty20  tty39  tty57  vcs11    vcsa7
initctl          shm                 tty21  tty4   tty58  vcs12    vcsa8
input            snd                 tty22  tty40  tty59  vcs2     vcsa9
kmem             stderr              tty23  tty41  tty6   vcs3     vga_arbiter
kmsg             stdin               tty24  tty42  tty60  vcs4     zero
log              stdout              tty25  tty43  tty61  vcs5
mcelog           tty                 tty26  tty44  tty62  vcs6
mem              tty0                tty27  tty45  tty63  vcs7
kam ~ #

как видишь, ничего

kam ★★
() автор топика
Ответ на: комментарий от anonymous

1. makedev нету команды
2. неверю анонимусам
3. а где остальные устройства? кроме sda? там есть еще sdb,sdc, и тд...

kam ★★
() автор топика
Ответ на: комментарий от kam

сейчас будете смеяться

sylvia@allure:/dev$ ls
audio            hpet                ram10   sda         tty10  tty3   tty49  ttyS1      vcsa
audio1           initctl             ram11   sda1        tty11  tty30  tty5   ttyS2      vcsa1
block            input               ram12   sda2        tty12  tty31  tty50  ttyS3      vcsa10                 
bus              kmsg                ram13   sda3        tty13  tty32  tty51  urandom    vcsa11                 
cdrom            log                 ram14   sda5        tty14  tty33  tty52  usbdev1.1  vcsa12                 
cdrw             mcelog              ram15   sda6        tty15  tty34  tty53  usbdev2.1  vcsa2                  
char             mem                 ram2    sda7        tty16  tty35  tty54  usbdev3.1  vcsa3                  
console          mixer               ram3    sda8        tty17  tty36  tty55  usbdev3.2  vcsa4                  
core             mixer1              ram4    sequencer   tty18  tty37  tty56  vcs        vcsa5                  
cpu_dma_latency  mmcblk0             ram5    sequencer2  tty19  tty38  tty57  vcs1       vcsa6                  
disk             mmcblk0p1           ram6    sg0         tty2   tty39  tty58  vcs10      vcsa7                  
dri              network_latency     ram7    sg1         tty20  tty4   tty59  vcs11      vcsa8                  
dsp              network_throughput  ram8    shm         tty21  tty40  tty6   vcs12      vcsa9
dsp1             null                ram9    snd         tty22  tty41  tty60  vcs2       vga_arbiter
dvd              parport0            random  sr0         tty23  tty42  tty61  vcs3       zero
fb0              port                rd      stderr      tty24  tty43  tty62  vcs4
fd               psaux               rfkill  stdin       tty25  tty44  tty63  vcs5
full             ptmx                root    stdout      tty26  tty45  tty7   vcs6
fuse             pts                 rtc     tty         tty27  tty46  tty8   vcs7
gpmctl           ram0                rtc0    tty0        tty28  tty47  tty9   vcs8
hidraw0          ram1                scd0    tty1        tty29  tty48  ttyS0  vcs9

Sylvia ★★★★★
()
Ответ на: комментарий от kam

initrd есть?
драйвера на контроллер и диск в initrd или монолитно?

вообще в качестве временного решения можно использовать mknod
для нужных устройств, хотя это решение 10-ти летней давности, еще когда devfs не было даже

Sylvia ★★★★★
()
Ответ на: комментарий от Sylvia

да, инитрд есть, ядро собирал через genkernel
контроллер и тд монолитно

kam ★★
() автор топика
[root@valdos-desk dev]# ls
adsp                parport0    tty    tty46    vcs21  vcs6    vcsa4
audio               port        tty0   tty47    vcs22  vcs60   vcsa40
block               ppp         tty1   tty48    vcs23  vcs61   vcsa41
bsg                 psaux       tty10  tty49    vcs24  vcs62   vcsa42
bus                 ptmx        tty11  tty5     vcs25  vcs63   vcsa43
cd                  pts         tty12  tty50    vcs26  vcs7    vcsa44
cdrom               random      tty13  tty51    vcs27  vcs8    vcsa45
cdrom0              root        tty14  tty52    vcs28  vcs9    vcsa46
cdrw                rtc         tty15  tty53    vcs29  vcsa    vcsa47
cdrw0               rtc0        tty16  tty54    vcs3   vcsa1   vcsa48
char                scd0        tty17  tty55    vcs30  vcsa10  vcsa49
console             sda         tty18  tty56    vcs31  vcsa11  vcsa5
core                sda1        tty19  tty57    vcs32  vcsa12  vcsa50
cpu_dma_latency     sda10       tty2   tty58    vcs33  vcsa13  vcsa51
disk                sda2        tty20  tty59    vcs34  vcsa14  vcsa52
dsp                 sda4        tty21  tty6     vcs35  vcsa15  vcsa53
dvd                 sda5        tty22  tty60    vcs36  vcsa16  vcsa54
dvd0                sda6        tty23  tty61    vcs37  vcsa17  vcsa55
dvdrw               sda7        tty24  tty62    vcs38  vcsa18  vcsa56
dvdrw0              sda8        tty25  tty63    vcs39  vcsa19  vcsa57
fb0                 sda9        tty26  tty7     vcs4   vcsa2   vcsa58
fd                  sdb         tty27  tty8     vcs40  vcsa20  vcsa59
full                sdc         tty28  tty9     vcs41  vcsa21  vcsa6
fuse                sdd         tty29  ttyS0    vcs42  vcsa22  vcsa60
gpmctl              sde         tty3   ttyS1    vcs43  vcsa23  vcsa61
hidraw0             sdf         tty30  ttyS2    vcs44  vcsa24  vcsa62
initctl             sequencer   tty31  ttyS3    vcs45  vcsa25  vcsa63
input               sequencer2  tty32  urandom  vcs46  vcsa26  vcsa7
kmem                sg0         tty33  vcs      vcs47  vcsa27  vcsa8
kmsg                sg1         tty34  vcs1     vcs48  vcsa28  vcsa9
log                 sg2         tty35  vcs10    vcs49  vcsa29  vga_arbiter
loop0               sg3         tty36  vcs11    vcs5   vcsa3   vmci
lp0                 sg4         tty37  vcs12    vcs50  vcsa30  vmmon
mcelog              sg5         tty38  vcs13    vcs51  vcsa31  vmnet0
mem                 sg6         tty39  vcs14    vcs52  vcsa32  vmnet1
mixer               shm         tty4   vcs15    vcs53  vcsa33  vmnet8
net                 snapshot    tty40  vcs16    vcs54  vcsa34  vsock
network_latency     snd         tty41  vcs17    vcs55  vcsa35  zero
network_throughput  sr0         tty42  vcs18    vcs56  vcsa36
null                stderr      tty43  vcs19    vcs57  vcsa37
nvidia0             stdin       tty44  vcs2     vcs58  vcsa38
nvidiactl           stdout      tty45  vcs20    vcs59  vcsa39
[root@valdos-desk dev]# uname -a
Linux valdos-desk 2.6.32-ARCH #1 SMP PREEMPT Mon Mar 15 20:44:03 CET 2010 x86_64 AMD Athlon(tm) 64 Processor 3800+ AuthenticAMD GNU/Linux
[root@valdos-desk dev]# dmesg | grep udev
udev: starting version 151
[root@valdos-desk dev]# yaourt -Q udev
==> List all installed packages
core/udev 151-3
[root@valdos-desk dev]# 

размышляйте..

DoctorSinus ★★★★★
()
Ответ на: комментарий от kam

нет, пока не знаю, да, наверное в ядре,
udev и его скрипты Вы сейчас переставили, т.е, в скриптах все в порядке должно бы быть.

Sylvia ★★★★★
()

работает нормально

[ebuild R ] sys-fs/udev-151-r1 USE=«devfs-compat extras old-hd-rules (-selinux) -test» 0 kB

ezoteric
()
Ответ на: комментарий от Sylvia

ну вообщем. проблема решена
раньше что то не замечал при пересборе юдева предупреждения по поводу
* CONFIG_SYSFS_DEPRECATED: should not be set. But it is.
* CONFIG_SYSFS_DEPRECATED_V2: should not be set. But it is.
залез в ведро, отключил их =) пересобрал, потом пересобрал юдев, и все окей =)

задача решена, ссзб =)

kam ★★
() автор топика
Ответ на: комментарий от kam

оно ж и в dmesg пишет ) что несовместимость есть

Sylvia ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.