我们有大约 1985 年的磁盘,它有一个 Unix。但我们不知道 Unix 的类型。我做了以下步骤:
dd if=/dev/sdc of./all_of_disk.iso #sdc is the given disk
然后 :
hexdump -C all_of_disk.iso > hex.dump
grep -i sysv hex.dump
00000000 53 59 53 56 00 00 00 00 00 00 00 00 00 00 00 00 |SYSV............|
000ea4a0 00 00 53 59 53 56 00 00 00 00 00 00 00 00 00 00 |..SYSV..........|
00651130 5f 67 74 73 79 73 76 2e 6f 00 00 00 00 00 00 00 |_gtsysv.o.......|
00652000 00 00 02 00 67 74 73 79 73 76 00 00 00 00 13 5c |....gtsysv.....\|
00652010 00 01 00 00 02 00 63 70 73 79 73 76 00 00 00 00 |......cpsysv....|
00652580 65 6e 5f 73 79 73 76 5f 63 6f 75 6e 74 00 6f 70 |en_sysv_count.op|
00652590 65 6e 5f 73 79 73 76 5f 66 69 72 73 74 00 6f 70 |en_sysv_first.op|
006525a0 65 6e 5f 73 79 73 76 5f 6c 61 73 74 00 72 65 74 |en_sysv_last.ret|
007101c0 00 00 53 59 53 56 00 00 00 00 00 00 00 00 00 00 |..SYSV..........|
注意:数据的第一个字是 SYSV。
zgrep -i sysv /proc/config.gz
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_SYSV68_PARTITION=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_SYSV_FS=y
我的磁盘:
fdisk -l ./all_of_disk.iso
Disk ./all_of_disk.iso: 550.5 MiB, 577241088 bytes, 1127424 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
parted ./all_of_disk.iso print
Error: /home/mohsen/all_of_disk.iso: unrecognised disk label
Model: (file)
Disk /home/mohsen/all_of_disk.iso: 577MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
问题:我们需要挂载该磁盘,但出现以下错误:
mount -o loop -t sysv ./all_of_disk.iso ./x/
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
你有什么主意吗?