LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 861|回复: 7

tar 备份文件出问题了 (急)

[复制链接]
发表于 2006-7-26 00:34:07 | 显示全部楼层 |阅读模式
用 tar -cvf /dev/hda1  mydir 备份. hda1是我windows xp的C盘所在,结果windows没了.查看mydir中有一个.swap的隐藏文件.用tar -x /dev/hda1  mydir恢复但恢复不了.用mount  -t vfat  -o iocharset=utf8  /dev/hda1 /mnt/windows 无法挂载.出现wrong fs type, bad option, bad superblock on /dev/hda1,这个提示.    请问到底怎么恢复我的windows xp??
发表于 2006-7-26 09:28:24 | 显示全部楼层
the first argu of tar should be the archive name... looks like you use /dev/hda1 as the archive name.. I don't know how bad this is but I don't feel good about the result.
回复 支持 反对

使用道具 举报

发表于 2006-7-26 09:45:28 | 显示全部楼层
估计 hda1 已经坏掉了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-26 10:01:10 | 显示全部楼层
这个命令究竟什么意思??是把mydir里的文件备份到/dev/hda1里??还是什么?
回复 支持 反对

使用道具 举报

发表于 2006-7-26 10:52:14 | 显示全部楼层
直接写到块设备上去了。。。
回复 支持 反对

使用道具 举报

发表于 2006-7-26 11:03:52 | 显示全部楼层
把windows分区数据覆盖了……
回复 支持 反对

使用道具 举报

发表于 2006-7-27 06:21:42 | 显示全部楼层
Post by seamonkey
直接写到块设备上去了。。。

yep.. that's what I feel too.. He probably got his win partition killed..
回复 支持 反对

使用道具 举报

发表于 2006-7-27 06:33:14 | 显示全部楼层
Post by happyairme
这个命令究竟什么意思??是把mydir里的文件备份到/dev/hda1里??还是什么?
I believe zlbruce already gave you the answer

http://www.linuxsir.cn/bbs/showthread.php?t=265648

Please follow the regulations of forum, do NOT cross-post!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表