<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>29064</bug_id>
          
          <creation_ts>2003-09-18 20:47 0000</creation_ts>
          <short_desc>reiserfs /home not mounted correctly at boot time, and I had to modify /etc/fstab and /etc/init.d/localmount</short_desc>
          <delta_ts>2004-04-06 20:20:36 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>TEST-REQUEST</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vo.chi.cong@is.titech.ac.jp</reporter>
          <assigned_to>lostlogic@gentoo.org</assigned_to>
          <cc>znmeb@aracnet.com</cc>

      

      
          <long_desc isprivate="0">
            <who>vo.chi.cong@is.titech.ac.jp</who>
            <bug_when>2003-09-18 20:47:24 0000</bug_when>
            <thetext>My /home partition is not mounted correctly when booting at times. Sometimes it
is mounted correctly, but sometimes it is mounted badly then I only see
&quot;Segmentation falt&quot; when do &quot;ls /home&quot;. Here is how I solve the problem:

1. Edit /etc/fstab
Move the next line
     /dev/hda7   /home       reiserfs  noatime,notail    0 1

to the end of the file /etc/fstab, below /proc and /dev/shm

2. Edit /etc/init.d/localmount
    mount -av
    #mount -at nocoda,nonfs,noproc,noncpfs,nosmbfs,noshm &gt;/dev/null

Without doing the above things, even reemerging reisfsprogs did not help me.



Reproducible: Sometimes
Steps to Reproduce:
1. In /etc/fstab put the line of /home above the lines of /proc and /dev/shm
2. Use the default /etc/init.d/localmount
3. Reboot machine

Actual Results:  
The problem was resolved, but I dont understand why it was.

Expected Results:  
Maybe /etc/init.d/localmount should be modified so that reiserfs partitions are
to be mounted after mounting of /proc and /dev/shm.


The problem did not happen before Gentoo 1.4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-09-19 00:19:47 0000</bug_when>
            <thetext>the simple fact that a `ls` operation *segfaulted* should indicate to you that
*something* *just aint right* ;)

did you review `dmesg` to see if anything useful came up ?
what happens if you `mount -o remount /home` when `ls` is segfaulting ?
what kernel are you running ?
what is the output of `emerge info` ?
did you upgrade from 1.2 to 1.4 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-09-21 03:30:23 0000</bug_when>
            <thetext>run #revdep-rebuild from gentoolkit</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vo.chi.cong@is.titech.ac.jp</who>
            <bug_when>2003-09-21 05:41:18 0000</bug_when>
            <thetext>root # revdep-rebuild

Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update,
will be recompiled.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... Nothing to rebuild

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.

# uname -a
Linux debut 2.4.20-gentoo-r7 #1 2003&amp;#65415;&amp;#65391; 9&amp;#65399;&amp;#12539;14&amp;#65414;&amp;#12539;&amp;#65414;&amp;#12539;&amp;#65419;&amp;#65414;&amp;#12539;01:53:27 JST i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux

# emerge sync ; emerge world -Upv
&gt;&gt;&gt; --upgradeonly implies --update... adding --update to options.

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] app-editors/vim-core-6.2-r3 [6.2-r1] +ncurses +nls
[ebuild     U ] app-editors/gvim-6.2-r3 [6.2-r2] +ncurses +nls -cscope +gpm -perl +python -ruby +gnome +gtk +gtk2 +motif
[ebuild     U ] app-admin/metalog-0.6-r11 [0.6-r10]
[ebuild     UD] dev-libs/gsl-1.3 [1.4]

# emerge info
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -DNDEBUG -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -DNDEBUG -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;sandbox ccache autoaddcvs&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://ftp.gentoo.or.kr/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://adelie.polymtl.ca/ http://212.219.247.21/sites/www.ibiblio.org/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga tcltk X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla canna cdr cjk dvd freewnn ginac leim ppds qhull samba sse -tetex java -perl gtk2 -apm imap arts gphoto2 scanner&quot;

I used gentoo 1.2 for a long time before upgrading to 1.4, but this is an installation from scratch. The root partition was reformated.

# cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.12 2003/03/11 02:50:53 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren&apos;t
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It&apos;s safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# &lt;fs&gt;          &lt;mountpoint&gt;    &lt;type&gt;  &lt;opts&gt;                  &lt;dump/pass&gt;

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda3       /boot           ext3      noauto,noatime        1 1
/dev/hda4       /               reiserfs  noatime,notail        0 0
/dev/hda5       none            swap      sw                    0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660 noauto,ro       0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults        0 0

# NOTE: other reiserfs partitions must be mounted last
/dev/hda7       /home           reiserfs  noatime,notail        0 1


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nilanjan@bfisecure.com</who>
            <bug_when>2003-10-28 11:11:31 0000</bug_when>
            <thetext>I had this problem when i didn&apos;t compile reiserfs support into the kernel.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>acooks@gentoo.org</who>
            <bug_when>2004-01-31 14:10:29 0000</bug_when>
            <thetext>This bug has been inactive for 90 days or more. Both baselayout and gentoo-sources have been updated since the bug received attention. 

Can this still be reproduced?

Please reopen this bug if the problem persists.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>znmeb@aracnet.com</who>
            <bug_when>2004-04-06 20:20:36 0000</bug_when>
            <thetext>I am experiencing a similar phenomenon with 2004.0, recently synced. I have two reiser partitions, /dev/hda9 and /dev/hda10. Here are the lines in /etc/fstab for them:

/dev/hda10              /mnt/hda10          resierfs        defaults                0 0
/dev/hda9               /mnt/hda9           resierfs        defaults                0 0

Yes, the mount points exist. They are first in my /etc/fstab; I haven&apos;t tried moving them to the end, but I&apos;m about to try that. Meanwhile there are two &quot;symptoms&quot;:

1. &quot;vim&quot; shows the &quot;reiserfs&quot; in red, as though it&apos;s trying to warn me about something.

2. The filesystems are not mounted after a reboot, and if I do &quot;mount -a&quot; I get

DreamTimeGentoo root # mount -a
mount: fs type resierfs not supported by kernel
mount: fs type resierfs not supported by kernel
DreamTimeGentoo root #

Yes, I checked the kernel config and &quot;reiserfs&quot; is there. What&apos;s really peculiar is that I can manually mount them:

DreamTimeGentoo root # mount /dev/hda9 /mnt/hda9
DreamTimeGentoo root # mount /dev/hda10 /mnt/hda10
DreamTimeGentoo root # df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda7             11203068   7342452   3291516  70% /
/dev/hda7             11203068   7342452   3291516  70% /
/dev/hda8              8254240   5782716   2136092  74% /mnt/hda8
none                    224792         0    224792   0% /dev/shm
/dev/hda9              4000024   1459128   2540896  37% /mnt/hda9
/dev/hda10             3092380   1108924   1983456  36% /mnt/hda10

Could this (and the fact that &quot;/&quot; appears to be mounted twice) have something to do with the fact that I don&apos;t have &quot;/boot&quot; as a separate partition, but it is instead a directory in the /dev/hda7 partition, which is ext2?

Please let me know if I should file this as a separate bug. This one is the closest I could find to my symptoms.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>