1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntu Server 20.04.3 LTS 構築#19 バックアップ

1
Posted at

実施日:2022/03/04

【今回の内容】

購入した内臓SSDにデータをバックアップ

内臓SSDのスペック

・メーカー:Western Digital
・型番:WDS500G2B0A
・容量:500GB
・規格サイズ:2.5inch
・インターフェース:Serial ATA 6Gb/s
・タイプ:3D TLC NAND
・読込速度:560 MB/s
・書込速度:530 MB/s

参照先サイト
価格.com様

サーバー本体に接続し、認識しているか確認

sudo fdisk -l

ディスク /dev/sdb: 465.78 GiB , 500107862016バイト, 976773168セクタ
Disk model: 500G2B0A
/dev/sdbで認識していることを確認

ファイルシステムの作成

mkfs -t ext4 /dev/sdb
今回はext4で作成しました。

バックアップの実行

sudo dd if=/dev/sda of=/dev/sdb bs=1024M

ifはコピー元を、ofはコピー先を指します。
bsは書込みサイズ、書込み速度と私は理解しています。

バックアップ完了

terminal上でバックアップ完了していたので、コピー元とのサイズ確認をしました。

sudo fdisk -l
確認すると、表示内容が一致していました。

バックアップ完了です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?