After Adding disk partition dont show new disk in console

If you add a new disk partition and this partition dont show in application or console, try this:


lsblk

echo “- - -” > /sys/class/scsi_host/host0/scan
echo “- - -” > /sys/class/scsi_host/host1/scan
echo “- - -” > /sys/class/scsi_host/host2/scan

lsblk

if size dont update try this:

echo 1 > /sys/block/sda/device/rescan

2 Likes

Thanks, @ruter.junior, for sharing the solution with the Community!