Skip to content

Linux - 3. page

Linux:修改显示分辨率

更改/etc/X11/xorg.conf的内容。找到下面这段关于分辨率:
Section "Screen"
       Identifier "Screen0"
       Device     "Videocard0"
       Monitor "Monitor0"
       DefaultDepth     16
       SubSection "Display"
            Viewport 0 0
            Depth     16
            Modes "800×600" 

       EndSubSection
EndSection

Linux:系统检测坏块的方式:badblocks

MONITOR_SERVER@/root> badblocks -help
Usage: badblocks [-b block_size] [-i input_file] [-o output_file] [-svwnf]
[-c blocks_at_once] [-p num_passes] [-t test_pattern [-t test_pattern […]]]
device [last_block [start_block]]

MONITOR_SERVER@/root> badblocks -s -v /dev/sda1
Checking blocks 0 to 104391
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.

Linux:误删除/etc/inittab的解决办法

由于删除oracle cluster sofeware时候误删除了inittab文件

在系统重启时候报错,提示找不到启动模式,找不到inittab

———————————————————–

这时候可以进去rescue模式补救

我这里的经过是这样的:

插入安装光盘,修改cdrom为第一启动模式,

进入到安装界面,输入 linux recsue

在配置网卡那段可以跳过,直接进去到补救模式的系统

这时候挂在原有系统

chroot /mnt/sysimage

挂载完之后

启动网络服务和telnet服务

service network start

service xinetd start

然后 telnet进来

vi  /etc/inittab
把别的机子上的inittab复制过来,保存

重启,机子