![我是不是忘了对硬盘进行分区了?这可能吗?](https://linux22.com/image/1066900/%E6%88%91%E6%98%AF%E4%B8%8D%E6%98%AF%E5%BF%98%E4%BA%86%E5%AF%B9%E7%A1%AC%E7%9B%98%E8%BF%9B%E8%A1%8C%E5%88%86%E5%8C%BA%E4%BA%86%EF%BC%9F%E8%BF%99%E5%8F%AF%E8%83%BD%E5%90%97%EF%BC%9F.png)
我安装了一个新的硬盘来替换一个开始出现故障的较小驱动器。幸运的是,旧驱动器大部分仍能正常工作,因此我能够将所有内容复制到新驱动器,除了少数有错误的文件。我确认新驱动器包含所有内容,然后断开旧驱动器的连接。我使用 mergerfs 并使其再次运行。虚拟驱动器也看到了所有内容。但是当我打开 plex 并开始浏览库时,许多文件都丢失了。当我在实际驱动器或虚拟驱动器中的 shell 中查看时,文件就在那里。我想这可能是权限问题,但它们都具有相同的权限。但后来我注意到了一些东西。似乎新驱动器没有分区??? 请参阅下面的 /dev/sdd:
$ ll /dev/disk/by-id
lrwxrwxrwx 1 root root 9 Aug 10 11:45 ata-Samsung_SSD_860_EVO_500GB_S3Z1NB0K407322F -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 10 11:45 ata-Samsung_SSD_860_EVO_500GB_S3Z1NB0K407322F-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Aug 10 11:45 ata-ST3000VN000-1HJ166_W6A0WT1E -> ../../sdc
lrwxrwxrwx 1 root root 10 Aug 10 11:45 ata-ST3000VN000-1HJ166_W6A0WT1E-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Aug 10 11:45 ata-ST6000DM003-2CY186_WF302ZH2 -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 10 11:45 ata-ST6000DM003-2CY186_WF302ZH2-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Aug 10 11:45 ata-ST8000DM004-2CX188_ZCT0Z3NC -> ../../sde
lrwxrwxrwx 1 root root 10 Aug 10 11:45 ata-ST8000DM004-2CX188_ZCT0Z3NC-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Aug 10 11:45 ata-ST8000DM004-2CX188_ZCT126M7 -> ../../sdd
lrwxrwxrwx 1 root root 9 Aug 10 11:45 wwn-0x5000c5008ba1a16a -> ../../sdc
lrwxrwxrwx 1 root root 10 Aug 10 11:45 wwn-0x5000c5008ba1a16a-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Aug 10 11:45 wwn-0x5000c500ad0e827b -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 10 11:45 wwn-0x5000c500ad0e827b-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Aug 10 11:45 wwn-0x5000c500b60bbee0 -> ../../sde
lrwxrwxrwx 1 root root 10 Aug 10 11:45 wwn-0x5000c500b60bbee0-part1 -> ../../sde1
*** lrwxrwxrwx 1 root root 9 Aug 10 11:45 wwn-0x5000c500b68f6daa -> ../../sdd
lrwxrwxrwx 1 root root 9 Aug 10 11:45 wwn-0x5002538e403174b6 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 10 11:45 wwn-0x5002538e403174b6-part1 -> ../../sda1
WTH??? 这真的可能吗?如果没有分区,我怎么能将文件复制到它上面?这是否可能是导致 plex 无法看到该驱动器上的文件(即使文件系统可以看到它们)的原因?有没有一种简单的方法可以修复它,而不必再次将所有内容复制到磁盘上?幸运的是,我还有故障磁盘,所以如果有必要,我可以这样做。
以下是 fdisk -l 的一些输出
Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B51746F5-BC86-48AB-A769-5EFBCD2F0527
Device Start End Sectors Size Type
/dev/sdc1 2048 5860532223 5860530176 2.7T Linux filesystem
// this one
Disk /dev/sdd: 7.3 TiB, 8001563222016 bytes, 15628053168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sde: 7.3 TiB, 8001563222016 bytes, 15628053168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E4402E59-8CB0-454E-A7B3-935AD70C4CB7
Device Start End Sectors Size Type
/dev/sde1 2048 15628052479 15628050432 7.3T Linux filesystem