ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Olvin <olvin@rambler.ru>
To: shigorin@gmail.com,
	 ALT Linux Community general discussions
	<community@lists.altlinux.org>
Subject: Re: [Comm] Вот и я Desktop поставил...
Date: Sun, 16 Sep 2007 14:23:24 +0300
Message-ID: <46ED122C.5080707@rambler.ru> (raw)
In-Reply-To: <20070906074917.GJ29952@osdn.org.ua>

Michael Shigorin пишет:
>> - попытка отмонтировать (впрочем как и "извлечь")
>> смонтированный установочный DVD-диск ни к чему не приводит...
>> приходится sudo umount... :-( по нынешним временам как-то
>> несерьезно это...
> Известная грабля, самому непонятно.  В /var/log/messages
> часом повторных попыток идентификации/монтирования нет, 
> а то мож это тот же hal и дурит?


Я такое решил для себя ещё со сремён ALM2.4: в /etc/rc.d/rc.local прописал:

modprobe cdrom
echo "0" >/proc/sys/dev/cdrom/autoclose
echo "0" >/proc/sys/dev/cdrom/lock

(именно последняя строка делает то, что нужно)


Конечно, CD-ROM остаётся примонтированным, но диск уже можно вытащить. 
Кроме того, нужно выйти (или прибить) из всех программ, обращающихся к 
точке монтирования CD-ROM'а. А если CD-ROM оказался примонтированным 
несколько раз (такое регулярно наблюдается на ALC3.0, причину не удалось 
пока выяснить), то для юзера на рабочем столе вывел ярлык для запуска 
через sudo такого скрипта:

#!/bin/sh
umount -f /cdrom
umount -f /cdrom
umount -f /cdrom
umount -f /cdrom
umount -f /cdrom
umount -f /cdrom
umount -f /cdrom
umount -f /cdrom
mount /cdrom

Тупо, но работает.

Был бы рад, чтобы подобные баги не пришлось обходить в ALM4.x.


      reply	other threads:[~2007-09-16 11:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-04 18:29 Igor Solovyov
2007-09-06  7:49 ` Michael Shigorin
2007-09-16 11:23   ` Olvin [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=46ED122C.5080707@rambler.ru \
    --to=olvin@rambler.ru \
    --cc=community@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git