ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Ostanin <vyt@vzljot.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] unionfs and kernel oops
Date: Thu, 05 May 2005 16:25:43 +0400
Message-ID: <427A10C7.2030305@vzljot.ru> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 663 bytes --]

Здравствуйте.

Я тут потихоньку добавляю в livecd подхватывание usb флешки (и
раздела на ней с меткой usbroot).

Делается это скриптом /etc/hotplug/usb/usb-storage, в аттаче
05usbroot от профиля livecd.

Так вот, при отработке этого скрипта в загрузке livecd стабильно
воспроизводится kernel oops (вывод dmesg в аттаче).

Не знаю, из-за этого или нет, но некоторые файлы после правки на
флешку не попадают. Например, mkdir /etc/1 создаёт
/mnt/usbroot/etc/1, а вот mcedit /etc/hosts - не создаёт
/mnt/usbroot/etc/hosts. Выполнять sync пробовал.

Из-за чего этот oops проявляется и как с ним бороться?

--
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #1.2: 05usbroot --]
[-- Type: text/plain, Size: 1037 bytes --]

cat <<E_O_F >> $ROOT/etc/uniontab
/etc
/home
/root
/var/mail
E_O_F


cat <<E_O_F >> $ROOT/etc/hotplug/usb/usb-storage
#!/bin/sh

cd /etc/hotplug
. ./hotplug.functions

mesg Found USB storage, waiting 10 seconds for device ready...
/bin/sleep 10
mesg Trying to mount partition with label \"usbroot\"...
/bin/mount -L usbroot /mnt/usbroot && mesg "Mounted successfully." || mesg "Mount failed."
grep -ve '^\(#\|\$\)' /etc/uniontab |while read mntpt; do
    if [ -d \$mntpt ] && [ -d /mnt/usbroot/\$mntpt ]; then
	mesg "Adding unionfs rw branch for \$mntpt on usb..."
	/usr/sbin/unionctl \$mntpt --add --mode rw /mnt/usbroot/\$mntpt && mesg "success." || mesg "failed."
    fi
done

mesg "Trying set up clock with usb overlay settings (if any)..."
/etc/init.d/clock start && mesg "success." || mesg "failed."
mesg "Trying restart network with usb overlay settings (if any)..."
/etc/init.d/network restart && mesg "success." || mesg "failed."

E_O_F

$in_chroot /bin/chmod 755 /etc/hotplug/usb/usb-storage
$in_chroot /bin/mkdir /mnt/usbroot

[-- Attachment #1.3: dmesg.livecd.bz2 --]
[-- Type: application/x-bzip, Size: 6121 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

             reply	other threads:[~2005-05-05 12:25 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-05 12:25 Vitaly Ostanin [this message]
2005-05-05 12:35 ` Anton Farygin
2005-05-05 12:47   ` [devel] " Vitaly Ostanin
2005-05-05 12:46     ` Anton Farygin
2005-05-05 13:18       ` Vitaly Ostanin
2005-05-05 17:52         ` Kirill A. Shutemov
2005-05-06  5:41           ` Kirill A. Shutemov
2005-05-06  5:43           ` Kirill A. Shutemov
2005-05-06  5:47           ` Kirill A. Shutemov
2005-05-06  6:18           ` Kirill A. Shutemov
2005-05-06 10:10           ` [devel] мечты для sisyphus.ru Kirill A. Shutemov
2005-05-07  7:58           ` [devel] Re: unionfs and kernel oops Kirill A. Shutemov
2005-05-06  5:32         ` Anton Farygin
2005-05-08 15:01           ` Vitaly Ostanin
2005-05-12  7:42             ` Anton Farygin
2005-05-06  5:33         ` Anton Farygin
2005-05-06  6:01           ` Anton Farygin
2005-05-06  6:36             ` Michael Shigorin
2005-05-06  6:33               ` Anton Farygin
2005-05-06  6:39                 ` Michael Shigorin
2005-05-06  6:37                   ` Anton Farygin
2005-05-06  6:45                     ` Michael Shigorin
2005-05-06  6:48                       ` Anton Farygin
2005-05-06  7:07                         ` Michael Shigorin
2005-05-06  2:32 ` [devel] " Ivan Fedorov
2005-05-07 15:42   ` [devel] " Vitaly Ostanin
2005-05-06  3:19 Andrey Rahmatullin
2005-05-06  5:36 ` Anton Farygin
2005-05-06 19:06   ` Денис Смирнов
2005-05-06  7:51 [devel] мечты для sisyphus.ru Stanislav Ievlev
2005-05-06  8:00 ` [devel] мечты для sisyphus.ru [JT] Slava Dubrovskiy
2005-05-06  8:04   ` Stanislav Ievlev
2005-05-06  8:14 ` [devel] мечты для sisyphus.ru Alexey I. Froloff
2005-05-06  8:35   ` Genix
2005-05-06  9:17     ` Andrey Rahmatullin
2005-05-06  9:43     ` Andrey Orlov
2005-05-06 10:45       ` Sergey Y. Afonin
2005-05-06 11:05       ` Kirill Maslinsky
2005-05-06 17:53         ` Andrey Rahmatullin
2005-05-07  5:10           ` Andrey Orlov
2005-05-07  7:18             ` [devel] к слову о join@ (was: мечты для sisyphus.ru) Michael Shigorin
2005-05-07  7:21               ` Sergey Y. Afonin
2005-05-10  7:59                 ` [devel] " Michael Shigorin
2005-05-11  7:26               ` [devel] " Stanislav Ievlev
2005-05-11  9:28                 ` [devel] " Michael Shigorin
2005-05-12  7:11                   ` Stanislav Ievlev
2005-05-12  8:26                     ` Michael Shigorin
2005-05-12  8:17                   ` [devel] Re: к слову о join@ Anatoly Yakushin
2005-05-06 15:30       ` [devel] Re: мечты для sisyphus.ru Michael Shigorin
2005-05-06  9:17 ` [devel] " Vladimir Lettiev
2005-05-06 15:15   ` [devel] " Michael Shigorin
2005-05-06  9:55 ` [devel] " Vitaly Lipatov
2005-05-06 15:20   ` [devel] [JT] " Michael Shigorin

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=427A10C7.2030305@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