ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrew Borodin <aborodin@other.ispras.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: fstabs
Date: Wed Jul 18 14:51:12 2001
Message-ID: <3B556DA1.A5BED262@other.ispras.ru> (raw)

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

> 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

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

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



             reply	other threads:[~2001-07-18 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18 14:51 Andrew Borodin [this message]
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

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=3B556DA1.A5BED262@other.ispras.ru \
    --to=aborodin@other.ispras.ru \
    --cc=mandrake-russian@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