badblocks, ddrescue, fdisk, fsck, ioping, smartctl, wipefs: change /dev/sda into /dev/sdX (#4861)

beep
Agno94 2020-10-29 12:21:45 +01:00 committed by GitHub
parent 0d2c364b9d
commit c312c50b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 29 deletions

View File

@ -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}}`

View File

@ -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}}`

View File

@ -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}}`

View File

@ -8,4 +8,4 @@
- Start the partition manipulator:
`fdisk {{/dev/sda}}`
`fdisk {{/dev/sdX}}`

View File

@ -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}}`

View File

@ -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}}`

View File

@ -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}}`