All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wakko Warner <wakko@animx.eu.org>
To: Pozsar Balazs <pozsy@sch.bme.hu>
Cc: Mike Panetta <mpanetta@applianceware.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	andre@linux-ide.org
Subject: Re: IDE Hot-Swap, does it work?, Conspiracy is afoot! (more questions)
Date: Fri, 12 Oct 2001 22:28:38 -0400	[thread overview]
Message-ID: <20011012222838.A13338@animx.eu.org> (raw)
In-Reply-To: <20011012172955.B12857@animx.eu.org> <Pine.GSO.4.30.0110130008070.18155-100000@balu>
In-Reply-To: <Pine.GSO.4.30.0110130008070.18155-100000@balu>; from Pozsar Balazs on Sat, Oct 13, 2001 at 12:14:01AM +0200

[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]

Pozsar Balazs wrote:
> Wakko, could you tell me in detail how to use hdparm -R and -U, because i
> couldn't get it work. Does it (or shoudl it) work for harddisks too?

I'm not sure if it supports hdds or not, As far as I can see, it basically
rescans for the device you're doing.  I attach the contrib script (comes in
hdparm's source tree but not generally included

> What chipset/hardware supports ide-hot-swap, and which of these are
> supported in linux?
> Under The Other Operating System 2000 i have seen this working on a few
> machines for example on an asus cusl2 mobo, so that chipset (i think
> intel 815e) at least can got to do this job.

I think it would work on all ide chipsets, but i'm not sure.  I have hot
plugged IDE into standard systems and hdds not designed for it.  You do run
a risk of hardware damage which I has never happened for me (but could
happen to me next time I try or it could happen to you.  Be warned).  For
this, I've had a system who's / is not an ide disk (I have a machine
mounting / over nfs) and I load/unload ide modules.

I'd like to see support for this similar to /proc/scsi/scsi to rescan

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

[-- Attachment #2: idectl --]
[-- Type: text/plain, Size: 807 bytes --]

#!/bin/sh

HDPARM=/sbin/hdparm
MAX_IDE_NR=1

IDE_IO_0=0x1f0
IDE_IO_1=0x170

USE_IDE_DEV_0=/dev/hdc
USE_IDE_DEV_1=/dev/hda

usage () {
	if [ $# -gt 0 ]; then
		echo $* >&2
		echo
	fi

	echo "usage: $0 ide-channel-nr [off|on|rescan]" 2>&1
	exit 1
}

IDE_NR=$1
MODE=$2

do_register=0
do_unregister=0


if [ ! "$IDE_NR" ] || [ $IDE_NR -lt 0 ] || [ $IDE_NR -gt $MAX_IDE_NR ]; then
	usage "Unrecognized IDE-channel number"
fi

case "$MODE" in
on )		do_register=1 ;;
off )		do_unregister=1 ;;
rescan )	do_unregister=1; do_register=1 ;;
* )			usage "Unrecognized command" ;;
esac

eval "IDE_IO=\$IDE_IO_$IDE_NR"
eval "USE_IDE_DEV=\$USE_IDE_DEV_$IDE_NR"

[ $do_unregister -eq 1 ] && eval "$HDPARM -U $IDE_NR $USE_IDE_DEV > /dev/null"
[ $do_register -eq 1 ] && eval "$HDPARM -R $IDE_IO 0 0 $USE_IDE_DEV > /dev/null"


      parent reply	other threads:[~2001-10-13  2:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-11 20:10 IDE Hot-Swap, does it work? Mike Panetta
2001-10-12 20:28 ` IDE Hot-Swap, does it work?, Conspiracy is afoot! Mike Panetta
2001-10-12 21:29   ` Wakko Warner
2001-10-12 22:14     ` IDE Hot-Swap, does it work?, Conspiracy is afoot! (more questions) Pozsar Balazs
2001-10-12 22:28       ` Mike Panetta
2001-10-13  2:28       ` Wakko Warner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011012222838.A13338@animx.eu.org \
    --to=wakko@animx.eu.org \
    --cc=andre@linux-ide.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpanetta@applianceware.com \
    --cc=pozsy@sch.bme.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.