使用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 ......
周绪宏
http://zxuhong.blog.51cto.com/368977/74442
1.1 概述
世界标准时间(Coordinated Universal Time,UTC),也就是大家所熟知的格林威治标准时 间(Greenwich Mean Time,GMT)。世界各地时间也世界标准时间为基准划分为不同的时区,例如,中国的北京时间与UTC的时差为+8,也就是UTC+8。美国是UTC-5。
& ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
当今,不少
Linux
用户也使用其他操作系统,有时这样,有时那样,难于精确统计。证据何在?
5
月
7
日,
www.w3couter.com
网站发布每月统计数 ......
1.查看Linux系统当前单个共享内存段的最大值(命令)
ipcs -m
ipcs -a
2.用什么命令查询指定IP地址的服务器端口
题意应该是 nmap 和nbtscan 命令来扫吧。
3.crontab中用什么命令定义某个程序执行的优先级别
nice/renice:进程执行优先级
概念:
进程优先级:系统按进程优先级的不同分配CPU时间,优先级高的 ......