|
本人安装的debian系统,有8个分区,如下:(cat /etc/fstab中的内容)
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda9 /backup ext3 defaults 0 2
/dev/sda10 /ftp ext3 defaults 0 2
/dev/sda8 /tmp ext3 defaults 0 2
/dev/sda5 /usr ext3 defaults 0 2
/dev/sda6 /var ext3 defaults 0 2
/dev/sda11 /www ext3 defaults 0 2
/dev/sda7 none swap sw 0 0
现在启动电脑,突然发现/var分区的内容全部不见了,把它挂在另一linux系统上 (redhat上),用cat /proc/partitions 命令如下结果:
[root@~]# cat /proc/partitions
major minor #blocks name
3 0 78150744 hda
3 1 104391 hda1
3 2 78043770 hda2
8 0 312571224 sda
8 1 14651248 sda1
8 2 1 sda2
8 5 14651248 sda5
8 6 34178256 sda6
8 7 6835626 sda7
8 8 979933 sda8
8 9 29294496 sda9
8 10 170899438 sda10
8 11 41078173 sda11
253 0 75890688 dm-0
253 1 2031616 dm-1
想mount sda6(也就是/var目录的分区),硬是失败,其他的sda10,sda8等可以:
mount -t ext3 /dev/sda10 /mnt/sda6
另:fdisk -l 命令如下:
fdisk -l /dev/sda6
Disk /dev/sda6: 34.9 GB, 34998534144 bytes
255 heads, 63 sectors/track, 4254 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sda6 doesn't contain a valid partition table
rescuept命令如下:
rescuept /dev/sda6
# partition table of /dev/sda6
# total size 68356512 sectors
unit: sectors
rescuept: error reading sectors 14000-15999
---
fsck.ext3 -p /dev/sda6
fsck.ext3: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda6
Could this be a zero-length partition?
我要备份/var啊,谁能帮助我解决问题? |
|