


If one (or more) of the source disks is (partially) defective, add conv=noerror,sync so dd will fill those damaged areas with zeroes in the image.jontheil wrote:And I will be careful with the syntax of dd.
Depends on what's on the disks. Output of fdisk -l and file -s /dev/yourdisk* might help, also read up on dmraid for Linux support of various bios softraid solutions.jontheil wrote:what do I do next?
don't know anyI would prefer something with a nice GUI

Code: Select all
mdadm -E /dev/sdb
/dev/sdb:
Magic : Intel Raid ISM Cfg Sig.
Version : 1.2.02
Orig Family : 00000000
Family : 226608eb
Generation : 000000be
UUID : 89dddf72:2d1472d1:731c54d7:d5685e55
Checksum : 154e2da6 correct
MPB Sectors : 2
Disks : 3
RAID Devices : 1
Disk00 Serial : WD-WMANS1321860
State : active
Id : 00000100
Usable Size : 145221598 (69.25 GiB 74.35 GB)
[Volume0]:
UUID : 376f21d1:f8b44eed:9f1c794e:feefb9bb
RAID Level : 5
Members : 3
Slots : [U_U]
This Slot : 0
Array Size : 290441088 (138.49 GiB 148.71 GB)
Per Dev Size : 96813696 (46.16 GiB 49.57 GB)
Sector Offset : 0
Num Stripes : 756357
Chunk Size : 64 KiB
Reserved : 0
Migrate State : idle
Map State : degraded
Dirty State : clean
Disk01 Serial : D-WMANS1321994:0
State : active
Id : ffffffff
Usable Size : 145221598 (69.25 GiB 74.35 GB)
Disk02 Serial : WD-WMAP41668380
State : active
Id : 00000000
Usable Size : 293042254 (139.73 GiB 150.04 GB)
Code: Select all
/dev/sdc:
Magic : Intel Raid ISM Cfg Sig.
Version : 1.2.02
Orig Family : 00000000
Family : 226608eb
Generation : 000000bc
UUID : 89dddf72:2d1472d1:731c54d7:d5685e55
Checksum : 081a3efa correct
MPB Sectors : 2
Disks : 3
RAID Devices : 1
Disk01 Serial : WD-WMANS1321994
State : active
Id : 00010000
Usable Size : 145221598 (69.25 GiB 74.35 GB)
[Volume0]:
UUID : 376f21d1:f8b44eed:9f1c794e:feefb9bb
RAID Level : 5
Members : 3
Slots : [UUU]
This Slot : 1
Array Size : 290441088 (138.49 GiB 148.71 GB)
Per Dev Size : 96813696 (46.16 GiB 49.57 GB)
Sector Offset : 0
Num Stripes : 756357
Chunk Size : 64 KiB
Reserved : 0
Migrate State : idle
Map State : normal
Dirty State : clean
Disk00 Serial : WD-WMANS1321860
State : active
Id : 00000100
Usable Size : 145221598 (69.25 GiB 74.35 GB)
Disk02 Serial : WD-WMAP41668380
State : active
Id : 00000000
Usable Size : 293042254 (139.73 GiB 150.04 GB)Code: Select all
# ls -ls
total 145227776
72613888 -rwxr-xr-x 1 root root 74356621312 Mar 4 00:02 sdb
72613888 -rwxr-xr-x 1 root root 74356621312 Mar 4 03:30 sdcCode: Select all
#fdisk -l sdb
Disk sdb: 74.4 GB, 74356621312 bytes
255 heads, 63 sectors/track, 9040 cylinders, total 145227776 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 identifier: 0x90909090
Device Boot Start End Blocks Id System
sdb1 * 63 290439134 145219536 a5 FreeBSD
Code: Select all
# fdisk -l sdc
Disk sdc: 74.4 GB, 74356621312 bytes
255 heads, 63 sectors/track, 9040 cylinders, total 145227776 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 identifier: 0xf366f367
Device Boot Start End Blocks Id System
Code: Select all
# ls /dev | grep sd
sda
sda1
sda2
sda3
sda4
sdb
sdb1
sdb5
sdb6
sdc

Code: Select all
$ sudo /sbin/mdadm -E /dev/sda1
/dev/sda1:
Magic : a92b4efcCode: Select all
mdadm --examine

Code: Select all
mount -o loop,ro -t iso9660 /path/to/random.iso /mnt/floppyCode: Select all
run mdadm --examine on the two physical disks (see output above)
Code: Select all
dd the two disks to image files (sdb and sdc)Code: Select all
run losetup /dev/loop0 sdb && losetup /dev/loop1 sdcCode: Select all
run mdadm --examine on loop0 and loop1:
mdadm: No md superblock detected on /dev/loop1Code: Select all
mount -o loop,ro /dev/loop0:
mount: you must specify the filesystem typeCode: Select all
mount -o loop,ro /dev/loop1:
mount: you must specify the filesystem type
Code: Select all
#fdisk -l (stripped):
Disk /dev/sdb: 74.4 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders, total 145226112 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 identifier: 0x90909090
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 290439134 145219536 a5 FreeBSD
Disk /dev/sdc: 74.4 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders, total 145226112 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 identifier: 0xf366f367
Device Boot Start End Blocks Id System


Code: Select all
% mdadm -E /dev/loop2
mdadm: No md superblock detected on /dev/loop2.
% export IMSM_NO_PLATFORM=1
% export IMSM_DEVNAME_AS_SERIAL=1
% mdadm -Eb /dev/loop2
ARRAY metadata=imsm UUID=25137636:2ff64e75:10ae5444:4e8f609b
ARRAY /dev/md/Volume0 container=25137636:2ff64e75:10ae5444:4e8f609b member=0 UUID=72acd5fa:35c5a901:995af79b:83a29de1