ホームサーバーをubuntu 12.04から18.04にアップグレードしました。システムはRAID 1に2.0TBの2つのディスクを保持します。18.04にマウントしようとすると、次のエラーが発生します。
mount -t ntfs/dev/md126/mnt/media
また、mount -t ntfs-3gを試しましたが、成功しませんでした。
NTFS signature is missing.
Failed to mount '/dev/md126': Invalid argument
The device '/dev/md126' 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?
Fdisk -l/dev/md126からの出力は
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: dos
Disk identifier: 0x000136a9
Device Boot Start End Sectors Size Id Type
/dev/md126p1 63 3907023111 3907023049 1.8T 7 HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
そして、gdisk -lの出力は
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Warning! Secondary partition table overlaps the last partition by
297 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/md126: 3907022848 sectors, 1.8 TiB
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): DC6C901E-C3A5-43C1-8C9E-8E6397C5F145
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 3907022814
Partitions will be aligned on 8-sector boundaries
Total free space is 29 sectors (14.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 63 3907023111 1.8 TiB 0700 Microsoft basic data
最後に、mdadm --detail/dev/m126を確認すると、次の結果が得られます
/dev/md126:
Container : /dev/md/imsm0, member 0
Raid Level : raid1
Array Size : 1953511424 (1863.01 GiB 2000.40 GB)
Used Dev Size : 1953511424 (1863.01 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 2
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Consistency Policy : resync
UUID : 562a1dd0:13fa432c:bec8c322:89cbd43f
Number Major Minor RaidDevice State
1 8 0 0 active sync /dev/sda
0 8 16 1 active sync /dev/sdb
12.04に切り替えると(新しいディスクに18.04をインストールしました)、すべて正常に動作します。
誰が何がうまくいっていないのか知っていますか?
パーティションをマウントしようとすると、同様のエラーが発生します/ dev/md126p1 -t ntfs-3g/mnt/media
Failed to read last sector (3907023047): 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/md126p1': Invalid argument
The device '/dev/md126p1' 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?
間違ったデバイスをマウントしようとしました。マウントしようとしています/dev/mda126
、これはパーティションではありません。
置換/dev/mda126
と/dev/md126p1
。