I follow instructions by typing the following commands because I have change my hard drive with a new one.
mkdir /mnt/usb
mount -t vfat /dev/sdb1 /mnt/usb
cd /mnt/usb
mdadm -S /dev/md0
./debrick.sh rootfs.img /dev/sda destroy
The output results from the debrick script is:
********************** DISK **********************
script will use the following disk:
Model: ATA WDC WD10EZRX-00L (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: writing `/dev/sda1’: No space left on device
10+0 records in
9+0 records out
9863168 bytes (9.9 MB) copied, 0.0033813 s, 2.9 GB/s
dd: writing `/dev/sda2’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.0003717 s, 0.0 kB/s
dd: writing `/dev/sda3’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000348085 s, 0.0 kB/s
dd: writing `/dev/sda4’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000368711 s, 0.0 kB/s
Testing with pattern 0x00: done
Reading and comparing: done
GNU Parted 3.1
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) quit
Information: You may need to update /etc/fstab.
Warning: blocksize 65536 not usable on most systems.
mke2fs 1.42.3 (14-May-2012)
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?
As you see, I receive this error for ext4 partition: “Device size reported to be zero. Invalid partition…” and I can’t proceed with installation.
Could you please tell me what I do wrong?