突然有一天,terminal出现问题:
#mkdir 01
mkdir:cannot create directory'01':Read-only file system
此时的目录是在挂载/dev/sdc外置硬盘上,目录是/media/DATA1
然后发现,/media下的DATA1到DATA6都出现问题,但是/dev/sdb挂载在/mnt/data上,没问题!
主文件系统也没问题!
mount查看:都显示rw。。。
尝试umount 然后mount。
umount没出现问题,重新mount后,出现:
mount:you must specify the filesystem type
尝试修改:
mount -t ext4 /dev/sdc /media/DATA1
出现:
mount:wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program,
or other error In some cases useful info is found in syslog - try dmesg| tail or so
网上查找,需要fsck修复。
尝试:
fsck -t ext4 /dev/sdc
出现:
fsck.ext4:Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc
Could this be a zero-length partition?[/color=Red]
这是什么问题呢?
另外,fsck 修复磁盘怎样保证不会丢失数据呢?(数据量很大时,提前备份不太可能!)
#mkdir 01
mkdir:cannot create directory'01':Read-only file system
此时的目录是在挂载/dev/sdc外置硬盘上,目录是/media/DATA1
然后发现,/media下的DATA1到DATA6都出现问题,但是/dev/sdb挂载在/mnt/data上,没问题!
主文件系统也没问题!
mount查看:都显示rw。。。
尝试umount 然后mount。
umount没出现问题,重新mount后,出现:
mount:you must specify the filesystem type
尝试修改:
mount -t ext4 /dev/sdc /media/DATA1
出现:
mount:wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program,
or other error In some cases useful info is found in syslog - try dmesg| tail or so
网上查找,需要fsck修复。
尝试:
fsck -t ext4 /dev/sdc
出现:
fsck.ext4:Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc
Could this be a zero-length partition?[/color=Red]
这是什么问题呢?
另外,fsck 修复磁盘怎样保证不会丢失数据呢?(数据量很大时,提前备份不太可能!)
编辑回复