LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1446|回复: 8

/dev 什么时候产生的

[复制链接]
发表于 2007-7-7 08:58:40 | 显示全部楼层 |阅读模式
/dev 是在什么时候产生的,我的/dev下没有硬盘hd..之类的,在grub里,找不到/root
 楼主| 发表于 2007-7-7 09:09:58 | 显示全部楼层

/dev 下的设备文件是怎么生成的

/dev 下的设备文件是怎么生成的
/dev 下的设备文件是怎么生成的
回复 支持 反对

使用道具 举报

发表于 2007-7-7 17:41:56 | 显示全部楼层
由 udev 生成
回复 支持 反对

使用道具 举报

发表于 2007-7-7 17:43:55 | 显示全部楼层
现在新一代的系统都是由内核呼唤 udev 生成,没有 hd..之类,可有 sd..之类?
回复 支持 反对

使用道具 举报

发表于 2007-7-8 14:39:16 | 显示全部楼层
也没有,本来想用LFS LIVECD 6.2 的直接装到硬盘上,现在grub 找不到硬盘,只好放弃了,从最原始的做起
回复 支持 反对

使用道具 举报

发表于 2007-7-8 14:39:58 | 显示全部楼层
请勿轻易拨打消息中的陌生电话,防止话费损失。

★塵~風★(17814294) 14:46:32
mkdir -v ../binutils-build
cd ../binutils-build
../binutils-2.16.1/configure --prefix=/tools --disable-nls
make
make -C ld clean
make -C ld LIB_PATH=/tools/lib
都正常
cp -v ld/ld-new /tools/bin
说ld/ld-new 没有这个文件
然后继续编译 安装 GCC
mkdir -v ../gcc-build
cd ../gcc-build
../gcc-4.0.3/configure --prefix=/tools \
    --with-local-prefix=/tools --disable-nls --enable-shared \
    --enable-languages=c
出现:
lfs:/mnt/lfs/sources/gcc-build$ ../gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-language=c

loading cache ./config.cache

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c

checking whether ln works... yes

checking whether ln -s works... yes

checking for gcc... gcc

checking whether the C compiler (gcc  ) works... no

configure: error: installation or configuration problem: C compiler cannot create executables.
请问这是怎么回事?
回复 支持 反对

使用道具 举报

发表于 2007-7-9 13:26:00 | 显示全部楼层
宿主Linux没装gcc?
回复 支持 反对

使用道具 举报

发表于 2007-7-9 17:02:19 | 显示全部楼层
Post by xcrdjn
/dev 是在什么时候产生的,我的/dev下没有硬盘hd..之类的,在grub里,找不到/root


/etc/rc.d/rcsysinit.d/S10udev

看看这个
回复 支持 反对

使用道具 举报

发表于 2007-7-10 23:32:32 | 显示全部楼层
Post by x_crdjn
请勿轻易拨打消息中的陌生电话,防止话费损失。

★塵~風★(17814294) 14:46:32
mkdir -v ../binutils-build
cd ../binutils-build
../binutils-2.16.1/configure --prefix=/tools --disable-nls
make
make -C ld clean
make -C ld LIB_PATH=/tools/lib
都正常
cp -v ld/ld-new /tools/bin
说ld/ld-new 没有这个文件
然后继续编译 安装 GCC
mkdir -v ../gcc-build
cd ../gcc-build
../gcc-4.0.3/configure --prefix=/tools \
    --with-local-prefix=/tools --disable-nls --enable-shared \
    --enable-languages=c
出现:
lfs:/mnt/lfs/sources/gcc-build$ ../gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-language=c

loading cache ./config.cache

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c

checking whether ln works... yes

checking whether ln -s works... yes

checking for gcc... gcc

checking whether the C compiler (gcc  ) works... no

configure: error: installation or configuration problem: C compiler cannot create executables.
请问这是怎么回事?



我也碰到过这个问题 后来好象是因没有创建cc到gcc的软连接造成的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表