|
root@sysresccd /root % fdisk -l
Disk /dev/loop0: 317.1 MiB, 332468224 bytes, 649352
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 /dev/sda: 20 GiB, 21474836480 bytes, 41943040 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
Disklabel type: gpt
Disk identifier: F24FCD0C-734A-4E32-8E5F-A3C379507358
Device Start End Sectors Size Type
/dev/sda1 1032192 5031935 3999744 1.9G Linux RAID
/dev/sda2 5031936 9031679 3999744 1.9G Linux RAID
/dev/sda3 30720 1032191 1001472 489M Linux
filesystem
/dev/sda4 9031680 41940991 32909312 15.7G Linux
filesystem
Partition table entries are not in disk order.
Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168
sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B795E8FF-31A8-4F11-A34C-6E1B9B1D43FA
Disk /dev/sdc: 7.5 GiB, 8002732032 bytes, 15630336 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
Disklabel type: dos
Disk identifier: 0x6f20736b
Device Boot Start End Sectors Size Id
Type
/dev/sdc1 ? 778135908 1919645538 1141509631 544.3G 72
unknown
/dev/sdc2 ? 168689522 2104717761 1936028240 923.2G 65
Novell Netware 386
/dev/sdc3 ? 1869881465 3805909656 1936028192 923.2G 79
unknown
/dev/sdc4 ? 2885681152 2885736650 55499 27.1M d
unknown
Partition table entries are not in disk order.
root@sysresccd /root % mkdir /mnt/usb
root@sysresccd /root % mount -t vfat /dev/sdc /mnt/usb
root@sysresccd /root % cd /mnt/usb
root@sysresccd /mnt/usb % mdadm -S /dev/md0
mdadm: stopped /dev/md0
root@sysresccd /mnt/usb % ./debrick.sh rootfs.img /dev/sdb
destroy
********************** DISK
**********************
script will use the following disk:
Model: ST4000VX 000-1F4168 (scsi)
Disk /dev/sdb: 4001GB
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/sdb
image_img: rootfs.img
destroy: true
this is the point of no return, continue? [y] y
dd: error writing ‘/dev/sdb1’: No space left on device
10+0 records in
9+0 records out
10395648 bytes (10 MB) copied, 0.231762 s, 44.9 MB/s
dd: error writing ‘/dev/sdb2’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00339713 s, 0.0 kB/s
dd: error writing ‘/dev/sdb3’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.0029964 s, 0.0 kB/s
dd: error writing ‘/dev/sdb4’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00727841 s, 0.0 kB/s
Testing with pattern 0x00: done
Reading and comparing: done
GNU Parted 3.2
Using /dev/sdb
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.12 (29-Aug-2014)
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/sdb1 is not a block device
mdadm: Cannot find /dev/md0: No such file or directory
mke2fs 1.42.12 (29-Aug-2014)
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.00578766 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 359:
/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!
root@sysresccd /mnt/usb %
|
|