Home > OS >  How do you mount a raid 1 hard disk Ubuntu18.04 down please?
How do you mount a raid 1 hard disk Ubuntu18.04 down please?

Time:09-21

Before had sent a consultation, because with a group of hui group raid 1 hard disk error, unable to start the system, in order to restore data, so you need to who the two pieces of 4 t hard drive copy out under the new system,
Consulting group of fai officials, the answer is given by the following steps to restore:

============================================================================================================
if the disk is configured to RAID on the Synology NAS or SHR, please operate in accordance with the step 7 to 10; If you want to recover the file located on a hard disk drive using only the basic storage type models, please skip to step 10,
Enter the following command (sudo will execute permissions for the root),

Ubuntu @ Ubuntu: ~ $sudo -i

Enter the following command to install for mdadm and lvm2 (both for RAID management tool), if not installed lvm2, could not operate vgchange,

Root @ ubuntu: ~ $apt - get the update
Root @ ubuntu: ~ $apt - get the install - y for mdadm lvm2

Enter the following command to mount all hard disk, taken from the Synology NAS, the result may be due to Synology NAS storage area on the configuration and differ somewhat,

Root @ ubuntu: ~ $for mdadm - the Asf & amp; & Vgchange - ay

Enter the following command to all hard disk mounted as read-only access to information, in the ${device_path} input device paths, ${mount_point} enter the mount point, your information will be in the path of the hardpoint,

$mount ${device_path} ${mount_point} -o ro

===============================================================================================================

Ubuntu @ Ubuntu: ~ $sudo -i
Root @ ubuntu: ~ $apt - get the update
Root @ ubuntu: ~ $apt - get the install - y for mdadm lvm2
Root @ ubuntu: ~ $for mdadm - the Asf & amp; & Vgchange - ay
I carried out the above command, from the fdisk information is as follows:
Root @ Leslie - System - the Product - Name: ~ # sudo fdisk -l
Disk/dev/loop0:4 MiB, 4218880 bytes, 8240 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/dev/loop1:149.9 the MiB, 157184000 bytes, 307000 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/dev/loop2:1008 KiB, 1032192 bytes, 2016 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/dev/loop3:54.4 the MiB, 57069568 bytes, 111464 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/dev/loop4:14.8 the MiB, 15462400 bytes, 30200 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/dev/loop5:88.5 the MiB, 92778496 bytes, 181208 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/dev/loop6:42.8 the MiB, 44879872 bytes, 87656 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/dev/loop7:3.7 the MiB, 3825664 bytes, 7472 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/dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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
DOS Disklabel type:
Disk identifier: 0 x624aa2e0

Device Boot Sectors Start End Size Id Type
/dev/sda1 * 7, 63, 145323989, 145323927, 69.3 G HPFS/NTFS/for exFAT
862.2 G/dev/sda2, 145338014, 1953523711, 1808185698 f W95 Ext 'd (LBA)
/dev/sda5 7 HPFS/NTFS/145338016, 675854549, 530516534, 253 g for exFAT
/dev/sda6 7 HPFS/NTFS/675854613, 1290260474, 614405862, 293 g for exFAT
/dev/sda7 7, 1290260538, 1801540297, 511279760, 243.8 G HPFS/NTFS/for exFAT
72.5 G/dev/sda8, 1801541632, 1953523711, 151982080, 83 Linux


Disk/dev/SDB: 3.7 TiB, 4000787030016 bytes, 7814037168 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: C94457FF c44-179 - b - 4 - A6E5 - B4B8EF1684D6

Device Start End Sectors of the Size, Type,
2.4 G/dev/sdb1, 2048, 4982527, 4980480 Linux RAID
/dev/sdb2, 4982528, 9176831, 4194304 2 g Linux RAID
3.6 T/dev/sdb5, 9453280, 7813830239, 7804376960 Linux RAID


Disk/dev/mapper/osprober - Linux - sdb5:3.6 TiB, 3995841003520 bytes, 7804376960 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


Excuse me left step
$mount ${device_path} ${mount_point} -o ro [/b]
This command should how to write? For the first time to use, small white one, thank you,
  • Related