LinuxSir.cn,穿越时空的Linuxsir!

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

mkfs.ext3 无法格式化硬盘

[复制链接]
发表于 2009-1-9 11:33:42 | 显示全部楼层 |阅读模式
本人有一块三星80G硬盘,想在fc6下进行分区并格式化。在关机状态下,将硬盘接到主板上,2块硬盘分别用2根ide数据线与主板连接,故未设置硬盘跳线。然后开机,系统启动后,检测到该硬盘的识别设备名为/dev/hdd ,然后用fdisk /dev/hdd 进行分区,分区结束后,进行格式化时出现以下提示,从而无法进行格式化:
[root@localhost ~]# mkfs.ext3  /dev/hdd5
mke2fs 1.39 (29-May-2006)
/dev/hdd5 is apparently in use by the system; will not make a filesystem here!
对其他分区进行格式化也是出现以上提示

看提示意思好像是分区正在被使用,但是在整个过程中从来没有进行过其他操作,在/etc/fstab中也未设置自动挂载动作!
硬盘分区情况如下:

[root@localhost ~]# fdisk /dev/hdd -l

Disk /dev/hdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1               1         122      976562+  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/hdd2             122         244      983367   83  Linux
/dev/hdd3             245        9729    76188262+   5  Extended
/dev/hdd5             245        7540    58605088+  83  Linux
/dev/hdd6            7541        7663      987966   82  Linux swap / Solaris
/dev/hdd7            7664        9729    16595113+  83  Linux

用fsck检测提示如下:
[root@localhost ~]# fsck -c /dev/hdd7
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
fsck.ext2: Device or resource busy while trying to open /dev/hdd7
Filesystem mounted or opened exclusively by another program?

用badblocks 检测,结果如下:
[root@localhost ~]# badblocks -s /dev/hdd5
Checking for bad blocks (read-only test): done

请大家帮忙分析一下,出现这种情况的原因。谢谢!!
发表于 2009-1-9 15:23:38 | 显示全部楼层
mount 确认一下是不是已经挂载了。虽然你说没挂载,但看提示确实是已经挂载了。
回复 支持 反对

使用道具 举报

发表于 2009-1-9 15:39:25 | 显示全部楼层
df的结果是什么
回复 支持 反对

使用道具 举报

发表于 2009-1-9 21:09:23 | 显示全部楼层
[root@localhost ~]# fdisk /dev/hdd -l

Disk /dev/hdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 1 122 976562+ 83 Linux
[color="Red"]Partition 1 does not end on cylinder boundary.
/dev/hdd2 122 244 983367 83 Linux
/dev/hdd3 245 9729 76188262+ 5 Extended
/dev/hdd5 245 7540 58605088+ 83 Linux
/dev/hdd6 7541 7663 987966 82 Linux swap / Solaris
/dev/hdd7 7664 9729 16595113+ 83 Linux
I have a bad feeling about this!

mount 命令的输出结果是?
回复 支持 反对

使用道具 举报

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

本版积分规则

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