今天在一个80G上的硬盘重新分区并用ghost镜像光盘安装windows xp sp2。碰到两个问题,记在这里交流。一个问题是:DOS自带的分区程序fdisk不能识别大硬盘;二是安装系统后用pqmagic8.0中文版无法成功一次执行完所有的分区任务;
过程如下:
1、首先在DOS状态下用fdisk删除所有原分区;
2、在DOS下用fdisk创建分区时发现fdisk不能正确的识别这个80G的硬盘,只认成了9个多G的硬盘,创建主DOS分区是把认出的“9个多G”的空间全部划给它。重启后格式化C盘用了20分钟左右,格式化完成后,系统识别出了C盘的容量为约74个G。也就是一个分区把全部硬盘的容量占完了;
3、用ghost镜像光盘安装完windows xp sp2,是ntfs格式;
4、下载pqmagic8.0中文版,安装在windows xp sp2上(pqmagic8.0中文版可以支持ntfs格式),用pqmagic8.0定好分区系列任务后,选择应用,系统重启,执行pqmagic任务失败,进入系统后仍然只有一个分区;
5、用pqmagic8.0制定一个分区任务后,即选择应用执行,(如:第一个分区任务是调整C盘的分区容量),重启系统后再用pqmagic制定执行另一个任务,终于按计划完成分区。
6、用ghost镜像备份系统盘。完成。
PS:如果有DOS下的支持大硬盘的分区程序在执行安装前完成分区,速度就可以快点,如果你碰巧手边没有这种分区软件,恐怕也只有这样了。
月份:2006年9月
错误678:远程计算机没反应。
我是铁通上网,这段时间(尤其是晚上)常常不能adsl拨号连接,问了铁通的服务人员,说是我的网卡可能不稳定,还问我adsl上的LINK灯是不是亮着的,如果是亮着的,就是他们把信号送到了用户,问题在用户这方面。我对这方面的知识是一点都没有,也就不能提出什么不同的意见来。不过,(也许是巧合),有几次网络联不上发生在我在计算机上用usb接口给手机充电后。也许跟手机充电有关?但又觉得可能性不大,以前就是这样给手机充电的都没有事。又查了一下网上的论坛,在铁通的本地门户的论坛上也有朋友提出类似的问题,有的回答是adsl的model有毛病,有的说网络有问题。还是没有确切的答案。问题的屏幕截图如下:
1、
2、
3、
9.2. Manipulating Strings
9.2. Manipulating Strings
1、String Length
expr "$string" : '.*'
3、Index这个表达式跟java的用法好像不同
expr index $string $substring
Numerical position in $string of first character in $substring that matches.
|
4?{string:position:length}负数参数的用法有点怪
Extracts $length characters of substring from $string at $position.
|
而且下面这段不懂:
|
5、Example 9-12. Emulating getopt其中的字符串处理不甚明了
|
6、awk处理函数不懂
|
7、9.2.2. Further Discussion进一步讨论的几个例子没看
英语疑问:
1、emulation, getopt
A simple emulation of getopt using substring extraction constructs.
数月来孩子的第一次生病
按以前的情况同期比较,孩子的健康状态算相当不错了。
这是入秋以来的第一次生病,主要是咳嗽和鼻塞。昨天到人民医院去看了一下,吃了一次药后,今天早上看来效果不错。
春秋两季是细菌的活跃期,穿衣又不好掌握,人容易生病。我们单位和周围有不少人都感冒了。
今天中午要把孩子从幼儿园里接回来吃饭和吃药。
孩子在新的幼儿园里好像还很受老师的喜爱。值得高兴。我们给孩子报名参加了美术兴趣小组。本来要报舞蹈小组的,不过名额已经满了。
add-ons
查询关键词:add ons
查询结果:
Add-ons
附件,附加,附加软件
属类:【简明英汉词典】-〖简明词典〗-[]
**********************************************************************
add-ons
附[追]加系统[软件(包)]
属类:【IT行业 】-〖电脑术语〗-[]
**********************************************************************
add ons
附加元件
属类:【工程技术 】-〖电子工程〗-[]
**********************************************************************
installing browser add-ons
[计]设置浏览器附加程序
属类:【简明英汉词典】-〖简明词典〗-[]
**********************************************************************
Sound cards are the add-ons that provide stereo sound in personal computers
声卡是为个人计算机提供的立体声的附件
属类:【综合句库 】-〖-〗-[-]
**********************************************************************
IBM-compatible: A term applied to personal computers which their manufacturers claim will accept hardware add-ons run software designed to run on an IBM-PC.
IBM兼容:个人电脑用名词。电脑制造商用来标志其电脑可容纳IBM个人电脑所用的加配硬件和使用为它设计的保种软件。
属类:【行业术语 】-〖印刷〗-[-]
**********************************************************************
hardware manufacturers;hardware add - ons.
五金器皿制造商;五金商品分期付款
属类:【综合句库 】-〖-〗-[-]
**********************************************************************
Finally, Literature and philosophy are assigned the role of add-ons intellectual adornments that have nothing to do with "genuine" education
最后分派给文学和哲学的是一个点缀角色棗与”真正的“教育不相关智力装饰品。
属类:【综合句库 】-〖-〗-[-]
用局域网中的电脑作网关共享上网
因为不能在局域网的集线器上直接连入互联网,我于是用了一根双机互连的网线、和在局域网中的一台机子上加了一块网卡来解决了新加入机子的上网问题。
网关电脑是windows xp sp2,客户机是redhat linux9.0。
先是采用sysgate安在windows xp上,不成功。因为原来我做个网关电脑用adsl上网的双机互连共享上网,用windows xp上的共享连接不行,用sysgate才成功了。所以这次我首先就试了用sysgate共享上网。
然后,不改变两台机子互连的网卡的IP设置,在windows xp上用系统自带的internet连接共享来做。结果成功。
这两种情况成功和失败的原因都没有找到,记在这里可以作为一个小的经验吧。
where is my way?
Twelve days' vacation past, we have been working on changing our house twelve days. Today, two wood-workers left. And, there are many other work to do in coming days.
At the begin of vacation, I planed finishing Advanced Bash-Scripting Guide onceover, but, most of it hasn't been read. There are over 40 chapters in this book, I only have read about 8 chapters.
The big feeling in these days is: where is my way?
My interest thing(hobby) and my work exists huge difference, I can't decide which one should I spend more time or heart. And, the most import thing is: my interest thing(hobby only vast my too many time on it, and can't help me to change our life better a little, but only make my family and my health bad more and more(worse and worse).
I can't decide if I should dicard this interest thing(hobby).
Where is my way?
9.1. Internal Variables
9.1. Internal Variables
1、不懂:
|
2、
|
3、
|
4、
|
5、
|
6、IFS是空格时,字符间的多个空格视为一个分隔符,第一个字符前面的空格会忽略不计。见例子ifs.sh。
|
运行结果:
|
7、$LINENO 不懂
|
8、$PIPESTATUS不懂,并且在本机上的执行结果与书中的不同
|
9、不懂
$PWD的:
|
10、不懂$SHELLOPTS的用法
|
11、$SHLVL的用法
|
12、$TMOUT的用法不懂,例子example9-2~9-4不懂
13、$UID,下面这段话的意思不懂
This is the current user's real id, even if she has temporarily assumed
another identity through su.
14、example9-7太复杂了,留在这里备忘
|
15、set命令的用法
|
16、$!的用法
书上的例子:
|
英语疑问:
1、subtleties, nuances
This requires learning their subtleties and nuances.
2、necessarily
$SHELL does not necessarily give the correct answer.
3、collation order, mishandled
$LC_COLLATE
Often set in the .bashrc or /etc/profile files, this variable controls
collation order in filename expansion and pattern matching. If mishandled,
LC_COLLATE can cause unexpected results in filename globbing.
4、revert, customary
To revert to the customary behavior of bracket matching, set LC_COLLATE to C by an export LC_COLLATE=C in /etc/profile and/or ~/.bashrc.
5、expedient
In a script, it may be expedient to temporarily add a directory to the path
in this way.
6、likewise
$SHELL, the name of the user's login shell, may be set from /
etc/passwd or in an "init" script, and it is likewise not a
Bash builtin.
8.2. Numerical Constants
8.2. Numerical Constants
1、Example 8-4. Representation of numerical constants
同C语言一样,字符也是整数。但是@和_代表是多少不知道?而且把它们转化为十进制的方法忘记了。
32 let "b64 = 64#@_"
33 echo "base-64 number = $b64" # 4031
34 # This notation only works for a limited range (2 - 64) of ASCII characters 35 # 10 digits + 26 lowercase characters + 26 uppercase characters + @ + _
36
37
38 echo
39
40 echo $((36#zz)) $((2#10101010)) $((16#AF16)) $((53#1aA))
41 # 1295 170 44822 3375
英语疑难: evaluates
A number with an embedded # evaluates as BASE#NUMBER (with range and notational restrictions).
8.1. Operators
Chapter 8. Operations and Related Topics
8.1. Operators
1、Example 8-1. Greatest common divisor最大公约数的算法不懂,里面的练习:判断命令行参数是否是整数不懂,记在这里。
2、发现一个问题,bash的算术操作符只能进行整数的运算,要进行其它的复杂点的运算:如开方、小数等怎么办呢?
3、Example 8-2. Using Arithmetic Operations
这个例子有不少地方不明白,记在这里以后进一步解决:
我知道 let "z = 2 + 3" 相当于 (( z = 2 + 3 )),根据:
|
1)、
|
2)、 20 n=$(($n + 1))
3)、
23 : $[ n = $n + 1 ]
24 # ":" necessary because otherwise Bash attempts
25 #+ to interpret "$[ n = $n + 1 ]" as a command.
26 # Works even if "n" was initialized as a string.
4)、
29 n=$[ $n + 1 ]
30 # Works even if "n" was initialized as a string.
31 #* Avoid this type of construct, since it is obsolete and
nonportable.
32 # Thanks, Stephane Chazelas.
5)、 44 : $(( n++ )) # : $(( ++n )) also works.
6)、 47 : $[ n++ ] # : $[ ++n ]] also works
4、bash不能处理浮点数:
|
5、
if [ $condition1 -a $condition2 ] 相当于 if [[ $condition1 && $condition2 ]]
,但是&&不能用在[...]结构中,这些有什么规律吗?真不好掌握啊。
6、Example 8-3. Compound Condition Tests Using && and ||
|
我不懂&&在6行和17行有什么区别?
7、不懂 $((...))的用法
|
英语疑问:
1、Modulo turns up surprisingly often in various numerical recipes.
2、erroneous
An operation that takes a variable outside these limits will give an erroneous result.
3、flip, relevant, fly
"Bit flipping" is more relevant to compiled languages, such
as C and C++, which run fast enough to permit its use on the fly.
4、miscellaneous operators
5、evaluated
All the operations are evaluated (with possible side effects), but only the last operation is returned.