亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1969 | 回復(fù): 8
打印 上一主題 下一主題

dd命令用法,特急。。 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-08-21 14:35 |只看該作者 |倒序瀏覽
各位大蝦,有誰知道如何用dd命令將一塊硬盤的前1024K block 的數(shù)據(jù)拷貝到另一塊硬盤上。
先謝謝了。

論壇徽章:
0
2 [報告]
發(fā)表于 2006-08-21 18:53 |只看該作者
dd if=源盤   of=目的盤 bs=塊大小
源盤:/dev/rdsk/c0t0d0s2
目的盤:/dev/rdsk/c0t1d0s2

論壇徽章:
0
3 [報告]
發(fā)表于 2006-08-22 10:47 |只看該作者
UP```````````UP`!

論壇徽章:
0
4 [報告]
發(fā)表于 2006-08-22 14:38 |只看該作者
原帖由 johnhjx 于 2006-8-21 18:53 發(fā)表
dd if=源盤   of=目的盤 bs=塊大小
源盤:/dev/rdsk/c0t0d0s2
目的盤:/dev/rdsk/c0t1d0s2



沒仔細(xì)看LZ的話...原來是前1024K

我編輯一下,樓下用過的兄弟們上

[ 本帖最后由 henghengxj 于 2006-8-22 15:11 編輯 ]

論壇徽章:
0
5 [報告]
發(fā)表于 2006-08-22 14:41 |只看該作者
呵呵,頂一下

論壇徽章:
0
6 [報告]
發(fā)表于 2006-08-22 15:06 |只看該作者
樓主問的是將硬盤的   前  1024k block 的數(shù)據(jù)拷貝到另一塊硬盤上 ,  
bs 的參數(shù)的意思是:
bs=n  Sets both input and output block  sizes  to  n  bytes,
           superseding ibs= and obs=. If no conversion other than
           sync, noerror, and notrunc is  specified,  each  input
           block  is  copied  to  the  output  as  a single block
           without aggregating short blocks.

而實現(xiàn)樓主的要求應(yīng)該用 count 這個參數(shù),具體我也沒用過 !

我覺得這樣可以:dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2 count=1024 bs=****

哪位用過,出來指正一下!

論壇徽章:
0
7 [報告]
發(fā)表于 2006-08-22 15:45 |只看該作者
dd if=dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2 count=2048

論壇徽章:
0
8 [報告]
發(fā)表于 2006-08-22 22:37 |只看該作者
This is an example on Solaris9.

# dd if=/dev/rdsk/c2t0d4s6 of=/tmp/testfile bs=1024 count=1024
1024+0 records in
1024+0 records out
#
# ls -l testfile
-rw-r--r--   1 root     other    1048576 Aug 22 21:44 testfile
#

[ 本帖最后由 susbin 于 2006-8-23 22:32 編輯 ]

論壇徽章:
0
9 [報告]
發(fā)表于 2006-09-26 18:46 |只看該作者

補(bǔ)充

dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t2d0s2 bs=1024 2048 3072 4096 5120 6144 7168 8192 一般為2048或4096,8192是現(xiàn)在硬盤得最大緩存了
dd if=源盤   of=目的盤 bs=塊大小
源盤:/dev/rdsk/c0t0d0s2
目的盤:/dev/rdsk/c0t1d0s2
但在有得機(jī)器上不能加bs,如果加了會直接寫成/dev/rdsk目錄下面的文件。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP