服务器不会在/ dev中检测/显示磁盘的分区

由于某种原因,我的一个磁盘没有在/ dev /中显示它的分区,但是当我用cfdisk检查它时,它们在那里,再次将分区表写入它使它们重新出现。

这是一种烦人的,因为我想在RAIDconfiguration中使用它,但RAIDconfiguration无法find它,所以我不得不手动添加它们在启动,导致他们重新焕发了一遍。

操作系统:Debian 5.0 amd64支持ext4内核的backport内核磁盘:2x三星Spinpoint F3 HD103SJ,1x老IDE磁盘其他信息可能或多或less是不相关的,如果你需要任何命令输出我可以提供它。

vmhost:/ home / xen#fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000d6074 Device Boot Start End Blocks Id System /dev/sda1 1 6079 48829536 fd Linux raid autodetect /dev/sda2 6080 121601 927930465 fd Linux raid autodetect Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000cdeb8 Device Boot Start End Blocks Id System /dev/sdb1 1 6079 48829536 fd Linux raid autodetect /dev/sdb2 6080 121601 927930465 fd Linux raid autodetect Disk /dev/sdc: 250.0 GB, 250058268160 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xdba2dba2 Device Boot Start End Blocks Id System /dev/sdc1 * 1 29164 234259798+ 83 Linux /dev/sdc2 29165 30401 9936202+ 5 Extended /dev/sdc5 29165 30401 9936171 82 Linux swap / Solaris Disk /dev/md0: 50.0 GB, 50001346560 bytes 2 heads, 4 sectors/track, 12207360 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk identifier: 0x00000000 Disk /dev/md0 doesn't contain a valid partition table Disk /dev/md1: 950.2 GB, 950200696832 bytes 2 heads, 4 sectors/track, 231982592 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk identifier: 0x00000000 Disk /dev/md1 doesn't contain a valid partition table 

如果你正在谈论

 Disk /dev/md0 doesn't contain a valid partition table 

那么预计在任何RAID设备输出。

如果您的意思是名称为“/ dev / sda1”等的设备不存在于“/ dev”中,请尝试使用

 partprobe /dev/sda 

当设备没有列出。 如果解决了这个问题,那么你可以在/etc/rc.d/rc.local文件中添加'partprobe / dev / sda'。 如果您在启动时使用“/ etc / fstab”尝试挂载“/ dev / sda1”,这仍然会导致问题

愚蠢的我显然在/ dev / sda上创build了一个软件RAID超级块,导致软件RAID工具破坏分区数据或其他东西。