ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Lizogub <linthong@mail.ru>
To: community@altlinux.ru
Subject: Re: Автомонтирование  USB	Flash Disk-а ( было: [Comm] Покупка  USB FlashCard)
Date: Mon, 23 Aug 2004 22:21:41 +0400
Message-ID: <20040823222141.1b844ed3.linthong@mail.ru> (raw)
In-Reply-To: <200408231003.12554.combr@vesna.ru>

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

Mon, 23 Aug 2004 10:03:12 +0500
Mike Lykov <combr@vesna.ru> Вы писали:

> В сообщении от Пятница 20 Август 2004 23:10 Sergey Lizogub
> написал:
> 
> Похоже, все дело в том, что добавил что-то не то, а что - не
> > знаю.
> > 	Может кто подскажет
> 
> А логи  подсказывают?


	Собственно, ответ был дан раньше (насчет силинка в /mnt/flash на
mnt/auto/flash - когда его добавил, все заработало. Для тех, кому
это нужно сделал mini-howto:	
 	Настройка автомонтирования флэш-драйва в Линукс (все
операции выполняются от root-а)

 1. В каталоге /mnt создаем подкаталог, куда все это будет
 монтироваться например:  /mnt/disk
 (выполнить команду: mkdir /mnt/flash)
 2. создать в новом каталоге символическую ссылку:

 ln -s /mnt/auto/flash /mnt/flash/auto

 3. Войти в /etc и внести изменения в auto.tab и fstab:
 	a) auto.tab:

 flash
 -fstype=auto,rw,iocharset=koi8-r,sync,quiet,showexec,nosuid,node
 v,gid=100,codepage=866,umask=000 :/dev/sda1
  
  
 	b) fstab:

 /dev/sda1 /mnt/flash auto user,sync,quiet,exec,noauto 0 0

 PS 	Мы исходим из того, что к usb-порту подключено одно
 устройство.

 Можно сделать все это скриптом (см. flash.sh в аттаче).

 	При наличии нескольких сменных устройств usb придется
создать несколько каталогов и искать в них флэшку в порядке
подключения устройств.
 	Тогда скрипт придется модифицировать в соответствии с
общим количеством подключаемых устройств (в примере - 4) - см.
usb.sh в аттаче.

PS	Правда коллеги советуют воспольззоваться прелестями subfs, но
как-то стремно - на дисках ALM2.2 не нашел (может плохо искал), а
из Сизифа тянуть стремно - проще дождаться выхода ALM 2.4, тем
более, что все и так заработало.


From: Michael Shigorin <mike@osdn.org.ua>
To: community@altlinux.ru
Subject: Re: Автомонтирование USB Flash Disk-а (было: [Comm]
Покупка  USB FlashCard) Date: Sat, 21 Aug 2004 00:37:35 +0300

 apt-get install kernel-modules-subfs-std-up submount24
 less $DOCS
 vim /etc/fstab
 mount $MOUNTPOINT
 rpm -e autofs

 Проверено, как водится, на себе :)
 
 -- 
  ---- WBR, Michael Shigorin <mike@altlinux.ru>
   ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: usb.sh --]
[-- Type: application/x-sh, Size: 1090 bytes --]

[-- Attachment #3: flash.sh --]
[-- Type: application/x-sh, Size: 324 bytes --]

  reply	other threads:[~2004-08-23 18:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-19  8:05 [Comm] Покупка USB FlashCard Сергей Лизогуб 
2004-08-19  8:13 ` Jury Levykin
2004-08-19  8:39   ` Re[2]: " Сергей Лизогуб 
2004-08-19  8:32     ` Drool
2004-08-19  8:55       ` Re[4]: " Сергей Лизогуб 
2004-08-19  9:35         ` Drool
2004-08-19 12:03           ` Alexey Morsov
2004-08-19 11:34         ` Re[4]: " Drool
2004-08-19  8:19 ` Alexey Morsov
2004-08-19  8:56 ` Владимир Гусев
2004-08-19  9:02   ` Re[2]: " Сергей Лизогуб 
2004-08-19  9:11     ` Jury Levykin
2004-08-20 18:10 ` Автомонтирование USB Flash Disk-а (было: [Comm] Покупка USB FlashCard) Sergey Lizogub
2004-08-20 21:33   ` Sergey Lizogub
2004-08-20 21:37     ` Michael Shigorin
2004-10-23 15:57       ` Sergey Lizogub
2004-10-23 17:16         ` Sergey S. Skulachenko
2004-10-24 10:38         ` Michael Shigorin
2004-08-23  5:03   ` Автомонтирование USB Flash Disk-а ( было: " Mike Lykov
2004-08-23 18:21     ` Sergey Lizogub [this message]
2004-08-23 18:20       ` Michael Shigorin
2004-08-23 18:33         ` Sergey Lizogub

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=20040823222141.1b844ed3.linthong@mail.ru \
    --to=linthong@mail.ru \
    --cc=community@altlinux.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

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