我有一个外部驱动器,用于存储大量数据;该驱动器已使用 gnome 磁盘实用程序加密。我有第二个驱动器用于冗余,我正准备对其进行加密。不幸的是,我覆盖了原始外部驱动器的设备簿分区:
~$ sudo dd if=/dev/urandom of=/dev/sdb1
15585+0 records in
15584+0 records out
7979008 bytes (8.0 MB) copied, 1.30506 s, 6.1 MB/s
所以这是一场灾难。诅咒我的胖手指。我可以采取什么措施来恢复对驱动器的访问?
下面是 fdisk 的一些输出。设备按sdb
原始驱动器安装,sdc 上的设备为新驱动器。
Disk /dev/sdb: 2000.4 GB, 2000398839808 bytes
255 heads, 63 sectors/track, 30400 cylinders, total 488378623 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 488378622 1953514488 ee GPT
...
Disk /dev/sdc: 1000.2 GB, 1000204138496 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523708 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: 0x7e3058f0
Device Boot Start End Blocks Id System
/dev/sdc1 2048 1953519615 976758784 7 HPFS/NTFS/exFAT