我遇到了上述问题,我不知道是什么原因造成的。 有人可以帮我解决这个问题吗? 谢谢 。
1)我已经有我的第一个磁盘/dev/sda工作正常,现在我想在第二个磁盘上创build另一个FS:
$fdisk /dev/sdb [我在fdisk下按n,p,w]
2)我看了一下fdisk的结果
$fdisk -l Disk /dev/sda: 1999.0 GB, 1998998994944 bytes 255 heads, 63 sectors/track, 243031 cylinders, total 3904294912 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000a6eb5 Device Boot Start End Blocks Id System /dev/sda1 * 2048 1953124351 976561152 83 Linux /dev/sda2 1953126398 2070310911 58592257 5 Extended /dev/sda5 1953126400 2070310911 58592256 82 Linux swap / Solaris Disk /dev/sdb: 1999.0 GB, 1998998994944 bytes 31 heads, 7 sectors/track, 17992142 cylinders, total 3904294912 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x49802e7d Device Boot Start End Blocks Id System /dev/sdb1 2048 3904294911 1952146432 83 Linux
3)我制作下面的文件系统
$ mkfs.xfs -i size=1024 /dev/sdb
4)现在我看到了问题…
$tune2fs -l /dev/sdb1 |grep -i inode tune2fs: Bad magic number in super-block while trying to open /dev/sdb1 Couldn't find valid filesystem superblock.
您需要在/dev/sdb1上创buildFS,而不是/dev/sdb 。
mkfs.xfs -i size=1024 /dev/sdb1
(可能只是在这个问题上的错字)。
更重要的是: tune2fs是用于ext2 / 3/4文件系统,而不是XFS,所以这根本无法工作。 你想用tune2fs做什么?