LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-27-2005, 02:56 AM   #1
kwlg
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu,Debian,Mandrake,knoppix,dsl,freesco,SUSE
Posts: 8

Rep: Reputation: 0
SATA hotswap


I've got a PCI SATA (4xport) card with Sil3114 and hot swappable mobile rack.
SATA drives work great, but when I trying to chahnge them - I have to
echo "scsi remove-single-device 0 0 0 0" > /proc/scsi/scsi
then replace hard drive connect it back and
echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi
Seems to work ok. But only if using same capacity hard drive,
when I've put a different hard drice (for ex was 200GB then I've put 120gb) it will still show size and geomtery for old hard drive.
The only way I found is to compile kernel with sata_sil as module and then
rmmod sata_sil
modprobe sata_sil
to recognise a new hard drive properply. But if I use all 4 ports then it sholud be some other way to tell kernel (module) that I put a new hard drive and it needed to register it.

How I can do it?
Is it any way to ask kernel(module) to rescan it?
 
Old 06-27-2005, 09:19 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I'm not sure the kernel supports SATA hotswap, but have you simply tried rescanning the partition using sfdisk?
 
Old 06-28-2005, 02:06 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can try to use `hdparm -z`.
 
Old 06-28-2005, 02:57 AM   #4
kwlg
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu,Debian,Mandrake,knoppix,dsl,freesco,SUSE
Posts: 8

Original Poster
Rep: Reputation: 0
No after reread partition using sfdisk or hdparm will show a new partition but still old HDD geometry and old HDD size
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOTSWAP: where to find #ENUM signal? iflorea Programming 0 11-20-2005 06:58 AM
Linux support: pci sata card vs integrated sata Synesthesia Linux - Hardware 2 10-17-2005 03:27 PM
Onmibook hotswap cdrom mounting probs! F0ul_Olli Linux - Laptop and Netbook 11 08-22-2005 09:17 AM
RAID-5 + Hotswap in linux. phaserx Linux - Hardware 11 06-09-2004 01:32 PM
PCI Hotswap Issues komeisa Slackware 4 08-28-2003 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration