View previous topic :: View next topic |
Author |
Message |
MaxDamage l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/65955713941653223ac41b.gif)
Joined: 03 Jan 2004 Posts: 650 Location: Oviedo, Spain
|
Posted: Thu Mar 31, 2005 3:22 pm Post subject: ReiserFS part. checked on boot w/out need |
|
|
I've noticed long ago, when I did five reiserfs partitions on my system, that they're checked at boot time, althought they were unmounted cleanly.
A message appears "repalying transactions... 0 replays needed." and it spends 5 seconds per partition, in 5 partitions, are 25 seconds of boot time that could be avoided...
The issue is, I tried ubuntu and it doesn't check the partitions everytime, but only when the system was stopped improperly. In both systems (Gentoo and Ubuntu) I have the partitions with an "1" or "2" in the last field of the fstab.
I'm doing something wrong or is this happening to all of you? Is there any way of making Gentoo behave as Ubuntu does? Thanx in advance.
P.S. BTW I think the same happens with my FAT32 partitions. I'm not sure about Ubuntu's behaviour, I'll test. _________________ La PDA de tungsteno |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
moocha Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Thu Mar 31, 2005 10:12 pm Post subject: |
|
|
The "replaying transactions" part happens in the kernel, not in the init scripts, and it doesn't mean the file system is checked. My guess is you're using the nitro patchset - it's been known to do that inc ertain versions. Please use the Gentoo patchset or somne other supported patchset and check if the problem still appears. If yes, file a bug on Bugzilla. Don't file bugs for non-supported patchsets like nitro or love. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaxDamage l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/65955713941653223ac41b.gif)
Joined: 03 Jan 2004 Posts: 650 Location: Oviedo, Spain
|
Posted: Sat Apr 02, 2005 2:09 pm Post subject: |
|
|
The root partition (in my case /dev/hda10) is checked by the kernel, I know, but the other reiserfs partitions are checked by the /etc/init.d/checkfs boot script.
Here is my /etc/fstab, in case there is something strange:
Code: | # This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /mnt/winxp ntfs ro,noauto,users,gid=users,umask=002 0 0
/dev/hda5 none swap sw 0 0
/dev/hda6 /mnt/old reiserfs noatime,user_xattr 0 1
/dev/hda7 /home reiserfs noatime,user_xattr 0 2
/dev/hda8 /mnt/datos reiserfs noatime,user_xattr 0 2
/dev/hda9 /mnt/desvan vfat rw,noauto,users,gid=users,umask=002 0 0
/dev/hda10 / reiserfs rw,noatime,user_xattr 0 1
/dev/hdb1 /mnt/backup vfat rw,noauto,users,gid=users,umask=002 0 0
/dev/hdc /mnt/dvd udf,iso9660 ro,noauto,users 0 0
/dev/hdd /mnt/cdrom iso9660 ro,noauto,users 0 0
/dev/fd0 /mnt/floppy vfat rw,noauto,users 0 0
/dev/camara /mnt/camara vfat ro,noauto,users 0 0
/dev/xtick /mnt/xtick vfat rw,noauto,users 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 |
Perhaps I'm doing something wrong in the "PASS" column?
I'm not using any custom pachset, olny plain stable gentoo-sources (2.6 kernel).
Also I've reinstalled Gentoo yesterday (fresh new install, old one in /dev/hda6), and the default install did check the partitions, so it wasn't any option I had changed (AFAIK). _________________ La PDA de tungsteno |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vague n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180581023040b76073f329d.gif)
Joined: 17 May 2004 Posts: 6 Location: Cape Town, South Afica
|
Posted: Sun Apr 03, 2005 5:35 am Post subject: |
|
|
Quote: | I tried ubuntu and it doesn't... |
Now if you where having this problem with ubuntu instead of gentoo then I could tell you what to do.
I do not know where the settings are in gentoo as I have not had this problem while using gentoo, but I did have this with debian when I swapped to reiserfs.
On debian there is a file that controls some startup stuff and there is a line that is meant to make fsck run in unattended mode (with no user intervention needed).
However with fsck.reiserfs it seems to tell it so always run.
So I set it to
I am sure I saw something like this on gentoo too but I spent a few minutes searching and could not find it.
Of course this is only useful it your system is running a filesystem check and not just a journal replay
Also I saw a message on boot that said something to the effect of:
"Filesystem mounted read only, skipping journal replay."
after I added "ro" to my kernel line in my bootloader.
They aslo tell me that is safe to use:
Code: | /dev/hda7 /home reiserfs noatime,user_xattr 0 0
/dev/hda8 /mnt/datos reiserfs noatime,user_xattr 0 0
/dev/hda10 / reiserfs rw,noatime,user_xattr 0 0 |
which will not do any filesystem check (or do them on pass 0 which does not happen).
This is supposed to be safe because you are using a journalised filesystem. If you use this then I recomend doing a manual fsck every now and then, just in case.
I am going to run one now, while I am thinking about it.
I hope this helps. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
moocha Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Sun Apr 03, 2005 5:49 am Post subject: |
|
|
That's correct. Like vague pointed out above, the pass number for any journalled file system should read zero, otherwise the file system will always be regarded as dirty and will be checked. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaxDamage l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/65955713941653223ac41b.gif)
Joined: 03 Jan 2004 Posts: 650 Location: Oviedo, Spain
|
Posted: Sun Apr 03, 2005 6:09 pm Post subject: |
|
|
I'd bet the ubuntu install put a nonzero option in my reiserfs entries. But I'm not sure as I deleted it some days ago.
I thought about putting a zero but I was afraid the filesystems wouldn't be checked neither when needed and when not. I see that's not the case, so I'll use zero then. Let's hope next time the machine hangs (100% tiems my fault), the transactions get replayed on all my partitions as Ubuntu did.
Both thanx a lot, this was something I wanted to fix for some time now. _________________ La PDA de tungsteno |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|