Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Double checking filesystems at boot [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 578
Location: Glasgow

PostPosted: Fri Jul 15, 2005 12:29 am    Post subject: Double checking filesystems at boot [SOLVED] Reply with quote

Hi everyone,
since my last upgrade to portage-2.0.51.22-r1 , it seems that at boot time it wants to check my filesystems twice. The first time everything is OK, but it does it a second time and I get error messages like "/dev/hda6 is mounted. e2fsck: Cannot continue, aborting". I have then either to hit ^D to continue, or enter the root passwd for maintenance. In the latter case I've tried to e2fsck my filesystems again (ext3) and it seems clean. In both cases my box continues to run smoothly without a problem.

So my question is: is there a bug somewhere in portage that makes it checking my filesystems twice? What can I do to avoid that?

Code:

# emerge --info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa avi bindist cdr crypt cups dvd exif f77 foomaticdb fortran gif gnome gphoto2 gpm gtk gtk2 ipv6 java jpeg lcms mozilla mp3 mpeg ncurses nvidia oggvorbis opengl oss pam pdflib perl png ppds python readline samba spell sse ssl tcpd tiff truetype unicode wifi wmf xmms zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS


Cheers,
_________________
nichocouk

L'Etat, c'est moi.


Last edited by nichocouk on Sun Jul 17, 2005 9:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Fri Jul 15, 2005 1:19 am    Post subject: Reply with quote

Hey.

Could you please post the output of "rc-update -s" (needs to be run as root)?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 578
Location: Glasgow

PostPosted: Fri Jul 15, 2005 7:31 am    Post subject: Reply with quote

Sure, here it is:
Code:

# rc-update -s
               acpid | battery                        offline
           alsasound |         boot
             apache2 |
                apmd |
            bootmisc |         boot
             checkfs |         boot
           checkroot |         boot
               clock |         boot
            coldplug |         boot
         consolefont |         boot
         crypto-loop |
               cupsd | battery      default
               dictd |
          domainname | battery      default
              esound |
                famd | battery      default
                 gpm |
              hdparm |
            hostname |         boot
             hotplug | battery      default
           ip6tables |
            iptables |
             keymaps |         boot
               local | battery      default nonetwork offline
          localmount |         boot
             modules |         boot
            net.ath0 | battery      default
            net.eth0 | battery      default
              net.lo |         boot
            netmount | battery      default
            net.ppp0 |
                 nfs |
            nfsmount |
                nscd |
          ntp-client | battery      default
                ntpd | battery      default
             numlock |
             openvpn |
              pcmcia |
             portmap |
           rmnologin |         boot
            rp-pppoe |
              rsyncd |
               samba |
              serial |         boot
           shorewall |
               spamd |
                sshd | battery      default
           syslog-ng | battery      default
             urandom |         boot
          vixie-cron | battery      default
             Win4Lin |
      wpa_supplicant |
                 xdm | battery      default           offline
                 xfs |


Btw, here is my fstab:
Code:

/dev/hda3               /boot           ext2            noauto,noatime          1 1
/dev/hda5               /               ext3            noatime                 0 0
/dev/hda7               none            swap            sw                      0 0
/dev/hda6               /usr            ext3            noatime                 1 2
/dev/hda8               /home           ext3            noatime                 1 2
/dev/hda2               /mnt/d          vfat            noauto,rw,user          0 0
/dev/hda1               /mnt/c          ntfs            noauto,rw,user          0 0

none                    /proc           proc            defaults                0 0

none                    /dev/shm        tmpfs           defaults                0 0


Thanks!
_________________
nichocouk

L'Etat, c'est moi.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Sat Jul 16, 2005 2:39 pm    Post subject: Reply with quote

Sorry for taking so long to get back to you.

I think I see where the problem is, from your fstab;
Code:
/dev/hda6               /usr            ext3            noatime                 1 2
/dev/hda8               /home           ext3            noatime                 1 2

I don't see why this would cause a problem, or how a portage update would have any effect.
Did you update anything else, such as the baselayout, or e2fsprogs?
Are the error mesages all related to /dev/hda's 6 and 8?

The pass number field determines when a filesystem should be checked at boot time, 2 should ensure it's checked after anything with a value of 1, but in your case it seems to cause the disk to be checked again afrer it's mounted.

I think resetting the value to the default 0 should fix this, and if it's being checked anyway, I don't think you really need to specify it.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 578
Location: Glasgow

PostPosted: Sat Jul 16, 2005 4:30 pm    Post subject: Reply with quote

Hopeless wrote:
Sorry for taking so long to get back to you.


No problem! :)

Quote:
Did you update anything else, such as the baselayout, or e2fsprogs?

mmmhh... I'm not sure. I don't think baselayout has been updated recently, I don't know about e2fsprogs.
Code:

# emerge -pv baselayout e2fsprogs

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

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/baselayout-1.11.12-r4  -bootstrap -build -static +unicode 0 kB
[ebuild   R   ] sys-fs/e2fsprogs-1.37-r1  -nls -static 0 kB

e2fsprogs has been marked stable on x86 on June 27th. I updated it on June 28th, but my problems at boot are not that old. It appeared couple of days ago, a week ago or so.

Quote:
Are the error mesages all related to /dev/hda's 6 and 8?

Absolutely! When the first check is made, hda3, hda6 and 8 are checked and marked clean. But there is another check of hda6 and 8 , not hda3. That's when it gets messy.

So now I change it to:
Code:

/dev/hda6               /usr            ext3            noatime                 1 0
/dev/hda8               /home           ext3            noatime                 1 0


I'll let you know what it does...

Thanks a lot for your help!
_________________
nichocouk

L'Etat, c'est moi.
Back to top
View user's profile Send private message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 578
Location: Glasgow

PostPosted: Sat Jul 16, 2005 4:41 pm    Post subject: Reply with quote

OK! I rebooted without a problem. But now I just wonder: is that safe to disable the check at boot time? hda's 6 and 8 haven't been checked at all this time.

Thanks again, mate!
_________________
nichocouk

L'Etat, c'est moi.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Sat Jul 16, 2005 4:46 pm    Post subject: Reply with quote

nichocouk wrote:
Absolutely! When the first check is made, hda3, hda6 and 8 are checked and marked clean. But there is another check of hda6 and 8 , not hda3. That's when it gets messy.

You just made me think of something else you could try;
Code:
/dev/hda6               /usr            ext3            noatime                 0 2
/dev/hda8               /home           ext3            noatime                 0 2

This might give you what you were looking for, with hda's 6 and 8 only checked at the later stage.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 578
Location: Glasgow

PostPosted: Sun Jul 17, 2005 12:20 pm    Post subject: Reply with quote

Hello,

the last solution did not work, it did the same problem as before. 1st check of hda's 3, 6, 8 ok, but then problem because of another check of hda's 6 and 8.
However, I am updating to e2fsprogs-1.38, and will build a new kernel as well (gentoo-sources-2.6.12.r6). So things might as well come back to normal, hopefully!

So I'll keep you posted.

Cheers,
_________________
nichocouk

L'Etat, c'est moi.
Back to top
View user's profile Send private message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 578
Location: Glasgow

PostPosted: Sun Jul 17, 2005 8:34 pm    Post subject: Reply with quote

Yep! I'm lucky enough with those updates so that now it works fine with my initial fstab settings . So it was probably a small bug in the e2fsprogs package, although I haven't found any trace of that anywhere on the Gentoo forums or in bugzilla.

Again, thanks for your help, hopeless, and your time!

Cheers,
_________________
nichocouk

L'Etat, c'est moi.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Sun Jul 17, 2005 9:46 pm    Post subject: Reply with quote

No problem, sorry I couldn't be more help.

Mark this thread as Solved?

Edit: Nevermind, you already did. :roll:
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
MorLipf
Apprentice
Apprentice


Joined: 09 Nov 2004
Posts: 226
Location: Solingen, Germany

PostPosted: Tue Sep 06, 2005 1:15 pm    Post subject: Reply with quote

This bug isn't really solved. I have this e2fsck problem on two machines (one x86 and one amd64). I'm using a full "unstable" system with ~amd64 or ~x86 in my make.conf.
I tried already reemerging e2fsck and baselayout but that does not work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum