一、现象分析
之前在操作U盘时候,出现不能挂载,应该文件系统出现bug。在xp下面也不能格式化。后来在ubuntu下试试,也是不可以挂载。挂载时候报, /dev/sdf4 bad superblock error。
整个尝试流程:
1.检查ext文件系统的正确性
sudo e2fsck /dev/sdf4
结果如下:
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: 超级块无效, trying backup blocks...
e2fsck: Bad magic number in super-block 当尝试打开 /dev/sdf4 时
The 超级块 could not be read or does not describe a correct ext2
文件系统. If the 设备 is valid and it really contains an ext2
文件系统 (and not swap or ufs or something else), then the 超级块
is corrupt, and you might try running e2fsck with an alternate 超级块:
e2fsck -b 8193 <设备>
2.重设superblock
sudo e2fsck -b 8193 /dev/sdf4
显示信息如下:
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: Bad magic number in super-block 当尝试打开 /dev/sdf4 时
The 超级块 could not be read or does not describe a correct ext2
文件系统. If the 设备 is valid and it really contains an ext2
文件系统 (and not swap or ufs or something else), then the 超级块
is corrupt, and you might try running e2fsck with an alternate 超级块:
e2fsck -b 8193 <设备>
这个命令执行没有效果,汗
3.检测
sudo e2fsck -f /dev/sdf4
信息:
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: 超级块无效, trying backup blocks...
e2fsck: Bad magic number in super-block 当尝试打开 /dev/sdf4 时
The 超级块 could not be read or does not describe a correct ext2
文件系统. If the 设备 is valid and it really contains an ext2
文件系统 (and not swap or ufs or something else), then the 超级块
is corrupt, and you might try running e2fsck with an alternate 超级块:
e2fsck -b 8193 <设备>
后来想想干脆格式化得了。
4.格式化,我将其格式成vfat文件系统
sudo mkfs -V -t vfat /dev/sdf4
信息:
mkfs (util-linux-ng 2.17.2)
mkfs.vfat /dev/sdf4
mkfs.vfat 3.0.7 (24 Dec 2009
命令执行没有异常