易截截图软件、单文件、免安装、纯绿色、仅160KB

使用linux访问hd.img文件

#!/bin/bash
#Key Words:linux0.11 bochs harddisk bash
#mount hdimg name:hdimage-devel
#mount point:/mnt/initrd
hdimg=hdimage-devel
mpoint=/mnt/initrd
if [ "$1" == "mount" ]
then
    #mount hdimg
    echo "$1 START"
    sudo losetup /dev/loop1 "$hdimg" && \
    sudo fdisk /dev/loop1 && \
    sudo losetup -d /dev/loop1 && \
    
    #Command (m for help): x
    #Expert command (m for help): p
    #Disk /dev/loop1: 16 heads, 38 sectors, 410 cylinders
    #Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
    # 1 00   0   3    0  15  38  203          2     124030 81
    # 2 00   0   1  204  15  38  407     124032     124032 81
    # 3 00   0   0    0   0   0    0          0          0 00
    # 4 00   0   0    0   0   0    0          0          0 00
    #2*512
    sudo losetup -o 1024 /dev/loop1
$hdimg
&& \
    sudo mount -t minix /dev/loop1 "$mpoint"
    echo "$1 END"
elif [ "$1" == "umount" ]
then
    #umount hdimg
    echo "$1 START"
  


相关文档:

Linux学习之——redhat5中文乱码问题解决

前些天在自己的本本上装了虚拟机,并安装了redhat5,一切搞定之后发现打开中文网页不能正常显示。启初以为是系统编码问题,可更改了系统编码后问题依然存在,而且系统的文字也变成乱码。看来不是简单的缺省编码问题,一定是系统没有中文包的原因。于是乎跑到网上搜寻中文包地址,发现redhat5光盘中带有这些包。好了,废话不 ......

Linux模块编程


摘要
Linux内核模块编程的资料有些纷繁复杂,有的过于简单,有的过于庞杂,我试图用笔记的形式想读者展示怎样来进程Linux模块编程,力图做到简明扼要,这篇文章也是作为本人备忘的资料,所以有些地方过于简略是难免的。本来这篇文章的目的就是让用户知其然,至于所以然还是请参考相应的资料,其实最好的资料莫过于Linux ......

linux安装mysql

1、安装包
下载网址:http://dev.mysql.com/downloads/mysql/
mysql-5.1.38.tar.gz(版本:5.1.38)
2、添加mysql用户与群
groupadd mysql
useradd -g mysql -s /sbin/nologin mysql
3、解压与编译
tar zxvf mysql-5.1.38.tar.gz
cd mysql-5.1.38/
./configure --prefix=/usr/local/mysql/ --enable-assembler --w ......

LINUX安装网卡驱动时提示找不到.autoconf.h

在fc8的dom0上安装e1000e网卡驱动
#make
#Linux kernel source not configured: missing autoconf.h
解决方法:
在编译xen时未使用make config
此时可以找到源码,其中包含.config文件,运行make oldconfig即可生成autoconf.h
从而可以成功编译安装内核。 ......

Linux中Bash环境变量的设定顺序

和Bash的环境设定有关的文件有
/etc/profile (主要)
$HOME/.bash_profile (主要)
$HOME/.bash_login
$HOME/.profile
$HOME/.bash_logout (主要)
$HOME/.bashrc (主要)
/etc/bashrc
说明如下:
登入(login)时
先执行 /etc/profile
接着bash会检查使用者的自家目录中,是否有 .bash_profile 或者 .bash_login或者 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号