View previous topic :: View next topic |
Author |
Message |
henac n00b
Joined: 10 Aug 2005 Posts: 14
|
Posted: Mon Sep 12, 2005 10:45 pm Post subject: e2fsck on swap |
|
|
Hi,
my fstab looks like
none /dev/shm tmpfs defaults 0 0
/dev/hda2 /boot ext2 defaults,noatime 1 2
/dev/hda3 none swap sw 0 0
/dev/hda5 / ext3 noatime 0 1
although from time to time, it tries to perfom a check on my swap partition!! This occured after an update last week. that's my second problem after making deep update. could it be, it's a kind of fairly bad idea to make deep update often? has anybody an idea how to eliminate this check?
Regards,
Hen |
|
Back to top |
|
|
lambada Apprentice
Joined: 31 Jul 2005 Posts: 157
|
Posted: Tue Sep 13, 2005 12:38 am Post subject: |
|
|
I am not exactly sure what the problem is but here is my fstab entry
/dev/hda9 swap swap pri=1 0 0
It works perfectly.
Try changing yours from
/dev/hda3 none swap sw 0 0
to
/dev/hda3 swap swap pri=1 0 0
ans see if that solves your problem.
Hope this helps
by the way my full fstab looks like this(in case you are missing something)
i am using udev
Code: |
# Begin /etc/fstab
# file system mount-point type options dump fsck
# order
/dev/hda7 / reiserfs defaults 0 0
/dev/hda9 swap swap pri=1 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
shm /dev/shm tmpfs defaults 0 0
# non-essential
/dev/hda6 /mnt/e vfat defaults,user,umask=000 0 0
/dev/hda8 /storage ext3 defaults,user,exec 1 2
# End /etc/fstab
|
_________________ Lambada
Last edited by lambada on Tue Sep 13, 2005 2:03 am; edited 1 time in total |
|
Back to top |
|
|
darcon n00b
Joined: 26 Jun 2004 Posts: 46
|
Posted: Tue Sep 13, 2005 1:36 am Post subject: Re: e2fsck on swap |
|
|
henac wrote: | Hi,
my fstab looks like
none /dev/shm tmpfs defaults 0 0
/dev/hda2 /boot ext2 defaults,noatime 1 2
/dev/hda3 none swap sw 0 0
/dev/hda5 / ext3 noatime 0 1
although from time to time, it tries to perfom a check on my swap partition!! |
your missing /proc?? I didn't think you could boot without it. Your swap line looks fine, the 0 in the sixth position (last 0) should cause fsck to skip it, dunno why it's ignoring it and fscking anyway.
Here's the line you should have for proc, if your really missing it then adding it might fix your problem
Code: | # NOTE: The next line is critical for boot!
none /proc proc defaults 0 0 |
henac wrote: | that's my second problem after making deep update. could it be, it's a kind of fairly bad idea to make deep update often? has anybody an idea how to eliminate this check?
Regards,
Hen |
I run "emerge -uDav world" every couple days, nothing wrong with that |
|
Back to top |
|
|
henac n00b
Joined: 10 Aug 2005 Posts: 14
|
Posted: Tue Sep 13, 2005 7:30 am Post subject: different |
|
|
I figured out what the problem is. It's not the swap. e2fsck aborts checking because the /boot partition is already mounted. So it says
Checking all filesystems...
/dev/hda2 is mounted. e2fsck: Cannot continue, aborting.
Fsck could not correct all errors, manual repair needed
So it seems /boot is mounted before fsck'ed. Does somebody know how to solve this?
Regards,
Hendrik |
|
Back to top |
|
|
darcon n00b
Joined: 26 Jun 2004 Posts: 46
|
Posted: Wed Sep 14, 2005 2:13 am Post subject: |
|
|
add noauto option so /boot isn't mounted automatically. Another plus of doing this is that you can't damage your /boot while your system is running because it isn't mounted.
Code: | /dev/hda2 /boot ext2 defaults,noauto,noatime 1 2 |
|
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Wed Sep 14, 2005 2:36 am Post subject: |
|
|
Doing this requires you to be more careful about mounting /boot before (for example) copying kernel images over after a re-compile/update.
No major deal, but catches plenty of people. |
|
Back to top |
|
|
henac n00b
Joined: 10 Aug 2005 Posts: 14
|
Posted: Wed Sep 14, 2005 11:43 am Post subject: |
|
|
thx |
|
Back to top |
|
|
|