1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
root@vm-ubu:/home/rui# fdisk -l /dev/loop52
Disk /dev/loop52: 1 GiB, 1073741824 bytes, 2097152 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
root@vm-ubu:/home/rui# lvcreate -L 1073741824 bytes VG0 -n LVA
Volume group "bytes" not found
Cannot process volume group bytes
root@vm-ubu:/home/rui# lvcreate -L 1073741824bytes VG0 -n LVA
WARNING: ext4 signature detected on /dev/VG0/LVA at offset 1080. Wipe it? [y/n]: ^C Interrupted...
Aborted wiping of ext4.
1 existing signature left on the device.
Logical volume "LVA" created.
root@vm-ubu:/home/rui# mkdir /A2
root@vm-ubu:/home/rui# sudo mount /dev/mapper/VG0-LVA /A2/
mount: /A2: wrong fs type, bad option, bad superblock on /dev/mapper/VG0-LVA, missing codepage or helper program, or other error.
root@vm-ubu:/home/rui# ddrescue -d -f -r3 /data/A.img /dev/mapper/VG0-LVA rescue_from_img.log
GNU ddrescue 1.22
ipos: 1073 MB, non-trimmed: 0 B, current rate: 266 MB/s
opos: 1073 MB, non-scraped: 0 B, average rate: 357 MB/s
non-tried: 0 B, bad-sector: 0 B, error rate: 0 B/s
rescued: 1073 MB, bad areas: 0, run time: 2s
pct rescued: 100.00%, read errors: 0, remaining time: n/a
time since last successful read: n/a
Finished
root@vm-ubu:/home/rui# sudo mount /dev/mapper/VG0-LVA /A2/
root@vm-ubu:/home/rui# ls /A2/
100.dat 15.dat 20.dat 26.dat 31.dat 37.dat 42.dat 48.dat 53.dat 59.dat
root@vm-ubu:/home/rui#
|