Re: How to reread disk size?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Hancock wrote:
ata_piix doesn't have a way to get automatically notified that the
disk has been hotplugged since the chipset doesn't support it in this
mode. (The ideal solution would be to switch the controller into AHCI
mode, but I don't know if that's possible on that chipset and BIOS.)

I think there are some ways to get the code to recheck the disk
however.. you can try echoing something into the "rescan" sysfs file
under /sys that matches your device (do a "find /sys/ -name
scsi_level" to see what directories they're in, the rescan file is in
the same directory).

Thanks for the hint
It doesn't work unfortunately.
Echoing something into rescan makes it output (in dmesg) basically the same message that comes out with blockdev --rereadpt /dev/sdr. The size is still detected wrong. Catting "model" also turns out that the old brand of disk still being detected. smartctl -a does show the new disk :-)
I tried to write "1" in evt_media_change but it's permission denied :-)

Thank you
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux