From: Sergei Pachkov <spigel@olvs.miee.ru> To: kde-russian@lists.kde.ru Subject: Re: [kde-russian] HDD в рэке Date: Sat, 02 Mar 2002 12:05:49 +0300 Message-ID: <3C8095ED.9070908@olvs.miee.ru> (raw) In-Reply-To: <3C808FAD.8000306@blackcatlinux.com> [-- Attachment #1: Type: text/plain, Size: 1534 bytes --] скрипт для hotplug'a с помощью hdparm в аттаче >> >> всё это я пробовал на ядрах до 2.4.14 *и у меня ядро >> паниковало,*когда я собирался производить перегистрацию устройства > > > Практическое использование 2.4.1x вызывает большое сомнение из-за их > кривой VM :( не считая 10, 11, 15 версии все остальные вполне хороши VM от Arcangeli неуступает VM от Rik van Riel. исправления в PCI hotplug вносятся и сейчас >> также можно попробовать следующее: >> отмонтировать девайс и просто выдернуть его из корзинки, а после >> возвращения его обратно обычный mount >> на ядрах до 2.4.14 после 3-4 монтирования ядро замирает навеки > > Это не совсем так. Примерно во времена Red Hat 5.2 я ежедневно таскал > с работы винт домой, причем даже река не было - я его отмонтировал, > затем вытаскивал аккуратно сигнальный шлейф и фишку питания. Аптайм > машины при этом достигал недель - то есть 5-6 монтирований, а > перегружалась она по другим причинам обычно. Правда повторять такие > эксперименты никому не советую. Вполне возможно что на серии 2.2.x такой способ стабильнее >> А. Л. Клютченя wrote: >> >>> Вопрос к ядрёным :) спеца (гуру) >>> Имеется комп, который не выключается, а у него корзинка под диск... >>> вопросик, а как его не перезапуская систему замонтить? >> >> _______________________________________________ >> kde-russian mailing list >> kde-russian@lists.kde.ru >> http://lists.kde.ru/cgi-bin/mailman/listinfo/kde-russian > > > > > > ▒в╚╨к"jy ┼X╖┌X╛╤G^╝К,┴╘Е┼кl▒в╚╨^[m╖ЪЕ┼кl▒в╚╩В ┴╦╖Чf╒√f╖ЧX╛╤)ъёЫ\x1dz╩╛╡&╖ [-- Attachment #2: README --] [-- Type: text/plain, Size: 624 bytes --] These files were contributed by various users. ===================================================================== Dear Mark, attached I send you a small patch for hdparm-3.5 to make use of the ioctls HDIO_UNREGISTER_HWIF and HDIO_SCAN_HWIF found in newer kernels. With this patched version I can make my IBM ThinkPad 600E recognize 'hot-swapped' ide-devices in its UltraBay II - slot. Together with tpctl-0.7.0 and the two scripts 'idectl' and 'ultrabayd' it works really nice. Christian Lademann <cal@zls.de> Attached: idectl, ultrabayd ===================================================================== [-- Attachment #3: 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" [-- Attachment #4: ultrabayd --] [-- Type: text/plain, Size: 864 bytes --] #!/bin/sh VERSION="0.1.000" TPCTL="/usr/bin/tpctl" IDECTL="/sbin/idectl" INTERVAL=5 case "$1" in -V ) echo "$0: Version $VERSION" exit 0 ;; -daemon ) o_d_type="" o_d_id="" while true; do d_type="" d_type_n="" d_id="" d_id_n="" while read w1 w2 w3 wn; do case "$w1" in device ) case "$w2" in type: ) d_type=$w3; d_type_n="$wn";; ID: ) d_id=$w3; d_id_n="$wn";; esac ;; esac if [ "$d_type" ] && [ "$d_id" ]; then break; fi done <<- END `eval $TPCTL -iU` END if [ "$d_type" != "$o_d_type" ] || [ "$d_id" != "$o_d_id" ]; then echo -n "\07" > /dev/tty1 o_d_type="$d_type" o_d_id="$d_id" case "$d_type" in 0x10 ) eval "$IDECTL 1 rescan" ;; * ) eval "$IDECTL 1 off" ;; esac fi sleep $INTERVAL done ;; * ) exec nohup $0 -daemon 2>&1 > /dev/null & ;; esac
next prev parent reply other threads:[~2002-03-02 9:05 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-03-01 21:58 А. Л. Клютченя 2002-03-02 7:44 ` Sergei Pachkov 2002-03-02 8:39 ` Leon Kanter 2002-03-02 9:05 ` Sergei Pachkov [this message] 2002-03-02 15:40 ` А. Л. Клютченя 2002-03-02 16:42 ` Leon Kanter 2002-03-04 9:28 ` Anton Farygin 2002-03-04 11:02 ` Leon Kanter
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=3C8095ED.9070908@olvs.miee.ru \ --to=spigel@olvs.miee.ru \ --cc=kde-russian@lists.kde.ru \ /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
рассылка русскоязычной группы пользователей и разработчиков KDE This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/kde-russian/0 kde-russian/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 kde-russian kde-russian/ http://lore.altlinux.org/kde-russian \ kde-russian@lists.kde.ru public-inbox-index kde-russian Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.kde-russian AGPL code for this site: git clone https://public-inbox.org/public-inbox.git