![在 lsblk、blkid 或 mount 下看不到已安装的驱动器](https://linux22.com/image/197266/%E5%9C%A8%20lsblk%E3%80%81blkid%20%E6%88%96%20mount%20%E4%B8%8B%E7%9C%8B%E4%B8%8D%E5%88%B0%E5%B7%B2%E5%AE%89%E8%A3%85%E7%9A%84%E9%A9%B1%E5%8A%A8%E5%99%A8.png)
我已通过 /etc/fstab 使用以下条目安装了外部硬盘驱动器:
UUID=a8286fc9-5b08-41d9-8c4e-cb993a8976d1 /home/bu/safe-heaven-2/ ext4 defaults 0
我可以从此磁盘读取/写入,但我遇到一些与通过 backintime 进行备份相关的问题(见下文)。因此,我开始四处寻找,看看是否能找到任何信息,但由于某种原因,我无法使用任何命令 或 来查看该mount
驱动blkid
器lsblk
。所以我被困住了。这可能是什么原因?
手头的“实际”问题:这是一个新的 2TB 驱动器,我用来进行备份,但由于某种原因,backintime 不断告诉我磁盘在某个时刻已满。这不可能是真的,因为我正在尝试(部分)备份一个只有 1TB 大且绝非满的磁盘。
当我尝试fsck /home/bu/safe-heaven-2
在此磁盘上执行操作时,出现以下错误:
fsck.ext4: Unable to resolve 'UUID=a8286fc9-5b08-41d9-8c4e-cb993a8976d1'
但正如我所写,我可以读取/写入该磁盘。我完全困惑了:D 请帮忙!
fdisk -l
编辑:按要求输出:
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 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/ram1: 4 MiB, 4194304 bytes, 8192 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/ram2: 4 MiB, 4194304 bytes, 8192 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/ram3: 4 MiB, 4194304 bytes, 8192 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/ram4: 4 MiB, 4194304 bytes, 8192 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/ram5: 4 MiB, 4194304 bytes, 8192 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/ram6: 4 MiB, 4194304 bytes, 8192 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/ram7: 4 MiB, 4194304 bytes, 8192 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/ram8: 4 MiB, 4194304 bytes, 8192 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/ram9: 4 MiB, 4194304 bytes, 8192 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/ram10: 4 MiB, 4194304 bytes, 8192 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/ram11: 4 MiB, 4194304 bytes, 8192 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/ram12: 4 MiB, 4194304 bytes, 8192 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/ram13: 4 MiB, 4194304 bytes, 8192 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/ram14: 4 MiB, 4194304 bytes, 8192 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/ram15: 4 MiB, 4194304 bytes, 8192 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/mmcblk0: 14,9 GiB, 15931539456 bytes, 31116288 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
Disklabel type: dos
Disk identifier: 0x1ddfbf63
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 532480 31116287 30583808 14,6G 83 Linux
Disk /dev/sdb: 931,5 GiB, 1000170586112 bytes, 1953458176 sectors
Disk model: Elements 10A8
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x07e93288
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1953458175 1953456128 931,5G 83 Linux
答案1
你永远无法fsck
修复挂载点,更重要的是 - 扫描的分区必须取消挂载,以免fsck
造成弊大于利。
因此,请先卸载它,然后执行以下操作:
fsck -fn /dev/disk/by-uuid/...
如果发现一些错误,并且您想要修复所有错误,则可以执行以下操作:
fsck -fy /dev/disk/by-uuid/...
另请注意,除了 UUID 之外还有其他选项,只需点击双选项卡即可/dev/disk/by-
了解所有选项。
有以下选项:
by-id/
by-label/
by-partlabel/
by-partuuid/
by-path/
by-uuid/
如果那里没有找到
尝试检查系统消息日志:
dmesg
例如你应该从以下开始:
dmesg | grep sda
正如我所看到的,/dev/sdb
存在fdisk -l
但/dev/sda
不存在,或者更多信息:
dmesg | grep sd
但如果元素10A8是您找不到的驱动器,然后搜索sdb
.