[ltp] cannot unload and reload ultra bay
azazello
linux-thinkpad@linux-thinkpad.org
Mon, 18 Jun 2007 20:13:26 -0400
Dan Sawyer wrote:
> followup:
>
> The thinkwiki ultrabay script references scsi devices. The swap is
> between a dvd and a ata disk. Neither are scsi. How should the script:
>
> |# echo 0 0 0 > /sys/class/scsi_host/host1/scan
>
> and
> |
>
> |# echo 1 > /sys/class/scsi_device/1\:0\:0\:0/device/delete|
> |# echo eject > /proc/acpi/ibm/bay|
>
>
> be changed to work with /dev/hdc?
It can't, you have to use libata in order to get proper hotswap support.
For you this probably involves some kernel boot parameters to force
the system to use libata pata, and rewriting /etc/fstab (unless you want
to recompile the kernel and remove the old pata drivers altogether). If
you can get that to work, your internal HDD will show up as /dev/sda and
whatever is in ultrabay will be /dev/sdb when present.
-az