相続、親が弱ってきたら銀行の預金は親の面倒を見ているものが全て解約して管理すべきである、銀行は解約させない!!

rear usbに起動システムとバックアップファイルを直接焼く

Backup

usbはfat32にフォーマットしたものを使う

新品は通常fat32にフォーマットされている。

# apt-get install extlinux

自動でマウントされたusbをアンマウントする

# lsblk

上記で表示されるマウントポイントをumountする

# umount /media/ユーザー名/UUID名

usbを起動できるようにフォーマットする

# /usr/local/sbin/rear/usr/sbin/rear format -- --efi /dev/sdb

一旦、usbを抜き差しする

フォーマットが終了したら一旦USBを抜き差しする REAR-000ラベルを確認する

 

自動でマウントされたusbをアンマウントする

# lsblk

上記で表示されるマウントポイントをumountする

# umount /media/ユーザー名/UUID名

設定ファイルを作る

# mkdir /usr/local/sbin/rear/etc/rear/usb-local/
# vi /usr/local/sbin/rear/etc/rear/usb-local/local.conf

### write the rescue initramfs to USB and update the USB bootloader
OUTPUT=USB

OUTPUT_URL = usb:///dev/disk/by-label/REAR-000

### create a backup using the internal NETFS method, using ‘tar’
BACKUP=NETFS
### write both rescue image and backup to the device labeled REAR-000
BACKUP_URL=usb:///dev/disk/by-label/REAR-000

 

レスキューシステムを作る

# /usr/local/sbin/rear/usr/sbin/rear -c /usr/local/sbin/rear/etc/rear/usb-local/ -v mkrescure

BIOSを変更して起動する

BIOSを変更する 起動はEFI:USB名のついた項目を選択して起動する

 

これで成功すればmkbackupで正式なバックアップをとる

# /usr/local/sbin/rear/usr/sbin/rear -c /usr/local/sbin/rear/etc/rear/usb-local/ -v mkbackup

成功時のログ

Relax-and-Recover 2.5 / Git
Running rear mkrescue (PID 8365)
Using log file: /usr/local/sbin/rear/var/log/rear/rear-deskmini.log
Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
Using autodetected kernel ‘/boot/vmlinuz-5.0.0-37-generic’ as kernel in the recovery system
Creating disk layout
Overwriting existing disk layout file /usr/local/sbin/rear/var/lib/rear/layout/disklayout.conf
Using guessed bootloader ‘EFI’ (found in first bytes on /dev/sda)
Verifying that the entries in /usr/local/sbin/rear/var/lib/rear/layout/disklayout.conf are correct …
Creating root filesystem layout
Cannot include default keyboard mapping (no KEYMAPS_DEFAULT_DIRECTORY specified)
Cannot include keyboard mappings (neither KEYMAPS_DEFAULT_DIRECTORY nor KEYMAPS_DIRECTORIES specified)
To log into the recovery system via ssh set up /root/.ssh/authorized_keys or specify SSH_ROOT_PASSWORD
Trying to find what to use as UEFI bootloader…
Trying to find a ‘well known file’ to be used as UEFI bootloader…
Using ‘/boot/efi/EFI/ubuntu/grubx64.efi’ as UEFI bootloader file

Copying logfile /usr/local/sbin/rear/var/log/rear/rear-deskmini.log into initramfs as ‘/tmp/rear-deskmini-partial-2020-01-07T05:01:52+09:00.log’
Copying files and directories
Copying binaries and libraries
Copying all kernel modules in /lib/modules/5.0.0-37-generic (MODULES contains ‘all_modules’)
Copying all files in /lib*/firmware/
Symlink ‘/lib/modules/5.0.0-37-generic/build’ -> ‘/usr/src/linux-headers-5.0.0-37-generic’ refers to a non-existing directory on the recovery system.
It will not be copied by default. You can include ‘/usr/src/linux-headers-5.0.0-37-generic’ via the ‘COPY_AS_IS’ configuration variable.
Symlink ‘/usr/share/misc/magic’ -> ‘/usr/share/file/magic’ refers to a non-existing directory on the recovery system.
It will not be copied by default. You can include ‘/usr/share/file/magic’ via the ‘COPY_AS_IS’ configuration variable.
Testing that the recovery system in /tmp/rear.DhiWMAAC6nizRF5/rootfs contains a usable system
Creating recovery/rescue system initramfs/initrd initrd.cgz with gzip default compression
Created initrd.cgz with gzip default compression (300125629 bytes) in 27 seconds
Saved /usr/local/sbin/rear/var/log/rear/rear-deskmini.log as rear/deskmini/20200107.0501/rear-deskmini.log
Writing MBR of type msdos to /dev/sdb
Exiting rear mkrescue (PID 8365) and its descendant processes …
Running exit tasks

Backup
スポンサーリンク
シェアする
ふじやんをフォローする
スポンサーリンク
なんでもDIY

コメント