Ubuntu live stick(尝试了不同的版本:14.04、16.04、17.04)显示我的附加硬盘为 802GB,大约是 750GiB,是其实际大小 3TB 的四分之一。我无法安装它。
这与块大小有什么关系吗?这种大小的驱动器通常没有 512B 块,但 ubuntu 可能认为......
GParted 经常会给出老套的“驱动程序说块大小是 2048B,但 linux 说是 512B”的警告。
更具体地说:它实际上是 RAID1 中的两个驱动器,它们使用 LUKS/dm-crypt 加密,但我能够解锁它们,只是无法安装它们:
ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/mapper/isw_hjgegijjc_RAID1 vault
Enter the passphrase for »/dev/mapper/isw_hjgegijjc_RAID1«:
ubuntu@ubuntu:~$ sudo mkdir /mnt/vault
ubuntu@ubuntu:~$ sudo mount /dev/mapper/vault /mnt/vault
Failed to read last sector (5860524030): invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/mapper/vault': invalid argument
The device '/dev/mapper/vault' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
有趣的是:它可以与我当前的 ubuntu 安装完美兼容(但这也给我带来了一些其他麻烦),而且我担心如果我破坏那个 ubuntu 安装的话会导致数据丢失。
lsblk 确实显示了 LUKS 容器内的分区:
ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdf 8:80 0 2,7T 0 disk
└─isw_hjgegijjc_RAID1 253:0 0 746,5G 0 dmraid
└─vault 253:2 0 746,5G 0 crypt
sdd 8:48 0 2,7T 0 disk
└─isw_hjgegijjc_RAID1 253:0 0 746,5G 0 dmraid
└─vault 253:2 0 746,5G 0 crypt
sdb 8:16 0 931,5G 0 disk
├─sdb1 8:17 0 931,5G 0 part
└─isw_cebdbccfga_RAID0 253:1 0 1,8T 0 dmraid
├─isw_cebdbccfga_RAID0p2 253:4 0 109,4G 0 part
└─isw_cebdbccfga_RAID0p1 253:3 0 1,7T 0 part
sde 8:64 1 7,5G 0 disk /cdrom
├─sde2 8:66 1 2,3M 0 part
└─sde1 8:65 1 1,5G 0 part
loop0 7:0 0 1,4G 1 loop /rofs
sdc 8:32 0 931,5G 0 disk
└─isw_cebdbccfga_RAID0 253:1 0 1,8T 0 dmraid
├─isw_cebdbccfga_RAID0p2 253:4 0 109,4G 0 part
└─isw_cebdbccfga_RAID0p1 253:3 0 1,7T 0 part
sda 8:0 0 119,2G 0 disk
├─sda2 8:2 0 77,4G 0 part
├─sda5 8:5 0 33,8G 0 part
├─sda1 8:1 0 100M 0 part
└─sda6 8:6 0 8G 0 part [SWAP]