root@zhongzhenhua-virtual-machine:~/AndroidCode# repo init -u https://android.googlesource.com/platform/manifest -b android-7.0.0_r1
.repo/manifests/: discarding commits
Your identity is: Gitzhongzh blueheart@google.com
If you want to change this, please re-run 'repo init' with --config-name
repo has been initialized in /root/AndroidCode
root@zhongzhenhua-virtual-machine:~/AndroidCode# repo init -u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[: 101.6.6.177]: errno=拒绝连接
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[: 101.6.6.177]: errno=拒绝连接
fatal: cannot obtain manifest git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
root@zhongzhenhua-virtual-machine:~/AndroidCode# repo init -u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[: 101.6.6.178]: errno=拒绝连接
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[: 101.6.6.178]: errno=拒绝连接
fatal: cannot obtain manifest git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
root@zhongzhenhua-virtual-machine:~/AndroidCode# repo init -u git://aosp.tuna.tsinghua.edu.cn/platform/manifest
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[: 101.6.6.178]: errno=拒绝连接
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[: 101.6.6.178]: errno=拒绝连接
fatal: cannot obtain manifest git://aosp.tuna.tsinghua.edu.cn/platform/manifest
root@zhongzhenhua-virtual-machine:~/AndroidCode# mkdir ../WORKING_DIRECTORY
root@zhongzhenhua-virtual-machine:~/AndroidCode# cd ../WORKING_DIRECTORY
root@zhongzhenhua-virtual-machine:~/WORKING_DIRECTORY# repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
^CTraceback (most recent call last):
File "/usr/bin/repo", line , in
main(sys.argv[:])
File "/usr/bin/repo", line , in main
_Init(args, gitc_init=(cmd == 'gitc-init'))
File "/usr/bin/repo", line , in _Init
_Clone(url, dst, opt.quiet, not opt.no_clone_bundle)
File "/usr/bin/repo", line , in _Clone
if clone_bundle and _DownloadBundle(url, local, quiet):
File "/usr/bin/repo", line , in _DownloadBundle
r = urllib.request.urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line , in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line , in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line , in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line , in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line , in https_open
context=self._context)
File "/usr/lib/python2.7/urllib2.py", line , in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line , in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line , in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line , in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line , in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line , in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line , in connect
server_hostname=server_hostname)
File "/usr/lib/python2.7/ssl.py", line , in wrap_socket
_context=self)
File "/usr/lib/python2.7/ssl.py", line , in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line , in do_handshake
self._sslobj.do_handshake()
KeyboardInterrupt
root@zhongzhenhua-virtual-machine:~/WORKING_DIRECTORY# wget https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
---- ::-- https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
正在连接 127.0.0.1:… 已连接。
已发出 Proxy 请求,正在等待回应… OK
长度: (35G) [application/octet-stream]
正在保存至: “aosp-latest.tar”
aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[> aosp-latest.tar %[ aosp-latest.tar %[> aosp-latest.tar %[ ] 896.30M 484KB/s in 33m 13s
-- :: ( KB/s) - 在 / 字节处发生读取错误 (成功)。 重试中。
---- ::-- (尝试次数: ) https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
正在连接 127.0.0.1:… 已连接。
已发出 Proxy 请求,正在等待回应… Partial Content
长度: (35G),剩余 (34G) [application/octet-stream]
正在保存至: “aosp-latest.tar”
aosp-latest.tar %[=> ] .88G 500KB/s in 3h 14m
-- :: ( KB/s) - 在 / 字节处发生读取错误 (成功)。 重试中。
---- ::-- (尝试次数: ) https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
正在连接 127.0.0.1:… 已连接。
已发出 Proxy 请求,正在等待回应… Partial Content
长度: (35G),剩余 (31G) [application/octet-stream]
正在保存至: “aosp-latest.tar”
aosp-latest.tar %[++==> ] .75G 489KB/s in 3h 32m
无法写入 “aosp-latest.tar” (成功)。
root@zhongzhenhua-virtual-machine:~/WORKING_DIRECTORY#
| | +-- balanced-match@0.4.2
| | `-- concat-map@0.0.1
| +-- glob@7.1.0
| | +-- fs.realpath@1.0.0
| | +-- minimatch@3.0.3
| | | `-- brace-expansion@1.1.6
| | | +-- balanced-match@0.4.2
| | | `-- concat-map@0.0.1
| | `-- path-is-absolute@1.0.1
| +-- graceful-fs@4.1.9
| +-- has-unicode@2.0.1
| +-- hosted-git-info@2.1.5
| +-- iferr@0.1.5
| +-- imurmurhash@0.1.4
| +-- inflight@1.0.5
| +-- inherits@2.0.3
| +-- ini@1.3.4
| +-- init-package-json@1.9.4
| | +-- glob@6.0.4
| | | +-- minimatch@3.0.3
| | | | `-- brace-expansion@1.1.6
| | | | +-- balanced-match@0.4.2
| | | | `-- concat-map@0.0.1
| | | `-- path-is-absolute@1.0.0
| | `-- promzard@0.3.0
| +-- lockfile@1.0.2
| +-- lodash._baseindexof@3.1.0
| +-- lodash._baseuniq@4.6.0
| | +-- lodash._createset@4.0.3
| | `-- lodash._root@3.0.1
| +-- lodash._bindcallback@3.0.1
| +-- lodash._cacheindexof@3.0.2
| +-- lodash._createcache@3.1.2
| +-- lodash._getnative@3.9.1
| +-- lodash.clonedeep@4.5.0
| +-- lodash.restparam@3.6.1
| +-- lodash.union@4.6.0
| +-- lodash.uniq@4.5.0
| +-- lodash.without@4.4.0
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| +-- node-gyp@3.4.0
| | +-- minimatch@3.0.3
| | | `-- brace-expansion@1.1.6
| | | +-- balanced-match@0.4.2
| | | `-- concat-map@0.0.1
| | +-- npmlog@3.1.2
| | | +-- are-we-there-yet@1.1.2
| | | | `-- delegates@1.0.0
| | | +-- console-control-strings@1.1.0
| | | +-- gauge@2.6.0
| | | | +-- has-color@0.1.7
| | | | +-- object-assign@4.1.0
| | | | +-- signal-exit@3.0.0
| | | | +-- string-width@1.0.2
| | | | | +-- code-point-at@1.0.0
| | | | | | `-- number-is-nan@1.0.0
| | | | | `-- is-fullwidth-code-point@1.0.0
| | | | | `-- number-is-nan@1.0.0
| | | | `-- wide-align@1.1.0
| | | `-- set-blocking@2.0.0
| | `-- path-array@1.0.1
| | `-- array-index@1.0.0
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | `-- es6-symbol@3.1.0
| | +-- d@0.1.1
| | `-- es5-ext@0.10.12
| | `-- es6-iterator@2.0.0
| +-- nopt@3.0.6
| +-- normalize-git-url@3.0.2
| +-- normalize-package-data@2.3.5
| | `-- is-builtin-module@1.0.0
| | `-- builtin-modules@1.1.1
| +-- npm-cache-filename@1.0.2
| +-- npm-install-checks@3.0.0
| +-- npm-package-arg@4.2.0
| +-- npm-registry-client@7.2.1
| | +-- concat-stream@1.5.2
| | | +-- readable-stream@2.0.6
| | | | +-- core-util-is@1.0.2
| | | | +-- isarray@1.0.0
| | | | +-- process-nextick-args@1.0.7
| | | | +-- string_decoder@0.10.31
| | | | `-- util-deprecate@1.0.2
| | | `-- typedarray@0.0.6
| | +-- npmlog@3.1.2
| | | +-- are-we-there-yet@1.1.2
| | | | `-- delegates@1.0.0
| | | +-- console-control-strings@1.1.0
| | | +-- gauge@2.6.0
| | | | +-- has-color@0.1.7
| | | | +-- object-assign@4.1.0
| | | | +-- signal-exit@3.0.0
| | | | +-- string-width@1.0.2
| | | | | +-- code-point-at@1.0.0
| | | | | | `-- number-is-nan@1.0.0
| | | | | `-- is-fullwidth-code-point@1.0.0
| | | | | `-- number-is-nan@1.0.0
| | | | `-- wide-align@1.1.0
| | | `-- set-blocking@2.0.0
| | `-- retry@0.10.0
| +-- npm-user-validate@0.1.5
| +-- npmlog@4.0.0
| | +-- are-we-there-yet@1.1.2
| | | `-- delegates@1.0.0
| | +-- console-control-strings@1.1.0
| | +-- gauge@2.6.0
| | | +-- has-color@0.1.7
| | | +-- object-assign@4.1.0
| | | +-- signal-exit@3.0.0
| | | +-- string-width@1.0.2
| | | | +-- code-point-at@1.0.0
| | | | | `-- number-is-nan@1.0.0
| | | | `-- is-fullwidth-code-point@1.0.0
| | | | `-- number-is-nan@1.0.0
| | | `-- wide-align@1.1.0
| | `-- set-blocking@2.0.0
| +-- once@1.4.0
| +-- opener@1.4.2
| +-- osenv@0.1.3
| | +-- os-homedir@1.0.1
| | `-- os-tmpdir@1.0.1
| +-- path-is-inside@1.0.2
| +-- read@1.0.7
| | `-- mute-stream@0.0.5
| +-- read-cmd-shim@1.0.1
| +-- read-installed@4.0.3
| | `-- util-extend@1.0.3
| +-- read-package-json@2.0.4
| | +-- glob@6.0.4
| | | +-- minimatch@3.0.3
| | | | `-- brace-expansion@1.1.6
| | | | +-- balanced-match@0.4.2
| | | | `-- concat-map@0.0.1
| | | `-- path-is-absolute@1.0.0
| | `-- json-parse-helpfulerror@1.0.3
| | `-- jju@1.3.0
| +-- read-package-tree@5.1.5
| +-- readable-stream@2.1.5
| | +-- buffer-shims@1.0.0
| | +-- core-util-is@1.0.2
| | +-- isarray@1.0.0
| | +-- process-nextick-args@1.0.7
| | +-- string_decoder@0.10.31
| | `-- util-deprecate@1.0.2
| +-- readdir-scoped-modules@1.0.2
| +-- realize-package-specifier@3.0.3
| +-- request@2.75.0
| | +-- aws-sign2@0.6.0
| | +-- aws4@1.4.1
| | +-- bl@1.1.2
| | | `-- readable-stream@2.0.6
| | | +-- core-util-is@1.0.2
| | | +-- isarray@1.0.0
| | | +-- process-nextick-args@1.0.7
| | | +-- string_decoder@0.10.31
| | | `-- util-deprecate@1.0.2
| | +-- caseless@0.11.0
| | +-- combined-stream@1.0.5
| | | `-- delayed-stream@1.0.0
| | +-- extend@3.0.0
| | +-- forever-agent@0.6.1
| | +-- form-data@2.0.0
| | | `-- asynckit@0.4.0
| | +-- har-validator@2.0.6
| | | +-- chalk@1.1.3
| | | | +-- ansi-styles@2.2.1
| | | | +-- escape-string-regexp@1.0.5
| | | | +-- has-ansi@2.0.0
| | | | `-- supports-color@2.0.0
| | | +-- commander@2.9.0
| | | | `-- graceful-readlink@1.0.1
| | | +-- is-my-json-valid@2.15.0
| | | | +-- generate-function@2.0.0
| | | | +-- generate-object-property@1.2.0
| | | | | `-- is-property@1.0.2
| | | | +-- jsonpointer@4.0.0
| | | | `-- xtend@4.0.1
| | | `-- pinkie-promise@2.0.1
| | | `-- pinkie@2.0.4
| | +-- hawk@3.1.3
| | | +-- boom@2.10.1
| | | +-- cryptiles@2.0.5
| | | +-- hoek@2.16.3
| | | `-- sntp@1.0.9
| | +-- http-signature@1.1.1
| | | +-- assert-plus@0.2.0
| | | +-- jsprim@1.3.1
| | | | +-- extsprintf@1.0.2
| | | | +-- json-schema@0.2.3
| | | | `-- verror@1.3.6
| | | `-- sshpk@1.10.1
| | | +-- asn1@0.2.3
| | | +-- assert-plus@1.0.0
| | | +-- bcrypt-pbkdf@1.0.0
| | | +-- dashdash@1.14.0
| | | +-- ecc-jsbn@0.1.1
| | | +-- getpass@0.1.6
| | | +-- jodid25519@1.0.2
| | | +-- jsbn@0.1.0
| | | `-- tweetnacl@0.14.3
| | +-- is-typedarray@1.0.0
| | +-- isstream@0.1.2
| | +-- json-stringify-safe@5.0.1
| | +-- mime-types@2.1.12
| | | `-- mime-db@1.24.0
| | +-- node-uuid@1.4.7
| | +-- oauth-sign@0.8.2
| | +-- qs@6.2.1
| | +-- stringstream@0.0.5
| | +-- tough-cookie@2.3.1
| | `-- tunnel-agent@0.4.3
| +-- retry@0.10.0
| +-- rimraf@2.5.4
| +-- semver@5.3.0
| +-- sha@2.0.1
| +-- slide@1.1.6
| +-- sorted-object@2.0.1
| +-- strip-ansi@3.0.1
| +-- tar@2.2.1
| | `-- block-stream@0.0.8
| +-- text-table@0.2.0
| +-- uid-number@0.0.6
| +-- umask@1.1.0
| +-- unique-filename@1.1.0
| | `-- unique-slug@2.0.0
| +-- unpipe@1.0.0
| +-- validate-npm-package-license@3.0.1
| | +-- spdx-correct@1.0.2
| | | `-- spdx-license-ids@1.2.0
| | `-- spdx-expression-parse@1.0.2
| | +-- spdx-exceptions@1.0.4
| | `-- spdx-license-ids@1.2.0
| +-- validate-npm-package-name@2.2.2
| | `-- builtins@0.0.7
| +-- which@1.2.11
| | `-- isexe@1.1.2
| +-- wrappy@1.0.2
| `-- write-file-atomic@1.2.0
+-- only@0.0.2
+-- open@0.0.5
`-- request@2.81.0
+-- aws-sign2@0.6.0
+-- aws4@1.6.0
+-- caseless@0.12.0
+-- combined-stream@1.0.5
| `-- delayed-stream@1.0.0
+-- forever-agent@0.6.1
+-- form-data@2.1.4
| `-- asynckit@0.4.0
+-- har-validator@4.2.1
| +-- ajv@4.11.8
| | +-- co@4.6.0
| | `-- json-stable-stringify@1.0.1
| | `-- jsonify@0.0.0
| `-- har-schema@1.0.5
+-- hawk@3.1.3
| +-- boom@2.10.1
| +-- cryptiles@2.0.5
| +-- hoek@2.16.3
| `-- sntp@1.0.9
+-- http-signature@1.1.1
| +-- assert-plus@0.2.0
| +-- jsprim@1.4.1
| | +-- assert-plus@1.0.0
| | +-- extsprintf@1.3.0
| | +-- json-schema@0.2.3
| | `-- verror@1.10.0
| | +-- assert-plus@1.0.0
| | `-- core-util-is@1.0.2
| `-- sshpk@1.13.1
| +-- asn1@0.2.3
| +-- assert-plus@1.0.0
| +-- bcrypt-pbkdf@1.0.1
| +-- dashdash@1.14.1
| | `-- assert-plus@1.0.0
| +-- ecc-jsbn@0.1.1
| +-- getpass@0.1.7
| | `-- assert-plus@1.0.0
| +-- jsbn@0.1.1
| `-- tweetnacl@0.14.5
+-- is-typedarray@1.0.0
+-- isstream@0.1.2
+-- json-stringify-safe@5.0.1
+-- mime-types@2.1.17
| `-- mime-db@1.30.0
+-- oauth-sign@0.8.2
+-- performance-now@0.2.0
+-- qs@6.4.0
+-- safe-buffer@5.1.1
+-- stringstream@0.0.5
+-- tough-cookie@2.3.2
| `-- punycode@1.4.1
+-- tunnel-agent@0.6.0
`-- uuid@3.1.0
C:\Users\zhongzh>
C:\Users\zhongzh>npm install -g npm@2
[ …………..] \ loadRequestedDeps: sill install loadAllDepsIntoIdealTree
C:\Users\zhongzh>npm install -g npm@2
C:\Users\zhongzh\AppData\Roaming\npm\npm -> C:\Users\zhongzh\AppData\Roaming\npm
\node_modules\npm\bin\npm-cli.js
C:\Users\zhongzh\AppData\Roaming\npm
`-- npm@2.15.12
+-- abbrev@1.0.9
+-- ansi@0.3.1
+-- ansi-regex@2.0.0
+-- ansicolors@0.3.2
+-- ansistyles@0.1.3
+-- archy@1.0.0
+-- async-some@1.0.2
+-- block-stream@0.0.9
+-- char-spinner@1.0.1
+-- chmodr@1.0.2
+-- chownr@1.0.1
+-- cmd-shim@2.0.2
+-- columnify@1.5.4
| `-- wcwidth@1.0.0
| `-- defaults@1.0.3
| `-- clone@1.0.2
+-- config-chain@1.1.10
| `-- proto-list@1.2.4
+-- dezalgo@1.0.3
| `-- asap@2.0.3
+-- editor@1.0.0
+-- fs-vacuum@1.2.9
+-- fs-write-stream-atomic@1.0.8
| `-- iferr@0.1.5
+-- fstream@1.0.10
+-- fstream-npm@1.1.1
| `-- fstream-ignore@1.0.5
+-- github-url-from-git@1.4.0
+-- github-url-from-username-repo@1.0.2
+-- glob@7.0.6
| +-- fs.realpath@1.0.0
| `-- path-is-absolute@1.0.0
+-- graceful-fs@4.1.6
+-- hosted-git-info@2.1.5
+-- imurmurhash@0.1.4
+-- inflight@1.0.5
+-- inherits@2.0.3
+-- ini@1.3.4
+-- init-package-json@1.9.4
| +-- glob@6.0.4
| | `-- path-is-absolute@1.0.0
| `-- promzard@0.3.0
+-- lockfile@1.0.1
+-- lru-cache@4.0.1
| +-- pseudomap@1.0.2
| `-- yallist@2.0.0
+-- minimatch@3.0.3
| `-- brace-expansion@1.1.6
| +-- balanced-match@0.4.2
| `-- concat-map@0.0.1
+-- mkdirp@0.5.1
| `-- minimist@0.0.8
+-- node-gyp@3.6.0
| `-- semver@5.3.0
+-- nopt@3.0.6
+-- normalize-git-url@3.0.2
+-- normalize-package-data@2.3.5
| `-- is-builtin-module@1.0.0
| `-- builtin-modules@1.1.0
+-- npm-cache-filename@1.0.2
+-- npm-install-checks@1.0.7
+-- npm-package-arg@4.1.0
+-- npm-registry-client@7.2.1
| +-- concat-stream@1.5.2
| | +-- readable-stream@2.0.6
| | | +-- core-util-is@1.0.2
| | | +-- isarray@1.0.0
| | | +-- process-nextick-args@1.0.7
| | | +-- string_decoder@0.10.31
| | | `-- util-deprecate@1.0.2
| | `-- typedarray@0.0.6
| `-- retry@0.10.0
+-- npm-user-validate@0.1.5
+-- npmlog@2.0.4
| +-- are-we-there-yet@1.1.2
| | `-- delegates@1.0.0
| `-- gauge@1.2.7
| +-- has-unicode@2.0.0
| +-- lodash.pad@4.4.0
| | +-- lodash._baseslice@4.0.0
| | +-- lodash._basetostring@4.12.0
| | `-- lodash.tostring@4.1.4
| +-- lodash.padend@4.5.0
| `-- lodash.padstart@4.5.0
+-- once@1.4.0
+-- opener@1.4.1
+-- osenv@0.1.3
| +-- os-homedir@1.0.0
| `-- os-tmpdir@1.0.1
+-- path-is-inside@1.0.1
+-- read@1.0.7
| `-- mute-stream@0.0.5
+-- read-installed@4.0.3
| +-- debuglog@1.0.1
| +-- readdir-scoped-modules@1.0.2
| `-- util-extend@1.0.1
+-- read-package-json@2.0.4
| +-- glob@6.0.4
| | `-- path-is-absolute@1.0.0
| `-- json-parse-helpfulerror@1.0.3
| `-- jju@1.3.0
+-- readable-stream@2.1.5
| +-- buffer-shims@1.0.0
| +-- core-util-is@1.0.2
| +-- isarray@1.0.0
| +-- process-nextick-args@1.0.7
| +-- string_decoder@0.10.31
| `-- util-deprecate@1.0.2
+-- realize-package-specifier@3.0.1
+-- request@2.74.0
| +-- aws-sign2@0.6.0
| +-- aws4@1.4.1
| +-- bl@1.1.2
| | `-- readable-stream@2.0.6
| | +-- core-util-is@1.0.2
| | +-- isarray@1.0.0
| | +-- process-nextick-args@1.0.7
| | +-- string_decoder@0.10.31
| | `-- util-deprecate@1.0.2
| +-- caseless@0.11.0
| +-- combined-stream@1.0.5
| | `-- delayed-stream@1.0.0
| +-- extend@3.0.0
| +-- forever-agent@0.6.1
| +-- form-data@1.0.0-rc4
| | `-- async@1.5.2
| +-- har-validator@2.0.6
| | +-- chalk@1.1.3
| | | +-- ansi-styles@2.2.1
| | | +-- escape-string-regexp@1.0.5
| | | +-- has-ansi@2.0.0
| | | `-- supports-color@2.0.0
| | +-- commander@2.9.0
| | | `-- graceful-readlink@1.0.1
| | +-- is-my-json-valid@2.13.1
| | | +-- generate-function@2.0.0
| | | +-- generate-object-property@1.2.0
| | | | `-- is-property@1.0.2
| | | +-- jsonpointer@2.0.0
| | | `-- xtend@4.0.1
| | `-- pinkie-promise@2.0.1
| | `-- pinkie@2.0.4
| +-- hawk@3.1.3
| | +-- boom@2.10.1
| | +-- cryptiles@2.0.5
| | +-- hoek@2.16.3
| | `-- sntp@1.0.9
| +-- http-signature@1.1.1
| | +-- assert-plus@0.2.0
| | +-- jsprim@1.3.0
| | | +-- extsprintf@1.0.2
| | | +-- json-schema@0.2.2
| | | `-- verror@1.3.6
| | `-- sshpk@1.9.2
| | +-- asn1@0.2.3
| | +-- assert-plus@1.0.0
| | +-- dashdash@1.14.0
| | +-- ecc-jsbn@0.1.1
| | +-- getpass@0.1.6
| | +-- jodid25519@1.0.2
| | +-- jsbn@0.1.0
| | `-- tweetnacl@0.13.3
| +-- is-typedarray@1.0.0
| +-- isstream@0.1.2
| +-- json-stringify-safe@5.0.1
| +-- mime-types@2.1.11
| | `-- mime-db@1.23.0
| +-- node-uuid@1.4.7
| +-- oauth-sign@0.8.2
| +-- qs@6.2.1
| +-- stringstream@0.0.5
| +-- tough-cookie@2.3.1
| `-- tunnel-agent@0.4.3
+-- retry@0.10.0
+-- rimraf@2.5.4
+-- semver@5.1.0
+-- sha@2.0.1
| `-- readable-stream@2.0.2
| +-- core-util-is@1.0.1
| +-- isarray@0.0.1
| +-- process-nextick-args@1.0.3
| +-- string_decoder@0.10.31
| `-- util-deprecate@1.0.1
+-- slide@1.1.6
+-- sorted-object@2.0.0
+-- spdx-license-ids@1.2.2
+-- strip-ansi@3.0.1
+-- tar@2.2.1
+-- text-table@0.2.0
+-- uid-number@0.0.6
+-- umask@1.1.0
+-- validate-npm-package-license@3.0.1
| +-- spdx-correct@1.0.2
| `-- spdx-expression-parse@1.0.2
| `-- spdx-exceptions@1.0.4
+-- validate-npm-package-name@2.2.2
| `-- builtins@0.0.7
+-- which@1.2.11
| `-- isexe@1.1.2
+-- wrappy@1.0.2
`-- write-file-atomic@1.1.4
C:\Users\zhongzh>
6. 启动Linux虚拟机,以root用户登录,因为后面的操作需要root用户的权限。打开终端窗口,输入”df -h”,查看文件系统。如下图所示,可以看到在我的虚拟机中/的大小为20G,可用容量为0M,本次扩展硬盘的目标就是增加/目录的大小,注意文件分区为/dev/sda1,后面的操作主要是针对该分区进行的。
7. 下面执行fdisk –l命令,查看硬盘分区情况,可以发现硬盘空间确实已经扩展了到了40G。
8. 现在对硬盘/dev/sda进行硬盘操作,执行命令fdisk /dev/sda,在command后输入d(删除分区的命令),然后输入需要删除分区的号码,此处输入要删除的分区3,执行完毕后输入p,查看硬盘分区情况,/dev/sda3已经删除掉了。
11. 若Linux安装了桌面应用程序的话,也可以使用图形化的磁盘实用工具,在此以分配swap分区为例,简要介绍一下。在应用程序中选择磁盘实用工具,打开如下图所示的界面,点击左侧最下方的硬盘,在右侧选择空闲空间,点击下方的创建分区,选择分区大小,类型后,点击创建按钮,完成分区的创建。
还是参考这篇文章吧
clone成功后:
手机扫一扫
移动阅读更方便
你可能感兴趣的文章