ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Lenar Shakirov <shakirov@cg.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] А что стало с /proc/cmdline ?
Date: Thu, 30 Jun 2016 15:41:47 +0300
Message-ID: <15a0e547-e531-8308-ecdb-052a3de5743c@cg.ru> (raw)
In-Reply-To: <201606301325.39010.a_s_y@sama.ru>

30.06.2016 12:25, Sergey пишет:
> On Thursday 30 June 2016, Alexei Takaseev wrote:
>
>>>> $ cat /proc/cmdline
>>>> auto BOOT_IMAGE=4.4.13-std-def-alt0.M80P.1 ro root=802 panic=30
>>>>
>>>> Как это 802 связать с реальным разделом ?
>>> Точнее, даже не так. Какого !?... У меня нет в cmd line "root=802",
>>> у меня там написано совсем другое. :-)
>> Это где такое вылезло?
>   
> В p8. Сначала связал с разницей между 4.4 и 4.1, но сейчас начал
> смотреть ещё. Где-то так, где-то по-правильному. Пока закономерность
> не понял.

ЕМНИП, это lilo преобразует root=/dev/sda2 в root=802

Связать с реальным размером можно получив major и minor устройства, как 
в функции "parse_numeric()" из:
http://git.altlinux.org/gears/m/mkinitrd.git?p=mkinitrd.git;a=blob;f=scripts/functions#l114


-- 

WBR,
Lenar Shakirov



      parent reply	other threads:[~2016-06-30 12:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-30  7:48 Sergey
2016-06-30  7:53 ` Sergey
2016-06-30  8:21   ` Alexei Takaseev
2016-06-30  9:25     ` Sergey
2016-06-30  9:46       ` Alexei Takaseev
2016-06-30 10:06         ` Sergey
2016-06-30 12:43           ` Alexei Takaseev
2016-07-03 15:05             ` Sergey
2016-07-03 18:43               ` Anton Gorlov
2016-06-30 12:41       ` Lenar Shakirov [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=15a0e547-e531-8308-ecdb-052a3de5743c@cg.ru \
    --to=shakirov@cg.ru \
    --cc=community@lists.altlinux.org \
    /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