使用软方法合并硬盘 parted mdadm

->sudo apt-get update
->sudo apt-get mdadm (安装合并硬盘的软件)
---->sudo parted /dev/sdb
->p(查看有哪些)
->rm number(删除已有的分区)
->mklabel
->New disk label type ? gpt
->yes/No? yes
->mkpart
->Partition name> []? main
->File system type? [ext2]? ext4
->Start? 0
->End? 4TB
----->Ignore/Cancel? Ignore
重复----->内的内容对/dev/sdc进行设置
退出进入terminal
->sudo mdadm --examine /dev/sd[b-c] (验证)
->sudo mdadm --examine /dev/sd[b-c]1 (验证)
->sudo mdadm -C /dev/md0 -l raid0 -n 2 /dev/sd[b-c]1
->sudo mdadm --create /dev/md0 --level=stripe --raid-devices=2 /dev/sd[b-c]1
->cat /proc/mdstat (验证,出现md0 7TB)
->sudo mkfs.ext4 /dev/md0
->sudo mkdir /media/work
->sudo mount /dev/md0 /media/work
->df (验证是否已经挂载)
->sudo chmod 777 -R /media/work(授权)
->ls -l /dev/disk/by-uuid/ (查看md0的uuid并拷贝下来)
->sudo gedit /etc/fstab (中最后加入 UUID=上面拷贝的id /media/work ext4 defaults 0 0)

你可能感兴趣的:(linux)