使用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"
相关文档:
>1. 机器启动后,在到蓝色屏幕的界面的时候,按上下键选择。
>2. 在选择的时候选择后面带有ELSMP的这一行,按E键,千万不要按回车
>3. 然后在选择带有kernel开头的这一行,按E键,不要按回车。
>4. &n ......
我用的是ubuntu操作系统。打开终端
1.sudo apt-get install vim(vim-full 这个软件自9.10版本被废弃了,不论怎么添加软件源都找不到的,所以直接安装vim就可以了,,也可以安装gvim,,在新立得软件里面搜索vim就可以找到了)
2.
sudo apt-get install build-essential // build-essential是c语言的开发包,包含了gcc ma ......
一、
1、备份
使用root帐户备份。
[root@fedora /]# tar -zcvpf
/backup/fedora10_backup/20090301backup.tar.gz / --exclude=misc
--exclude=sys --exclude=proc --exclude=data --exclude=home
--exclude=files --exclude=backup --exclude=tmp --exclude=var
tar -zcvpf &nbs ......
宿主机:Windows XP Professinoal SP2
VMware:Red Hat Linux 9
网络:ADSL局域网512M
所用软件:
VMware-workstation-6.0.0-45731.exe
Red Hat Linux 9
安装过程:
1.安装VMware-workstation-6.0.0-45731.exe
2.开启VMware.安装Linux.
安装时可直接用硬盘iso文件.
VMware=>VM=>Settings=> ......
1.查看Linux系统当前单个共享内存段的最大值(命令)
ipcs -m
ipcs -a
2.用什么命令查询指定IP地址的服务器端口
题意应该是 nmap 和nbtscan 命令来扫吧。
3.crontab中用什么命令定义某个程序执行的优先级别
nice/renice:进程执行优先级
概念:
进程优先级:系统按进程优先级的不同分配CPU时间,优先级高的 ......