From: Vitaly Ostanin <vyt@vzljot.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: FS label detection at boot time
Date: Fri, 13 May 2005 19:07:39 +0400
Message-ID: <4284C2BB.5020601@vzljot.ru> (raw)
In-Reply-To: <20050513121543.GA32124@master.mivlgu.local>
[-- Attachment #1.1: Type: text/plain, Size: 1181 bytes --]
Sergey Vlasov пишет:
> On Fri, May 13, 2005 at 04:09:13PM +0400, Vitaly Ostanin wrote:
>
>>Обнаружилась странность в работе
>>mount -L label ...
>>и /sbin/blkid.
>>
>>В загруженной системе монтирование по метке проходит нормально,
>>blkid всё правильно определяет.
>>
>>А вот на этапе загрузки монтирование по метке не работает - no
>>such partition, /sbin/blkid ничего не выводит. Проверял вставкой
>>в livecd на этапе перемонтирования root в rw:
>>
>>mkdir /mnt/usbroot
>>echo "Trying blkid:"
>>/sbin/blkid
>>mount `/sbin/blkid -t LABEL=usbroot | cut -d ':' -f1` \
>>/mnt/usbroot -o sync
>>
>>Также не отрабатывает
>>mount -L usbroot /mnt/usbroot -o sync
>>
>>Монтирование с явным указанием раздела /dev/sda2 работает.
>>
>>Так вот, чего может не хватать определению разделов по метке?
>
> /proc, /sys в этот момент есть? USB-устройство уже определилось ядром?
/proc и /sys в этот момент есть.
В аттаче вывод strace -eopen от blkid на этапе загрузки в livecd
(strace.blkid.livecd), и от запущенного в рабочей системе.
Запустить его в уже загруженном livecd я забыл, но разделы там
точно определяются.
<skipped/>
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
[-- Attachment #1.2: strace.blkid.livecd --]
[-- Type: text/plain, Size: 1059 bytes --]
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/i686/sse2/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/sse2/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libblkid.so.1", O_RDONLY) = 3
open("/lib/i686/libuuid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libuuid.so.1", O_RDONLY) = 3
open("/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
open("/etc/blkid.tab", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/blkid.tab", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/proc/evms/volumes", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/proc/lvm/VGs", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/proc/partitions", O_RDONLY) = 3
open("/dev/loop0", O_RDONLY) = 4
[-- Attachment #1.3: strace.blkid.work --]
[-- Type: text/plain, Size: 1353 bytes --]
open("/etc/ld.so.preload", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libblkid.so.1", O_RDONLY) = 3
open("/lib/libuuid.so.1", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/etc/blkid.tab", O_RDONLY) = 3
open("/etc/blkid.tab", O_RDONLY) = 3
open("/proc/evms/volumes", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/proc/lvm/VGs", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/proc/partitions", O_RDONLY) = 3
open("/dev/hda1", O_RDONLY) = 4
open("/dev/hda2", O_RDONLY) = 4
open("/dev/hda3", O_RDONLY) = 4
open("/dev/hdb1", O_RDONLY) = 4
open("/dev/hdb2", O_RDONLY) = 4
open("/dev/hdb3", O_RDONLY) = 4
open("/dev/sda1", O_RDONLY) = 4
open("/dev/sda2", O_RDONLY) = 4
open("/etc/blkid.tab-B4kJdh", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
/dev/hda1: TYPE="swap"
/dev/hda2: UUID="30a5ffe3-9f4a-4e73-ac52-3996decdde21" TYPE="xfs"
/dev/hda3: UUID="29311a0c-b4dc-4d5b-93c9-ae3df4f5561b" SEC_TYPE="ext2" TYPE="ext3"
/dev/hdb1: UUID="3E88-1268" TYPE="vfat"
/dev/hdb2: TYPE="ntfs"
/dev/hdb3: UUID="f0a2f288-c203-426b-a64b-e6b5030720b8" TYPE="xfs"
/dev/sda1: LABEL="usbfat" UUID="4272-7C6B" TYPE="vfat"
/dev/sda2: LABEL="usbroot" TYPE="reiserfs"
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
next prev parent reply other threads:[~2005-05-13 15:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 12:09 [devel] " Vitaly Ostanin
2005-05-13 12:15 ` Sergey Vlasov
2005-05-13 12:28 ` [devel] " Vitaly Ostanin
2005-05-13 12:49 ` Anton Farygin
2005-05-13 15:07 ` Vitaly Ostanin [this message]
2005-05-14 7:49 ` Anton Farygin
2005-05-14 8:13 ` Vitaly Ostanin
2005-05-14 10:18 ` Vitaly Ostanin
2005-05-16 16:30 ` [devel] " Vitaly Ostanin
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=4284C2BB.5020601@vzljot.ru \
--to=vyt@vzljot.ru \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git