Dear to all, I have 2 drive WD60EFRX on my NAS. sda2 is the drive in NTFS file system that contains the data. sdb1 is the drive blank.
I want make a raid 1 (mirror) with the sdb1 drive, format it in EXT4 file system, copy the files from sda2 drive in it, make a checking of copy with md5/sha utility and finally add sda2 to raid. What are the steps to do it? I have read here https://askubuntu.com/question…sting-drive/526785#526785 and here https://www.linuxbabe.com/linu…nux-software-raid-1-setup. I have runned all the steps in the second link except use of fdisk (I have used gdisk because the size is of 6 Tera) and I have used fd00 instead of fd (system doesn't accept it) so I have got "Changed type of partition to 'Linux RAID'" instead of "Linux raid autodetect".
The other doubt is when I have runned "sudo parted /dev/sda mklabel gpt" command and I have got "Information: You may need to update /etc/fstab."... Should I made it? How?
When I have tried to do copy with "cp -aR /dev/sda2/* /dev/sdb1" I have got "zsh: no matches found: /dev/sdb2/*". When I have reboot the system instead of md0 as in the tut the raid name was md127 (I don't know if it has been mointed).
So question is: considering that webinterface of openmediavault doesn't allow to make a raid with one drive, what are steps with ssh commands to make raid as written above and save it also for the reboot of system? If I log into openmediavault web interface as user "admin" sda is mounted, while not always with "mount -l" on ssh (login as root) sda result mounted.
Somebody can help me? How can I check that copy is fine from md5 or sha utility?
now I have deleted raid, unmount after running
sudo mkdir /mnt/raid1
sudo mount /dev/md0 /mnt/raid1
deleted folder raid 1 and now I'm erasing sdb drive from omv web interface.
Hope that somebody help me.