From c312c50b99062c4dca949685ddc31385b179b7d5 Mon Sep 17 00:00:00 2001 From: Agno94 Date: Thu, 29 Oct 2020 12:21:45 +0100 Subject: [PATCH] badblocks, ddrescue, fdisk, fsck, ioping, smartctl, wipefs: change /dev/sda into /dev/sdX (#4861) --- pages/common/ioping.md | 8 ++++---- pages/common/smartctl.md | 10 +++++----- pages/linux/ddrescue.md | 2 +- pages/linux/fdisk.md | 2 +- pages/linux/fsck.md | 12 ++++++------ pages/linux/wipefs.md | 8 ++++---- pages/osx/fsck.md | 16 ++++++++-------- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/pages/common/ioping.md b/pages/common/ioping.md index db6e43113..50799fe0f 100644 --- a/pages/common/ioping.md +++ b/pages/common/ioping.md @@ -11,10 +11,10 @@ `ioping -c 10 -s 1M /tmp` -- Measure disk seek rate on /dev/sda: +- Measure disk seek rate on `/dev/sdX`: -`ioping -R /dev/sda` +`ioping -R {{/dev/sdX}}` -- Measure disk sequential speed on /dev/sda: +- Measure disk sequential speed on `/dev/sdX`: -`ioping -RL /dev/sda` +`ioping -RL {{/dev/sdX}}` diff --git a/pages/common/smartctl.md b/pages/common/smartctl.md index 48ec0889e..a62ff2622 100644 --- a/pages/common/smartctl.md +++ b/pages/common/smartctl.md @@ -5,20 +5,20 @@ - View SMART health summary: -`sudo smartctl --health {{/dev/sda}}` +`sudo smartctl --health {{/dev/sdX}}` - View device information: -`sudo smartctl --info {{/dev/sda}}` +`sudo smartctl --info {{/dev/sdX}}` - Begin a short self-test: -`sudo smartctl --test short {{/dev/sda}}` +`sudo smartctl --test short {{/dev/sdX}}` - View current/last self-test status and other SMART capabilities: -`sudo smartctl --capabilities {{/dev/sda}}` +`sudo smartctl --capabilities {{/dev/sdX}}` - View SMART self-test log (if supported): -`sudo smartctl --log selftest {{/dev/sda}}` +`sudo smartctl --log selftest {{/dev/sdX}}` diff --git a/pages/linux/ddrescue.md b/pages/linux/ddrescue.md index 42947c1c4..11a76bd56 100644 --- a/pages/linux/ddrescue.md +++ b/pages/linux/ddrescue.md @@ -9,4 +9,4 @@ - Clone Disk A to Disk B, creating a log file: -`sudo ddrescue --force --no-scrape {{/dev/sda}} {{/dev/sdb}} {{path/to/log.txt}}` +`sudo ddrescue --force --no-scrape {{/dev/sdX}} {{/dev/sdY}} {{path/to/log.txt}}` diff --git a/pages/linux/fdisk.md b/pages/linux/fdisk.md index 8404641ec..aa2f20ffc 100644 --- a/pages/linux/fdisk.md +++ b/pages/linux/fdisk.md @@ -8,4 +8,4 @@ - Start the partition manipulator: -`fdisk {{/dev/sda}}` +`fdisk {{/dev/sdX}}` diff --git a/pages/linux/fsck.md b/pages/linux/fsck.md index 6a8fdfd70..f627dc567 100644 --- a/pages/linux/fsck.md +++ b/pages/linux/fsck.md @@ -2,14 +2,14 @@ > Check the integrity of a filesystem or repair it. The filesystem should be unmounted at the time the command is run. -- Check filesystem /dev/sda, reporting any damaged blocks: +- Check filesystem `/dev/sdX`, reporting any damaged blocks: -`fsck {{/dev/sda}}` +`fsck {{/dev/sdX}}` -- Check filesystem /dev/sda, reporting any damaged blocks and interactively letting the user choose to repair each one: +- Check filesystem `/dev/sdX`, reporting any damaged blocks and interactively letting the user choose to repair each one: -`fsck -r {{/dev/sda}}` +`fsck -r {{/dev/sdX}}` -- Check filesystem /dev/sda, reporting any damaged blocks and automatically repairing them: +- Check filesystem `/dev/sdX`, reporting any damaged blocks and automatically repairing them: -`fsck -a {{/dev/sda}}` +`fsck -a {{/dev/sdX}}` diff --git a/pages/linux/wipefs.md b/pages/linux/wipefs.md index 1e39b9ca5..b958b9f77 100644 --- a/pages/linux/wipefs.md +++ b/pages/linux/wipefs.md @@ -4,16 +4,16 @@ - Display signatures for specified device: -`sudo wipefs {{/dev/sda}}` +`sudo wipefs {{/dev/sdX}}` - Wipe all available signatures for specified device: -`sudo wipefs --all {{/dev/sda}}` +`sudo wipefs --all {{/dev/sdX}}` - Perform dry run: -`sudo wipefs --all --no-act {{/dev/sda}}` +`sudo wipefs --all --no-act {{/dev/sdX}}` - Force wipe, even if the filesystem is mounted: -`sudo wipefs --all --force {{/dev/sda}}` +`sudo wipefs --all --force {{/dev/sdX}}` diff --git a/pages/osx/fsck.md b/pages/osx/fsck.md index 7ba527069..6c8a4931e 100644 --- a/pages/osx/fsck.md +++ b/pages/osx/fsck.md @@ -3,18 +3,18 @@ > Check the integrity of a filesystem or repair it. The filesystem should be unmounted at the time the command is run. > It is a wrapper that calls `fsck_hfs`, `fsck_apfs`, `fsck_msdos`, `fsck_exfat`, and `fsck_udf` as needed. -- Check filesystem /dev/sda, reporting any damaged blocks: +- Check filesystem `/dev/sdX`, reporting any damaged blocks: -`fsck {{/dev/sda}}` +`fsck {{/dev/sdX}}` -- Check filesystem /dev/sda only if it is clean, reporting any damaged blocks and interactively letting the user choose to repair each one: +- Check filesystem `/dev/sdX` only if it is clean, reporting any damaged blocks and interactively letting the user choose to repair each one: -`fsck -f {{/dev/sda}}` +`fsck -f {{/dev/sdX}}` -- Check filesystem /dev/sda only if it is clean, reporting any damaged blocks and automatically repairing them: +- Check filesystem `/dev/sdX` only if it is clean, reporting any damaged blocks and automatically repairing them: -`fsck -fy {{/dev/sda}}` +`fsck -fy {{/dev/sdX}}` -- Check filesystem /dev/sda, reporting whether it has been cleanly unmounted: +- Check filesystem `/dev/sdX`, reporting whether it has been cleanly unmounted: -`fsck -q {{/dev/sda}}` +`fsck -q {{/dev/sdX}}`