I just started using Linux again as a media server, because Windows10 was just giving me too much trouble. I'm trying to mount a RAID 10 array that I was using on the Windows 10 machine that contains all of my media but am running into issues. I'm using a Vantec HX4R as my RAID controller and it's simply connected via USB 3.0 to my Linux box.
Using the below fdisk
command you can see the sdb
disk (RAID array) looks to be separated into 2 "Microsoft type" partitions.
$ sudo fdisk -l
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 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: 0x326e74f3
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 218023935 218021888 104G 83 Linux
/dev/sda2 218025982 234440703 16414722 7.8G 5 Extended
/dev/sda5 218025984 234440703 16414720 7.8G 82 Linux swap / Solaris
The primary GPT table is corrupt, but the backup appears OK, so that will be used.
Disk /dev/sdb: 3.7 TiB, 4000694927360 bytes, 7813857280 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
Disklabel type: gpt
Disk identifier: 68A32E80-0B76-4EBB-9EC8-2545316B2462
Device Start End Sectors Size Type
/dev/sdb1 34 262177 262144 128M Microsoft reserved
/dev/sdb2 264192 7813855231 7813591040 3.7T Microsoft basic data
If I try to mount with something like
sudo ntfs-3g /dev/sdb2 /mnt/wind_D
I get an error:
ntfs-3g: Failed to access volume '/dev/sdb2': No such file or directory
parted
shows that it recognizes the RAID hardware:
$ sudo parted /dev/sdb print
Error: The primary GPT table is corrupt, but the backup appears OK, so that will
be used.
OK/Cancel? OK
Model: JMicron H/W RAID10 (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 134MB 134MB Microsoft reserved partition msftres
2 135MB 4001GB 4001GB ntfs Basic data partition msftdata
What I'm doing wrong? What I could be missing? I'm having a hell of a time trying to figure out how to get Ubuntu to mount this. All I need is that sbd2
partition.
gdisk
(specifically its backup option from the recovery menu) or a similar tool to fix the GPT using its back-up (as indicated byfdisk
) and report back? Thanks.sudo gdisk /dev/sdb2 GPT fdisk (gdisk) version 1.0.1 Problem opening /dev/sdb2 for reading! Error is 2. The specified file does not exist!
--- UPDATE sorry once (/dev/sdb) I targeted the disk I got in to the menu/dev/sdb2
is a reference to a drive partition – which the kernel didn't create because it didn't find a respective valid partition table entry for it. The related partition table is on the underlying drive whose reference is stored at/dev/sdb
. Thus you need to runsudo gdisk /dev/sdb
to fix the aforementioned partition table.{}
button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks.