Chinaunix
标题:
关于dd全盘拷贝的问题
[打印本页]
作者:
iElly
时间:
2009-01-07 14:20
标题:
关于dd全盘拷贝的问题
-bash-3.00# ls /107
1.txt 107 Rln lost+found recheck
-bash-3.00# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c4t1d0s0 41310309 6628101 34269105 17% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 10523304 972 10522332 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1
41310309 6628101 34269105 17% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 10522932 600 10522332 1% /tmp
swap 10522360 28 10522332 1% /var/run
/dev/dsk/c5t5006016030232106d4s2
983023 1044 922998 1% /107
-bash-3.00# dd of=/dev/rdsk/c5t5006016030232106d4s2 if=/dev/rdsk/c5t5006016030232106d5s2 bs=100k
10444+1 records in
10444+1 records out
-bash-3.00# mount /dev/dsk/c5t5006016030232106d5s2 /1071
-bash-3.00# ls /1071
lost+found
-bash-3.00# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c4t1d0s0 41310309 6628101 34269105 17% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 10523112 972 10522140 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1
41310309 6628101 34269105 17% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 10522740 600 10522140 1% /tmp
/dev/dsk/c5t5006016030232106d4s2
983023 1044 922998 1% /107
/dev/dsk/c5t5006016030232106d5s2
981999 1041 922039 1% /1071
为什么做了dd全盘拷贝,c5t5006016030232106d4s2与c5t5006016030232106d5s2还是不一样,而且c5t5006016030232106d5s2在mount到/1071后什么内容都没有?为什么呢?请指教
[
本帖最后由 iElly 于 2009-1-7 16:42 编辑
]
作者:
yuhuohu
时间:
2009-01-07 16:09
dd完毕先fsck一把
作者:
todaypuzzleme
时间:
2009-01-07 16:19
你的dd命令的if和of参数是不是写反了?
作者:
hexilanlan
时间:
2009-01-07 16:24
写反了..
作者:
yuhuohu
时间:
2009-01-08 09:26
原帖由
todaypuzzleme
于 2009-1-7 16:19 发表
你的dd命令的if和of参数是不是写反了?
惭愧 俺都没仔细看。。。。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2