我看出错的地方可能根本就不是识别模块的问题,而很可能是MI本身某个变量的问题,从MI切换到终端运行t-libparted.py 得到以下信息
operations.parted.device_probe_all: [('/dev/sda', 488397168L, 'ATA ST3250310AS'), ('/dev/sdb', 625142448L, 'ATA ST3320620AS')]
operations.parted.get_all_partitions: [(1, [1, 7], 0L, 150271947L, 'fat32', 'N/A', 63L, 150272009L, [1, 4, 5, 6, 7, 9, 10, 14]), (2, [7], 2L, 338120055L, 'N/A', 'N/A', 150272010L, 488392064L, [1, 5, 6, 7, 9, 10, 14]), (5, [], 1L, 163846872L, 'ntfs', 'N/A', 150272073L, 314118944L, [1, 4, 5, 6, 7, 9, 10, 14]), (6, [], 1L, 174273057L, 'ext3', 'N/A', 314119008L, 488392064L, [1, 4, 5, 6, 7, 9, 10, 14])]
operations.parted.get_all_partitions: [(1, [1], 0L, 199993122L, 'ext4', 'N/A', 63L, 199993184L, [1, 4, 5, 6, 7, 9, 10, 14]), (2, [7], 2L, 425144160L, 'N/A', 'N/A', 199993185L, 625137344L, [1, 5, 6, 7, 9, 10, 14]), (5, [], 1L, 210001617L, 'ext4', 'N/A', 199993248L, 409994864L, [1, 4, 5, 6, 7, 9, 10, 14]), (6, [], 1L, 210001617L, 'ext4', 'N/A', 409994928L, 619996544L, [1, 4, 5, 6, 7, 9, 10, 14]), (7, [], 1L, 5140737L, 'linux-swap(v1)', 'N/A', 619996608L, 625137344L, [1, 4, 5, 6, 7, 9, 10, 14])]
从我切换到终端时,第一个窗口显示主分区数组已有两个硬盘,而分区信息那个数组是空值,分区的数组是否超出了定义范围。 |