-->

2011-05-29

ext3のメモ

追記: dir_index, large_file を追加するとEMモード自体のfsckでエラーになります。

kuroboxHGのEMモードで mount -o rw でマウントできるファイルシステムの作成+fsckを手動で行う場合。
mke2fs -I 128 -O +has_journal,-ext_attr,-resize_inode,+dir_index,+filetype,\
-extent,-flex_bg,+sparse_super,+large_file,-huge_file,-uninit_bg,-dir_nlink,-extra_isize /dev/hda1 \
&& tune2fs -c 0 -i 0 /dev/hda1

mount -o ro で失敗: ext_attr, resize_inode, extent, flex_bg, uninit_bg
mount -o ro で成功: huge_file, dir_nlink, extra_isize

### ext3の機能追加 dir_index, large_file
Filesystem features:      has_journal filetype sparse_super
↓
Filesystem features:      has_journal dir_index filetype sparse_super large_file

### fsckは手動。
Maximum mount count:      -1
Check interval:           0 (<none>)

udevとkernel
$ qdepends -a udev
 * DEPEND
sys-fs/udev-151-r4: >=sys-apps/util-linux-2.16 >=sys-libs/glibc-2.9 virtual/os-headers !<sys-kernel/linux-headers-2.6.29
 * RDEPEND
sys-fs/udev-151-r4: >=sys-apps/util-linux-2.16 >=sys-libs/glibc-2.9 !sys-apps/coldplug !<sys-fs/lvm2-2.02.45 !sys-fs/device-mapper >=sys-apps/baselayout-1.12.5
 * PDEPEND
$ qdepends -aQ udev
 * DEPEND
sys-apps/openrc-0.8.2-r1
 * RDEPEND
sys-apps/openrc-0.8.2-r1
virtual/dev-manager-0
 * PDEPEND

$ grep "udev requires" /usr/portage/sys-fs/udev/udev-1[0-5]*ebuild
/usr/portage/sys-fs/udev/udev-146-r1.ebuild:    # udev requires signalfd introduced in kernel 2.6.25,
/usr/portage/sys-fs/udev/udev-149.ebuild:       # udev requires signalfd introduced in kernel 2.6.25,
/usr/portage/sys-fs/udev/udev-151-r4.ebuild:    # udev requires signalfd introduced in kernel 2.6.25,

http://www.kernel.org/doc/man-pages/online/pages/man2/signalfd.2.html

eix-remote(laymanのリポジトリの検索用データをeixに追加する)
2つ以上のgentooを持つ場合、1箇所で検索できるようにしておくと便利です。

常用の更新コマンドに追加します。
emerge --sync && layman -S && eix-update && eix-remote -l /var/lib/layman/ update など

before
$ layman -l
* graaff                    [Git       ] (http://git.overlays.gentoo.org/gitroot/dev/graaff.git                              )
* sunrise                   [Subversion] (svn://overlays.gentoo.org/proj/sunrise/reviewed/                                   )
$ eix -c|wc -l
15487

after
$ layman -l
* graaff                    [Git       ] (http://git.overlays.gentoo.org/gitroot/dev/graaff.git                              )
* sunrise                   [Subversion] (svn://overlays.gentoo.org/proj/sunrise/reviewed/                                   )
$ eix -c|wc -l
23408

$ layman -l
* graaff                    [Git       ] (http://git.overlays.gentoo.org/gitroot/dev/graaff.git                              )
* sunrise                   [Subversion] (svn://overlays.gentoo.org/proj/sunrise/reviewed/                                   )
$ eix ^glibc$
[I] sys-libs/glibc
     Available versions:  (2.2) [P]2.2.5-r10!s[2] [P]2.3.2-r12!s[2] [P]2.3.5-r3!s[2] [P]2.3.6-r4!s[2] [P]2.3.6-r5!s[2] 2.4-r4!s[2] 2.5-r2!s[2] 2.5-r3!s[2] 2.5-r4!s[2] **2.5.1!s[2] ~2.6!s[2] 2.6.1!s[2] ~2.7-r2!s[2] ~2.8_p20080602!s[2] 2.8_p20080602-r1!s[2] 2.8_p20080602-r2!s[2] ~2.9_p20081201!s[2] ~2.9_p20081201-r1!s[2] ~2.9_p20081201-r2!s[2] ~2.9_p20081201-r3!s ~2.10.1!s[2] 2.10.1-r1!s 2.10.1-r1!s[1] 2.10.1-r2!s[1] ~2.11-r1!s[1] ~2.11.1!s[1] ~2.11.1!s[3] 2.11.2-r3!s[2] 2.11.3!s ~2.12.1-r3!s 2.12.2!s ~2.12.2!s[4] ~2.13-r2!s
        {:+glibc-compat20 build crosscompile_opts_headers-only debug erandom gd glibc-compat20 glibc-omitfp hardened linuxthreads-tls multilib nls nptl nptlonly nptlonly} profile selinux userlocales vanilla}
     Installed versions:  2.12.2(2.2)!s(23時34分35秒 2011年05月21日)(gd nls -crosscompile_opts_headers-only -debug -glibc-omitfp -hardened -multilib -profile -selinux -vanilla)
     Homepage:            http://www.gnu.org/software/libc/libc.html
     Description:         GNU libc6 (also called glibc2) C library

[1] "chromiumos" layman/chromiumos
[2] "crg" layman/crg
[3] "gentoo-quebec" layman/gentoo-quebec
[4] "loongson" layman/loongson
$ eix gentoo-sources
* sys-kernel/gentoo-sources
     Available versions:
        (2.6.24-r2)     ~2.6.24-r2!b!s[1]
        (2.6.25-r7)     2.6.25-r7!b!s[2]
        (2.6.32-r24)    2.6.32-r24!b!s
        (2.6.32-r29)    2.6.32-r29!b!s
        (2.6.32-r30)    ~2.6.32-r30!b!s
        (2.6.32-r31)    ~2.6.32-r31!b!s
        (2.6.35-r15)    2.6.35-r15!b!s
        (2.6.36-r8)     2.6.36-r8!b!s
        (2.6.37-r3)     ~2.6.37-r3!b!s
        (2.6.37-r4)     2.6.37-r4!b!s
        (2.6.37-r5)     ~2.6.37-r5!b!s
        (2.6.37-r6)     ~2.6.37-r6!b!s
        (2.6.38-r4)     ~2.6.38-r4!b!s
        (2.6.38-r5)     ~2.6.38-r5!b!s
        (2.6.38-r6)     ~2.6.38-r6!b!s
        (2.6.39)        ~2.6.39!b!s
        {build deblob symlink}
     Homepage:            http://dev.gentoo.org/~mpagano/genpatches
     Description:         Full sources including the Gentoo patchset for the 2.6 kernel tree

[1] "loongson" layman/loongson
[2] layman/powerpc

http://forums.gentoo.org/viewtopic-t-780194-start-0.html
http://d.hatena.ne.jp/meech/20100826/1282833801

0 件のコメント: