gdisk -l /dev/sdb
mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdb2
mkdir /md0
mount /dev/md0 /md0
ls /md0
There is no issue to use two partitions of a same disk in a raid1. I assume wd set it to have two synchronized partitions. of course it is less secure than if you have two disksfvdw wrote:I am a little confused about that two partitions of the same disk are used for the raid 1 array /dev/md0, normally you use for raid two different disks.
Anyhow to assembe the raid array I think you should give this command
Model: ATA WDC WD20EFRX-68E (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
3 15.7MB 528MB 513MB linux-swap(v1) primary
1 528MB 2576MB 2048MB ext3 primary raid
2 2576MB 4624MB 2048MB ext3 primary raid
5 4624MB 4724MB 99.6MB primary
6 4724MB 4824MB 101MB primary
7 4824MB 4826MB 1049kB primary
8 4826MB 4828MB 2097kB primary
4 4828MB 2000GB 1996GB ext4 primary
GPT fdisk (gdisk) version 1.0.9
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 11721045168 sectors, 5.5 TiB
Model: EFRX-68MYMN1
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 2F3EF18F-B093-438B-8853-954EE38345CA
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 11721045134
Partitions will be aligned on 2048-sector boundaries
Total free space is 31853 sectors (15.6 MiB)
Number Start (sector) End (sector) Size Code Name
1 1032192 5031935 1.9 GiB FD00 primary
2 5031936 9031679 1.9 GiB FD00 primary
3 30720 1032191 489.0 MiB 0700 primary
4 9428992 11721043967 5.5 TiB 0700 primary
5 9031680 9226239 95.0 MiB 0700 primary
6 9226240 9422847 96.0 MiB 0700 primary
7 9422848 9424895 1024.0 KiB 0700 primary
8 9424896 9428991 2.0 MiB 0700 primary
total 104
drwxr-xr-x 3 root root 4096 Jun 7 12:00 CacheVolume
drwxr-xr-x 2 root root 4096 Jan 10 2022 DataVolume
drwxr-xr-x 2 root root 4096 Jun 7 12:04 bin
drwxr-xr-x 2 root root 4096 Jun 7 11:59 boot
drwxr-xr-x 3 root root 4096 Jun 3 2013 dev
drwxr-xr-x 78 root root 4096 Jun 10 14:02 etc
drwxr-xr-x 2 root root 4096 Sep 9 2013 home
drwxr-xr-x 14 root root 4096 Jun 8 14:20 lib
drwx------ 2 root root 16384 Jan 10 2022 lost+found
drwxr-xr-x 2 root root 4096 Sep 27 2013 media
drwxr-xr-x 2 root root 4096 Sep 9 2013 mnt
drwxr-xr-x 6 root root 4096 Jan 10 2022 nfs
drwxr-xr-x 2 root root 4096 Sep 27 2013 opt
drwxr-xr-x 2 root root 4096 Sep 9 2013 proc
drwx------ 2 root root 4096 Jan 10 2022 root
drwxr-xr-x 8 root root 4096 Jul 12 2012 run
drwxr-xr-x 2 root root 4096 Jun 8 14:20 sbin
lrwxrwxrwx 1 root root 18 Jan 10 2022 shares -> /DataVolume/shares
drwxr-xr-x 3 root root 4096 Jan 10 2022 srv
drwxr-xr-x 2 root root 4096 Sep 9 2013 sys
drwxrwxr-x 3 root liveuser 4096 Jun 7 12:04 system
drwxrwxrwt 2 root root 4096 Jun 10 14:02 tmp
drwxr-xr-x 10 root root 4096 Sep 27 2013 usr
drwxr-xr-x 13 root root 4096 Jun 7 12:04 var
mount: /mnt/part8: wrong fs type, bad option, bad superblock on /dev/sdb8, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
#!/bin/sh
## Button initial state
btn_status=0
get_button_status
sata
satapart 0x3008000 5 0x5000
sata stop
# This is customized for each environment variable script
bootargs="console=ttyS0,115200n8, init=/sbin/init"
bootargs="$bootargs root=/dev/md0 raid=autodetect"
bootargs="$bootargs rootfstype=ext3 rw noinitrd debug initcall_debug swapaccount=1 panic=3"
bootargs="$bootargs mac_addr=$eth0.ethaddr"
bootargs="$bootargs model=$model serial=$serial board_test=$board_test btn_status=$btn_status"
bootm /dev/mem.uImage
Users browsing this forum: No registered users and 1 guest