Difference between revisions of "Rescan drive"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
``` | ``` | ||
lsblk | grep sdb | lsblk | grep sdb | ||
− | sdb 8:16 0 100G 0 disk | + | # 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 | lsblk | grep sdb | ||
− | sdb 8:16 0 200G 0 disk | + | # sdb 8:16 0 200G 0 disk |
+ | df -h | ||
+ | sudo resize2fs /dev/sdb | ||
+ | df -h | ||
``` | ``` | ||
+ | |||
+ | Or with util | ||
+ | ``` | ||
+ | sudo apt-get install scsitools | ||
+ | sudo rescan-scsi-bus | ||
+ | ``` | ||
+ | - https://askubuntu.com/questions/639562/how-do-i-rescan-drives-ive-expanded |
Latest revision as of 17:02, 9 September 2022
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 df -h sudo resize2fs /dev/sdb df -h
Or with util
sudo apt-get install scsitools sudo rescan-scsi-bus