Difference between revisions of "Rescan drive"
Jump to navigation
Jump to search
(Created page with "Let's say I expanded drive sdb ``` echo 1 | sudo tee /sys/class/block/sdb/device/rescan ```") |
|||
Line 1: | Line 1: | ||
− | Let's say I expanded drive sdb | + | Let's say I expanded drive sdb from 100 to 200GB |
``` | ``` | ||
+ | lsblk | grep sdb | ||
+ | sdb 8:16 0 100G 0 disk | ||
echo 1 | sudo tee /sys/class/block/sdb/device/rescan | echo 1 | sudo tee /sys/class/block/sdb/device/rescan | ||
+ | lsblk | grep sdb | ||
+ | sdb 8:16 0 200G 0 disk | ||
``` | ``` |
Revision as of 16:11, 27 January 2021
Let's say I expanded drive sdb from 100 to 200GB
lsblk | grep sdb sdb 8:16 0 100G 0 disk echo 1 | sudo tee /sys/class/block/sdb/device/rescan lsblk | grep sdb sdb 8:16 0 200G 0 disk