Hi nfodiz,
first of all I would like to thank you for this great step by step guide! It’s simply enough even for me that I haven’t it at all with linux world!. I had an empty box so I bought 2 new WD 1TB disks. I followed GUIDE 2 since my disks was new. When I finished with both I droped them into box and the led light turned on Blue and after few seconds solid light green. I tried to access Dashbord with no luck also tried to discover the ip with also no result. After that I followed Guide 2 from the begining with the first disk and I noticed that even at the end of the script the message was " all done! device should be debricked!" there were errors before. Here is the whole output for the script:
root@sysresccd /mnt/usb % ./debrick.sh rootfs.img /dev/sda destroy
********************** DISK **********************
script will use the following disk:
Model: ATA WDC WD10EFRX-68F (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
is this REALLY the disk you want? [y] y
********************** IMAGE **********************
********************** IMPLEMENTATION **********************
everything is now prepared!
device: /dev/sda
image_img: rootfs.img
destroy: true
this is the point of no return, continue? [y] y
dd: error writing ‘/dev/sda1’: No space left on device
10+0 records in
9+0 records out
10366976 bytes (10 MB) copied, 0.00654839 s, 1.6 GB/s
dd: error writing ‘/dev/sda2’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000728724 s, 0.0 kB/s
dd: error writing ‘/dev/sda3’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000561035 s, 0.0 kB/s
dd: error writing ‘/dev/sda4’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000424635 s, 0.0 kB/s
Testing with pattern 0x00: done
Reading and comparing: done
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel gpt
(parted) mkpart primary 528M 2576M
(parted) mkpart primary 2576M 4624M
(parted) mkpart primary 16M 528M
(parted) mkpart primary 4624M -1M
(parted) set 1 raid on
(parted) set 2 raid on
(parted) set 3 raid on
(parted) set 4 raid on
(parted) quit
Information: You may need to update /etc/fstab.
Warning: blocksize 65536 not usable on most systems.
mke2fs 1.42.13 (17-May-2015)
mkfs.ext4: Device size reported to be zero. Invalid partition specified, or
partition table wasn’t reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
destroying was done, would you like to continue with installation? [y] y
mdadm: /dev/sda1 is not a block device
mdadm: Cannot find /dev/md0: No such file or directory
mke2fs 1.42.13 (17-May-2015)
The file /dev/md0 does not exist and no size was specified.
mdadm: error opening /dev/md0: No such file or directory
synchronize raid… mdadm: Cannot find /dev/md0: No such file or directory
done
copying image to disk…
dd: writing to ‘/dev/md0’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00124604 s, 0.0 kB/s
mount: /dev/md0 is not a block device (maybe try `-o loop’?)
cp: cannot stat ‘/mnt/md0/usr/local/share/bootmd0.scr’: No such file or directory
./debrick.sh: line 361: /mnt/md0/etc/nas/service_startup/ssh: No such file or directory
umount: /mnt/md0: not mounted
mdadm: /dev/md0 does not appear to be an md device
BLKGETSIZE: Inappropriate ioctl for device
BLKGETSIZE: Inappropriate ioctl for device
all done! device should be debricked!
Sorry but I have already said I am totally out of linux world.
Thanks in advance for helping.