Linux内核错误 修复
环境介绍:Centos5.2+2.6.18-8.el5内核,编译器是GCC4.1.2。
要编译的内核2.6.18-8.el3
仅仅修改了部分内核的配置信息,没有大的变化。
然后:make ;make modules;make modules_install;
编译没有出问题,生成了内核,mkinitrd生成了initrd,加到lilo.conf中,重启选择新内核,出现一下问题:
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
Scanning and configuring dmraid supported devices
Trying to resume from LABEL=SWAP-hdc4
No suspend signature on swap, not resuming.
Creating root device.
Mounting root filesystem.
mount: could notKernel panic - not syncing: Attempted to kill init!
find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
两者区别就是编译器版本一个是gcc3.4,一个是gcc4.1,后者编译通过,但是不能引导系统。
解决方法:
Here's the fix
After almost giving up on Fedora 5, I finally got the fix to this problem.
The
suspend signature on swap error, "Trying to resume from
LABEL=SWAP-hdd3. No suspend signature on swap, not resuming", can be
ignored. It gives this error because when the volumes are activated
(look at the output previous to this error), it resumes the swap
partition in that step. Therefore, it's trying to resume something that
isn't suspended.
The error that causes all the trouble is
"mount: could not find filesystem '/dev/root'". Appartently, in the
init script within initrd-2.6.15-1.2054_FC5.img, the command 'mount
/sysroot' is trying to mount /dev/root to /sysroot. Fedora 5 does not
use /dev/root like in the previous versions of Fedora. Instead, it uses
'/dev/VolGroup00/LogVol00' or '/dev/hda1' (or wh
相关文档:
例一:发送Signaling Packet:
Signaling Command是2个Bluetooth实体之间的L2CAP层命令传输。所以得Signaling Command使用CID 0x0001.
多个Command可以在一个C-frame(control frame)中发送。
如果要直接发送Signaling Command.需要建立SOCK_RAW类型的L2CAP连接Socket。这样才有机会自己填充Command Code,Identi ......
1、Linux里查看所有用户
linux里,并没有像windows的net user,net localgroup这些方便的命令来治理用户.
Xwindows界面的就不说了.
(1)在终端里.其实只需要查看 /etc/passwd文件就行了.
(2)看第三个参数:500以上的,就是后面建的用户了.其它则为系统的用户.
或者用cat /etc/passwd |cut -f ......
一、安装
创建安装目录,在/usr/local/java下建立安装路径,并将文件考到该路径下:
# mkdir /usr/local/java
1、jdk-6u11-linux-i586.bin
这个是自解压的文件,在linux上安装如下:
# chmod 755 jdk-6u11-linux-i586.bin
# ./jdk-6u11-linux-i586.bin
在按提示输入yes后,jdk被解压。
......
LINUX下图形界面切换到文本模式
http://blog.chinaunix.net/u/3995/showart_115072.html
1.开机进入文本模式
如果想让开机自动进纯文本模式,
修改/etc/inittab
找到其中的
id:5:initdefault:
这行指示启动时的运行级是5,也就是图形模式
改成3就是文本模式了
id:3:initdefault:
这是因为Linux操作系统有六种 ......