- 论坛徽章:
- 3
|
分区/dev/sda2没法格式化也没有办法mount,重启也是如此。执行dmsetup remove_all和dmsetup status命令也无效
fdisk显示有两个分区/dev/sda1;/dev/sda2
[root@localhost ~]# fdisk -l
Disk /dev/sda: 1199.1 GB, 1199101181952 bytes
255 heads, 63 sectors/track, 145782 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 145782 1170889492+ 8e Linux LVM
[root@localhost ~]#
格式化/dev/sda2报错,mount /dev/sda2也报错,umount /dev/sda2发现该分区根本没有在mount状态
[root@localhost ~]# mkfs -t ext3 /dev/sda2
mke2fs 1.39 (29-May-2006)
/dev/sda2 is apparently in use by the system; will not make a filesystem here!
[root@localhost ~]# mount /dev/sda2 /u01
mount: /dev/sda2 already mounted or /u01 busy
[root@localhost ~]# umount /dev/sda2
umount: /dev/sda2: not mounted
[root@localhost ~]# umount /u01
umount: /u01: not mounted
[root@localhost ~]#
mount命令显示/dev/sda2压根没有挂载信息
[root@localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@localhost ~]#
[root@localhost ~]# dmsetup ls
VolGroup00-LogVol01 (253, 0)
VolGroup00-LogVol00 (253, 1)
[root@localhost ~]# dmsetup remove VolGroup00-LogVol01
device-mapper: remove ioctl failed: 设备或资源忙
Command failed
[root@localhost ~]# dmsetup remove VolGroup00-LogVol00
device-mapper: remove ioctl failed: 设备或资源忙
Command failed
[root@localhost ~]# dmsetup remove_all
[root@localhost ~]# dmsetup status
VolGroup00-LogVol01: 0 69926912 linear
VolGroup00-LogVol00: 0 125829120 linear
[root@localhost ~]# dumpe2fs /dev/sda2
dumpe2fs 1.39 (29-May-2006)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sda2
Couldn't find valid filesystem superblock.
[root@localhost ~]# fuser -k /dev/sda2
[root@localhost ~]#
|
|