ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] Re: fstabs
@ 2001-07-18 14:51 Andrew Borodin
  2001-07-18 15:09 ` [JT] " cornet
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Borodin @ 2001-07-18 14:51 UTC (permalink / raw)
  To: mandrake-russian

  Здравствуйте, Иван!

> On Fri, 29 Jun 2001, Andrew Borodin wrote:
> 
> >   Тут такой вопрос уже задавался (не мной), но ответа,
> > по-моему, не было.
> >   Можно ли иметь в системе несколько файлов fstab?
> > Каждому ядру - свой. Например, в 2.2.x CD-ROM монтируется
> > через supermount, а в 2.4.x или в сильно облегченном
> > 2.2.x такой фичи нет.
> >   Соответственно - ругань...
> 
> Думаю, можно в /etc/rc.d/rc.sysinit вставить после
> фрагмента, который монтирует корень в read-write режиме, команду,
> которая бы подменяла /etc/fstab в зависимости от версии
> загруженного ядра. Можно делать это с помощью ссылок,
> update-alternatives или еще как-нибудь. Сам такое не пробовал.
> 
> -- 
> Best regards,
> Ivan Zakhrayschev
> 

  Попробовал Ваш рецепт. Все работает.
  Для каждого из имеющихся в системе ядер сделал файлы
 
    /etc/fstab-`uname -r`
    /etc/modules-`uname -r`
    /etc/modules.conf-`uname -r`

  В /etc/rc.d/rc.sysinit сразу после строки

    action "Remounting root filesystem in read-wrute mode" ....

вставил

    ln -sf /etc/fstab-`uname -r` /etc/fstab
    ln -sf /etc/modules-`uname -r` /etc/modules
    ln -sf /etc/modules.conf-`uname -r` /etc/modules.conf

  Эти файлы - минимум. Кроме них надо прописывать другие
ядрозависимые конфиги. Но мне вполне достаточно и этих.

  С уважением,
  А. Бородин.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-23 15:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-18 14:51 [mdk-re] Re: fstabs Andrew Borodin
2001-07-18 15:09 ` [JT] " cornet
2001-08-23 14:28   ` [mdk-re] путаница с правами Serg
2001-08-23 15:43     ` Vyt
2001-08-23 15:44     ` [mdk-re] " cornet
2001-08-23 15:44     ` Artem K. Jouravsky

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