Рассажу свою историю восстановления WD My book live. Товарищ дал мне его на оживление, корпус он уже снял. Но, по-видимому, не стал сам лезть, или у него ничего не получилось и он оказался у меня. Нашел я мануал в сети.
Скачал на флешку debrick.sh Скачал официальный deb пакет последней версии (пойдет любая версия) с сайта производителя Распаковал 7-zip-ом файл rootfs.img
Скачал я live CD Linux - ISO образ Slax версии 7.0.8 с официального сайта
Создал загрузочную флешку, положил в корень ISO образ и прописал menu.lst для Slax по руководству
Загрузился с нее, запустил терминал. Нашел путь к моей флешке с файлами - это /mnt/live/memory/data Сделал исполянемым файл debrick.sh:
root@slax: cd /mnt/live/memory/data
root@slax:/mnt/live/memory/data# chmod +x debrick.sh
Посмотрел, какой диск нас интересует, им оказался /dev/sda
root@slax:/mnt/live/memory/data# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 1953525167 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 15.9 GB, 15938355200 bytes
186 heads, 40 sectors/track, 4184 cylinders, total 31129600 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: 0x3f2a00c6
Device Boot Start End Blocks Id System
/dev/sdb1 * 16128 31129599 15556736 7 HPFS/NTFS/exFAT
Осталось запустить скрипт (!!!внимательно смотрите пути - пути нужно указывать полные, а не относительные, я уже пробовал, не повторяйте моих ошибок) /mnt/live/memory/data/debrick.sh /mnt/live/memory/data/rootfs.img /dev/sda destroy
destroy - уничтожит все ваши данные на диске - о резервной копии позаботьтесь заранее.
root@slax:/mnt/live/memory/data# /mnt/live/memory/data/debrick.sh /mnt/live/memory/data/rootfs.img /dev/sda destroy
********************** DISK **********************
script will use the following disk:
Model: ATA WDC WD10EZEX-00R (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
3 15,7MB 528MB 513MB primary
1 528MB 2576MB 2048MB primary raid
2 2576MB 4624MB 2048MB primary raid
4 4624MB 1000GB 996GB ext4 primary
is this REALLY the disk you want? [y] y
********************** IMAGE **********************
********************** IMPLEMENTATION **********************
everything is now prepared!
device: /dev/sda
image_img: /mnt/live/memory/data/rootfs.img
destroy: true
this is the point of no return, continue? [y] y
32+0 records in
32+0 records out
33554432 bytes (34 MB) copied, 0,209061 s, 161 MB/s
32+0 records in
32+0 records out
33554432 bytes (34 MB) copied, 0,211423 s, 159 MB/s
32+0 records in
32+0 records out
33554432 bytes (34 MB) copied, 0,180666 s, 186 MB/s
32+0 records in
32+0 records out
33554432 bytes (34 MB) copied, 0,215466 s, 156 MB/s
Testing with pattern 0x00: done
Reading and comparing: done
GNU Parted 2.3
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.6 (21-Sep-2012)
mkfs.ext4: 65536-byte blocks too big for system (max 4096)
Proceed anyway? (y,n) y
Warning: 65536-byte blocks too big for system (max 4096), forced to continue
Filesystem label=
OS type: Linux
Block size=65536 (log=6)
Fragment size=65536 (log=6)
Stride=0 blocks, Stripe width=0 blocks
15144960 inodes, 15191344 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=133677056
232 block groups
65528 blocks per group, 65528 fragments per group
65280 inodes per group
Superblock backups stored on blocks:
65528, 196584, 327640, 458696, 589752, 1638200, 1769256, 3210872,
5307768, 8191000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
destroying was done, would you like to continue with installation? [y] y
mdadm: size set to 1999808K
mdadm: array /dev/md0 started.
mke2fs 1.42.6 (21-Sep-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
125184 inodes, 499952 blocks
24997 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=515899392
16 block groups
32768 blocks per group, 32768 fragments per group
7824 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Checking for bad blocks (read-only test): done
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
mdadm: added /dev/sda2
synchronize raid... done
copying image to disk...
3999616+0 records in
3999616+0 records out
2047803392 bytes (2,0 GB) copied, 104,517 s, 19,6 MB/s
mdadm: stopped /dev/md0
all done! device should be debricked!
Как видим, не было ошибок при выполнении кода. Готовьтесь к вопросам, утвердительно жмите на y.
На этом все подключаем обратно к корпусу, запускаем и радуемся живому устройству. Если у Вас возникли проблемы и нужна помощь, пишите, звоните, рад помочь.
- of 0
You cannot edit posts or make replies: You should be logged in before you can post.