· 6 years ago · Jan 13, 2020, 11:32 PM
1PS. La próxima vez puede ejecutar este comando directamente:
2/usr/bin/ocs-onthefly -g auto -e1 auto -e2 -r -j2 -fsck -pa choose -f sdc -t nvme0n1
3Este comando se guarda con este nombre de archivo para un uso posterior si es necesario: /tmp/ocs-onthefly-2020-01-13-23-14
4*****************************************************.
5Pulse "Intro" para continuar...
6*****************************************************.
7///WARNING/// filesystem.squashfs not found! No idea where is LIVE MEDIA!!! Assume this is running in DRBL client.
8*****************************************************.
9*****************************************************.
10Searching for data partition(s)...
11Excluding busy partition or disk...
12Unmounted partitions (including extended or swap): nvme0n1p1 nvme0n1p2
13Collecting info... done!
14Getting /dev/nvme0n1p2 info...
15ATENCIÓN!!! ATENCIÓN!!! ATENCIÓN!!!
16ATENCIÓN! ¡LOS DATOS EXISTENTES EN ESTE/ESTOS DISCODURO(S)/PARTICION(ES) SERÁN SOBRESCRITOS! TODOS LOS DATOS SE PERDERÁN: nvme0n1
17*****************************************************.
18Machine: System Product Name
19nvme0n1 (500GB_Samsung_SSD_960_EVO_500GB__Samsung_SSD_960_EVO_500GB_S3X4NB0K348178D)
20nvme0n1p2 (433.8G_ext4(In_Samsung_SSD_960_EVO_500GB_)_Samsung_SSD_960_EVO_500GB_S3X4NB0K348178D)
21*****************************************************.
22¿Está seguro que quiere continuar? (y/n) S
23Debe poner 'y', 'yes'(sí), 'n' o 'no'. ¡Por favor introdúzcalo otra vez!!
24*****************************************************.
25¿Está seguro que quiere continuar? (y/n) y
26OK, ¡hagámoslo!!
27*****************************************************.
28Déje que le pregunte otra vez.
29ATENCIÓN!!! ATENCIÓN!!! ATENCIÓN!!!
30ATENCIÓN! ¡LOS DATOS EXISTENTES EN ESTE/ESTOS DISCODURO(S)/PARTICION(ES) SERÁN SOBRESCRITOS! TODOS LOS DATOS SE PERDERÁN: nvme0n1
31¿Está seguro que quiere continuar? (y/n) y
32OK, ¡hagámoslo!!
33*****************************************************.
34Quiere clonar el boot loader (área de código ejecutable, los primeros 446 bytes) a: nvme0n1 ?
35[Y/n] Y
36The first partition of disk /dev/sdc starts at 2049.
37Saving the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by:
38dd if=/dev/sdc of=/tmp/ocs_onthefly_local.RETvD6/src-hidden-data.img skip=1 bs=512 count=2048
392048+0 registros leídos
402048+0 registros escritos
411048576 bytes (1,0 MB, 1,0 MiB) copied, 0,00645102 s, 163 MB/s
42*****************************************************.
43Collecting partition /dev/sdc1 info...
44Collecting partition /dev/sdc2 info...
45Outputing swap UUID/LABEL of sdc2...
46Saving swap /dev/sdc2 info in /tmp/ocs_onthefly_local.RETvD6/swappt-nvme0n1p2.info...
47*****************************************************.
48*****************************************************.
49Searching for data partition(s) in source disk: sdc ...
50Excluding busy partition or disk...
51Unmounted partitions (including extended or swap): sdc1 sdc2
52Collecting info... done!
53*****************************************************.
54Running file system check and repair for /dev/sdc1...
55Running: fsck -f /dev/sdc1
56fsck de util-linux 2.34
57e2fsck 1.45.4 (23-Sep-2019)
58Paso 1: Verificando nodos-i, bloques y tamaños
59El árbol extent del nodo-i 1329085 (nivel 1) podría ser más estrecho. Optimizar<s>? sí
60El árbol extent del nodo-i 1330181 (nivel 1) podría ser más estrecho. Optimizar<s>? sí
61El árbol extent del nodo-i 5118707 (nivel 1) podría ser más corto. Optimizar<s>? sí
62Paso 1E: Optimizando los árboles extent
63Paso 2: Verificando la estructura de directorios
64Paso 3: Revisando la conectividad de directorios
65Paso 4: Revisando las cuentas de referencia
66Paso 5: Revisando el resumen de información de grupos
67
68/dev/sdc1: ***** EL SISTEMA DE FICHEROS FUE MODIFICADO *****
69/dev/sdc1: 3023380/13524992 ficheros (0.6% no contiguos), 49556304/54089345 bloques
70*****************************************************.
71Se creará la partición en el destino...
72Shutting down the Logical Volume Manager
73Finished Shutting down the Logical Volume Manager
74Trying to clean the MBR and GPT partition table on the destination disk first: /dev/nvme0n1
75Informing the OS of partition table changes... done!
76Creating MBR type's partition table...
77No partition table exists in target disk /dev/nvme0n1, try to initialize one so that we can get the disk size by parted... Running: parted -s /dev/nvme0n1 mklabel msdos
78done!
79sfdisk --force /dev/nvme0n1 < /tmp/ocs_onthefly_local.RETvD6/tgt-pt.sf
80Checking that no-one is using this disk right now ... OK
81
82Disk /dev/nvme0n1: 465.78 GiB, 500107862016 bytes, 976773168 sectors
83Disk model: Samsung SSD 960 EVO 500GB
84Units: sectors of 1 * 512 = 512 bytes
85Sector size (logical/physical): 512 bytes / 512 bytes
86I/O size (minimum/optimal): 512 bytes / 512 bytes
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103 ┌────────────────────────── Partclone ───────────────────────┐
104 │Starting to back up device(/dev/sdc1) to device(/dev/nvme0n1│
105 │p1) │
106 │Calculating bitmap... Please wait... done! │
107 │File system: EXTFS │
108 │Device size: 221.5 GB = 54089345 Blocks │
109 │Space in use: 203.0 GB = 49556304 Blocks │
110 │Free Space: 18.6 GB = 4533041 Blocks │
111 │Block size: 4096 Byte │
112 │Syncing... OK! │
113 │Partclone successfully cloned the device (/dev/sdc1) to the │
114 │device (/dev/nvme0n1p1) │
115 │ │
116 │Total Time: 00:10:34 Remaining: 00:00:00 │
117 │Ave. Rate: 19.21GB/min │
118 │ │
119 │Data Block Process: │
120 │ 100.00% │
121 │ │
122 │Total Block Process: │
123 │ 100.00% │
124 └────────────────────────────────────────────────────────────┘
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141Cloned successfully.
142*****************************************************.
143*****************************************************.
144Searching for data partition(s) in target disk for post process: nvme0n1...
145Excluding busy partition or disk...
146Unmounted partitions (including extended or swap): nvme0n1p1 nvme0n1p2
147Collecting info... done!
148*****************************************************.
149Now tuning the file system size on partition /dev/nvme0n1p1 to fit the partition size...
150e2fsck -f -y /dev/nvme0n1p1; resize2fs -p -f /dev/nvme0n1p1
151e2fsck 1.45.4 (23-Sep-2019)
152Pass 1: Checking inodes, blocks, and sizes
153Pass 2: Checking directory structure
154Pass 3: Checking directory connectivity
155Pass 4: Checking reference counts
156Pass 5: Checking group summary information
157/dev/nvme0n1p1: 3023380/13524992 files (0.6% non-contiguous), 49556304/54089345 blocks
158resize2fs 1.45.4 (23-Sep-2019)
159The filesystem is already 54089345 (4k) blocks long. Nothing to do!
160
161*****************************************************.
162Now tuning the file system size on partition /dev/nvme0n1p2 to fit the partition size...
163Unknown or unsupported partition (/dev/nvme0n1p2) found! Skip this partition /dev/nvme0n1p2.
164*****************************************************.
165Creating the swap partition if exists...
166Found the swap partition /dev/nvme0n1p2, create it by:
167mkswap -U fca504aa-17e7-4aa6-985c-c819a920005d /dev/nvme0n1p2
168Configurando espacio de intercambio versión 1, tamaño = 17,2 GiB (18503782400 bytes)
169sin etiqueta, UUID=fca504aa-17e7-4aa6-985c-c819a920005d
170*****************************************************.
171Trying to remove udev hardware record in the restored OS...
172The specified destination device: nvme0n1p1 nvme0n1p2
173Trying to remove udev persistent files. The devices to be searched: nvme0n1p1 nvme0n1p2...
174Now searching possible device /dev/nvme0n1p1...
175'/tmp/hd_img.ixXxZZ/var/lib/dbus/machine-id' borrado
176Skip /dev/nvme0n1p2 (swap).
177done!
178*****************************************************.
179Device /dev/nvme0n1p1 is not a FAT partition.
180Skip updating syslinux on that.
181Device /dev/nvme0n1p2 is not a FAT partition.
182Skip updating syslinux on that.
183*****************************************************.
184Running: ocs-install-grub -s nvme0n1 auto
185Found grub partition: /dev/nvme0n1p1
186Found boot loader grub in the MBR of disk /dev/nvme0n1.
187Found grub 2 installed in the restored OS.
188Test if we can chroot the restored OS partition /dev/nvme0n1p1...
189Yes, we are able to chroot the restored OS partition /dev/nvme0n1p1.
190Trying to use the grub2 in the restored OS...
191Running: run_grub2_from_restored_os "/dev/nvme0n1p1" "/dev/nvme0n1p1" "/dev/nvme0n1"
192Re-installing grub2 on disk/partition /dev/nvme0n1 with grub2 dir in partition /dev/nvme0n1p1 and root partition /dev/nvme0n1p1...
193The options for grub2-install in the chroot: --force --recheck --no-floppy /dev/nvme0n1
194No grub2 program (e.g. update-grub2 or grub2-install) is found in the restored OS!
195Skipping grub2 reinstallation!
196Unable to use the grub 2 in the restored OS, trying another method...
197Trying to use the grub2 from the running OS...
198Checking grub-install version...
199Running: grub-install --force --recheck --root-directory=/tmp/hd_img.FQEahJ /dev/nvme0n1
200Instalando para plataforma x86_64-efi.
201grub-install: error: /tmp/hd_img.FQEahJ no parece una partición EFI..
202Failed to install grub!!!
203*****************************************************.
204Try to run partclone.ntfsfixboot for NTFS boot partition if it exists. Scanning partition(s): nvme0n1p1 nvme0n1p2...
205The NTFS boot partition was not found or not among the restored partition(s). Skip running partclone.ntfsfixboot.
206*****************************************************.
207Checking if udevd rules have to be restored...
208Now syncing - flush filesystem buffers...
209Ending /usr/bin/ocs-onthefly at 2020-01-13 23:26:56 UTC...
210Pulse "Intro" para continuar......