On 7/15/23 23:27, ToddAndMargo via users wrote:
Hi All,
I have a removable drive sleeve that I mount SATA
drives mounted in that attaches to an internal SATA
port. I use it backup my system to removable
drives. The mechanism works identical to USB
flash drives.
With one exception. A drive MUST be in the
carriage when I boot up. Otherwise, if I insert
a drive AFTER the system is booted up, the drive
is invisible to the system.
Now I have seen Clonzilla re-educating the system
as to what drives are where. Is there a way to
goose Fedora to do the same? Is there
a way to rescan without having to reboot?
Many thanks,
-T
Things tried. No joy on any of them:
Normal boot with drive powered on:
# lsscsi
[1:0:0:0] disk ATA TOSHIBA DT01ACA2 ABB0 /dev/sda
[2:0:0:0] cd/dvd ATAPI iHAS124 F CL9M /dev/sr0
[N:0:2:1] disk Samsung SSD 960 EVO 1TB__1
/dev/nvme0n1
Boot up with drive powered off
$ lsscsi
[2:0:0:0] cd/dvd ATAPI iHAS124 F CL9M /dev/sr0
[N:0:2:1] disk Samsung SSD 960 EVO 1TB__1 /dev/nvme0n1
Powering back on
$ lsscsi
[2:0:0:0] cd/dvd ATAPI iHAS124 F CL9M /dev/sr0
[N:0:2:1] disk Samsung SSD 960 EVO 1TB__1 /dev/nvme0n1
$ systemctl restart smartd.service
$ lsscsi
[2:0:0:0] cd/dvd ATAPI iHAS124 F CL9M /dev/sr0
[N:0:2:1] disk Samsung SSD 960 EVO 1TB__1 /dev/nvme0n1
# echo "- - -" > /sys/class/scsi_host/host1/scan
# lsscsi
[2:0:0:0] cd/dvd ATAPI iHAS124 F CL9M /dev/sr0
[N:0:2:1] disk Samsung SSD 960 EVO 1TB__1 /dev/nvme0n1
Looking up the correct path
# ls /sys/bus/scsi/devices
2:0:0:0 host0 host1 host2 host3 host4 host5 host6 host7 target2:0:0
# echo '- - -' >'/sys/bus/scsi/devices/host1/rescan'
bash: /sys/bus/scsi/devices/host1/rescan: Permission denied
# echo '- - -' >'/sys/bus/scsi/devices/host1/scan'
bash: /sys/bus/scsi/devices/host1/scan: Permission denied
# echo '- - -' >'/sys/bus/scsi/devices/1:0:0:0/scan'
bash: /sys/bus/scsi/devices/1:0:0:0/scan: No such file or directory
# echo "- - -" > /sys/class/scsi_host/host1/scan
# echo "- - -" > /sys/class/scsi_host/host1/rescan
bash: /sys/class/scsi_host/host1/rescan: Permission denied
# lsscsi
[2:0:0:0] cd/dvd ATAPI iHAS124 F CL9M /dev/sr0
[N:0:2:1] disk Samsung SSD 960 EVO 1TB__1 /dev/nvme0n1
[root@rn6 tony]#
# hdparm -z /dev/sda
/dev/sda: No such file or directory
# hdparm -z /dev/sdb
/dev/sdb: No such file or directory
# hdparm -z /dev/sdc
/dev/sdc: No such file or directory
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue