Browse Source

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

Agno94 4 years ago
parent
commit
c312c50b99

+ 4 - 4
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}}`

+ 5 - 5
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}}`

+ 1 - 1
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}}`

+ 1 - 1
pages/linux/fdisk.md

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

+ 6 - 6
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}}`

+ 4 - 4
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}}`

+ 8 - 8
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}}`