+ -
当前位置:首页 → 问答吧 → 求救!关于debian下面创建/dev/shm设备的问题

求救!关于debian下面创建/dev/shm设备的问题

时间:2004-06-17

来源:互联网

在dell6650下面安装debian后,默认没有安装/dev/shm,但是安装完oracle9i之后,sqlplus时候却要求要/dev/shm设备,怎么把它弄出来?谢谢

作者: nooryes   发布时间: 2004-06-17

谁说没有?
引用:
df | grep tmpfs
tmpfs 30848 0 30848 0% /dev/shm

作者: faint   发布时间: 2004-06-18

看看/etc/init.d/mountvirtfs这个脚本


# Mount tmpfs.
#
# Around kernel version 2.3.3x, a memory based filesystem was
# introduced to support POSIX shared memory, called shmfs.
# Later this filesystem was extended for general usage -
# provided you set the CONFIG_TMPFS compile option and mount
# it as type tmpfs.
#
# Early in the 2.4 kernel series, shmfs was renamed to tmpfs, but
# you could mount it using both type shmfs and tmpfs. Starting
# at kernel version 2.5.44, the shmfs alias was dropped.
#
# Confusingly, in kernels 2.3.x - 2.5.43 where both shmfs and
# tmpfs are present, disabling CONFIG_TMPFS actually removes
# support for shmfs, but tmpfs is still listed in /proc/filesystems
# to support SYSV and POSIX shared memory, and it should still be
# mounted under /dev/shm.
#
# Recommendation: always enable CONFIG_TMPFS and always mount
# using the tmpfs type. Forget about shmfs.
#
# Tmpfs can be used as memory filesystem, so you can limit tmpfs
# max size using /etc/default/tmpfs to prevent tmpfs from using
# up all system memory.
#

作者: faint   发布时间: 2004-06-18

我这边真的是没有啊,怎么添加该设备

作者: nooryes   发布时间: 2004-06-18

[RFC] Documentation/filesystems/tmpfs

http://www.iglu.org.il/lxr/source/Do...mpfs.txt?a=ppc

你apt-get upgrade没有?一般upgrade都会自动产生的。

man mknod 或man mkfs

作者: faint   发布时间: 2004-06-18

重新编译内核,选上 shm 模块。

作者: quanliking   发布时间: 2004-06-18

我的debian默认就是有了shm的,楼主试一试modprob,安装上tmpfs模块或者类似的模块试一试。

作者: yiqingfeng0215   发布时间: 2004-06-18

我在/etc/fstab中还有一行none /dev/shm tmpfs defaults 0 0

作者: yiqingfeng0215   发布时间: 2004-06-18

modprobe找不到相应模块,是不是一定要重新编译内核?

作者: nooryes   发布时间: 2004-06-18

编译新内核之后,dpkg -i kernel-image的时候出现错误,
aic7xxx,megaraid,sd_mod这些模块找不到,但是我已经直接编译
进内核了阿。怎么还会有这个问题?
我的系统是dell poweredge 6650。cpu:4X至强2G 硬盘:3个昆腾scsi15000
(75G)硬盘,做成raid3,成为sda(140G) 内存: DDR 4G
我目前编译的内核是2.6.5版本。

作者: nooryes   发布时间: 2004-06-19

你进到/dev运行./MAKEDEV试试看

作者: guccio   发布时间: 2004-06-20

试过了,觉得应该就是内核没有把tmpfs文件格式编译进去的关系,问题是我
编译的时候没有出问题,在dpkg -i kernel-img时候老是提示aicxxx,megaraid,sd模块出问题,说找不到,可我已经都把他们编译进内核了阿,
用make bzImage,make modules,make modules_install 方法是可以编译成功,
我也生成initrd了,可是进系统时候提示VFS 什么在unknown(8,7)找不到root
,或者不支持这个格式之类的话。我的所有分区都是reiserfs,但是有把reiserfs编译进内核。

会是什么原因呢?

作者: nooryes   发布时间: 2004-06-20

为什么有官方的内核不你用,反而要臫编译??等自己熟悉后再裸编译内核:-)

作者: faint   发布时间: 2004-06-20

热门下载

更多